style(packaging): pre commit hook and save command for npm/yarn
The pre commit hook will be saved into the git hooks folder upon starting the application, ensuring
it is always up to date. It intercepts the commit command and passes linting over it
"name": "syndesis-ui",
"version": "0.0.0",
"license": "Apache-2.0",
+ "description": "Presentation layer for Syndesis - a flexible, customizable, cloud-hosted platform that provides core integration capabilities as a service.",
+ "homepage": "https://github.com/syndesisio/syndesis-ui",
+ "bugs": "https://github.com/syndesisio/syndesis-ui/issues",
"scripts": {
"compodoc": "./node_modules/.bin/compodoc -p src/tsconfig.json -s",
"copy:assets": "yarn ncp node_modules/@atlasmap/atlasmap.data.mapper/src/assets/dm src/assets/dm",
- "format": "yarn prettier --single-quote --trailing-comma all --write \"./src/**/*.{ts,css,scss,js,json}\"",
+ "format": "yarn prettier --single-quote --trailing-a all --write \"./src/**/*.{ts,css,scss,js,json}\"",
"generate": "node ./scripts/generate-ts.js",
+ "prestart": "cp -f ./scripts/pre-commit ./.git/hooks && chmod +x ./.git/hooks/pre-commit",
"start": "yarn ng serve --ssl true --ssl-key localhost.key --ssl-cert localhost.crt --proxy-config proxy.conf.js",
"start:prod": "yarn ng serve --ssl true --ssl-key localhost.key --ssl-cert localhost.crt --proxy-config proxy.conf.js --aot --prod",
+ "prestart:minishift": "yarn run prestart",
"start:minishift": "yarn ng serve --host 0.0.0.0 --disable-host-check",
"build:ci": "yarn ng build --aot --prod --progress=false",
"lint": "yarn ng lint",
