ethird
v1.0.5
Published
A third tool for egret third party package
Downloads
5
Readme
1. Abstract
This package is means to auto manage egret third party library
2. Install
npm i -g ethird3. Create a third party project
ethird create package-name -e egret-compile-versionexample:
ethird create ngraph -e 5.2.13This will create the framework which describe in my tutorial
4. Init a Egret project with typings support
4.1.
# install typings first time
npm i -g typings4.2.
ethird init4.3.add dts and node_modules
ethird install package-nameexample:
ethird install jquery
# will run
# npm install jquery
# typings install dt~jquery --global --save4.4.add your require
find typing.js on your egret root and add the package you want to use
example:
jQuery=require('jquery');
//expose jQuery as global value
//I use jQuery as variable name because the typings export the name4.5.build your project
ethird buildor
webpack
egret build typings
egret build