using browserify, watchify
, tsify to compile and bundle es6
,typescript
into one js
file.
Install Node.js
Install these NPM packages globally:
npm install -g gulp typescript
- Open terminal
- Type
npm install
Type gulp serve-dev
to compile ts
files, watch any changes to re-compile and lunch the index page in the browser
Type gulp serve-build
to compile ts
files into one lib.js
file in the dest
folder and lunch the index page in the browser
Type gulp build
to compile ts
files into one lib.js
file in the dest
folder