A basic boilerplate project for development of Angular library, mostly for personal projects.
To build the library:
$ npm run build
This script will:
- Clean the
dist
directory. - Build the library to ES5 with ES2015 modules.
- Create a UMD bundle with rollup.
- Copy the
package.json
file and clean it up (dropdevDependencies
,scripts
). - Generate metadata.
- Copy the
README.md
file todist
.
To test the library use:
$ npm t
You can write tests in TypeScript and they will be run by mocha, with chai.
- Support of test watch.
There are also boilerplates for a sample demo application. In order to build it use:
# A shell script
$ ./build-demo
The demo app is really, very simple and doesn't aim to do anything complicated. What the build script will do is:
- Clean
demo/vendor
. - Copy each registered dependency of the demo app to
demo/vendor
. - Run
npm run build
. - Run
npm run build.demo
which will:- Clean
demo/dist
. - Compile the files from
demo/src
.
- Clean
- Copy
dist/*
todemo/dist
.
In order to see your app:
$ cd demo && http-server .
A project which uses this seed is ngresizable
.
MIT