-
Notifications
You must be signed in to change notification settings - Fork 16
Developer Setup
Ronny Mikalsen edited this page Jun 23, 2017
·
23 revisions
This is a library for Angular, implementing the Angular Package Format v4.0.
Features:
- the Mime IIIF viewer library
- unit test for the library
- a demo application that consumes the library in JIT mode and runs in watch mode
- an integration app that consumes the library in JIT and AOT mode and runs e2e tests
Common tasks are present as npm scripts:
-
npm start
to run a live-reload server with the demo app -
npm run test
to test in watch mode, ornpm run test:once
to only run once -
npm run build
to build the library -
npm run lint
to lint -
npm run clean
to clean -
npm run integration
to run the integration e2e tests -
npm install ./relative/path/to/lib
afternpm run build
to test locally in another app
If you need to debug the integration app, please check ./integration/README.md
.
Perform the clone-to-launch steps with these terminal commands.
git clone https://github.com/NationalLibraryOfNorway/ngx-mime.git ngx-mime
cd ngx-mime
npm install
npm start
- when you land commits on your
master
branch, select the Squash and Merge option. - add a title and body that follows the Conventional Commits Specification.
- when you're ready to release to npm:
git checkout master; git pull origin master
- run
npm run release -- --prerelease alpha
cp package.json dist/package.json
git push --follow-tags origin master; npm publish dist