Sometimes, shy developers have really good ideas. So don't be shy and open an issue! :)
If you want to help me, modify the source code, but before to create a pull request, follow these steps
Attention! This is really important
Every time you'll run npm install
inside a demo's folder, you must rebuild the library with npm run build
npm install -g lite-server @angular/cli
(on macOS usesudo npm install -g lite-server @angular/cli
)- remove all
node_modules
,.awt
,aot
anddist
folders everywhere, also in bothdemo/systemjs
,demo/webpack
anddemo/angular-cli
folders (if necessary) npm install
(from the root of this project)npm run clean:all
cd demo/systemjs
npm install
cd ../..
cd demo/webpack
npm install
cd ../..
cd demo/angular-cli
npm install
cd ../../..
npm run build:lib
npm run compodoc
=> try to open./documentation/index.html
with theinternal library documentation
cd demo/systemjs
npm start
=> if everything is ok (also in browser's console), kill the process and go to the next stepcd ../..
cd demo/webpack
npm start
=> if everything is ok (also in browser's console), kill the process and go to the next stepnpm run build:dev
cd dist
lite-server
=> if everything is ok (also in browser's console), kill the process and go to the next stepcd ..
npm run build:prod
cd dist
lite-server
=> if everything is ok (also in browser's console), kill the process and go to the next stepcd ..
npm run build:prod:aot
(if necessary re-follow all the steps from the beginning)cd dist
lite-server
=> if everything is ok (also in browser's console), kill the process and go to the next stepcd ../../..
cd demo/angular-cli
npm start
=> if everything is ok (also in browser's console), kill the process and go to the next stepnpm run build
cd dist
lite-server
=> if everything is ok (also in browser's console), kill the process and go to the next stepcd ..
- If it is ok, create your pull request
TODO RESTORE THESE STEPS IN 4.x.x VERSIONS:
-15. npm test
=> IMPORTANT if everything is ok, try to open ./coverage/html/index.html
with the code coverage
-
-16. npm run docs
=> try to open ./docs/index.html
with the internal library documentation
-
cd angular-modal-gallery
npm version patch
(x.x.1) ornpm version minor
(x.1.0) ornpm version major
(4.x.x)npm run clean:all
npm run build:lib
npm publish dist/angular-modal-gallery
git push origin master
git push origin vx.x.x
<-- tag name created by npm version (for instance v4.0.1)
cd angular-modal-gallery
- Manually change the version of
./angular-modal-gallery/package.json
with this formatx.x.x-beta.x
(also respect semver!) npm run clean:all
npm run build:lib
npm publish dist/angular-modal-gallery --tag beta
git push origin master
git push origin vx.x.x
<-- tag name created by npm version (for instance v4.0.1)
cd angular-modal-gallery
- Manually change the version of
./angular-modal-gallery/package.json
with this formatx.x.x-alpha.x
(also respect semver!) npm run clean:all
npm run build:lib
npm publish dist/angular-modal-gallery --tag next
git push origin master
git push origin vx.x.x
<-- tag name created by npm version (for instance v4.0.1)