1.0.5 • Published 5 years ago

ethird v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

1. Abstract

This package is means to auto manage egret third party library

2. Install

npm i -g ethird

3. Create a third party project

ethird create package-name -e egret-compile-version

example:

ethird create ngraph -e 5.2.13

This 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 typings

4.2.

ethird init

4.3.add dts and node_modules

ethird install package-name

example:

ethird install jquery
# will run
# npm install jquery
# typings install dt~jquery --global --save

4.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 name

4.5.build your project

ethird build

or

webpack
egret build typings
egret build
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago