ethird

1.0.5 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i ethird

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

11.6 kB

Total Files

6

Last publish

Collaborators

  • irelance