Lint source and install typings on prepublish.

Ensure that build completes correctly without errors by installing
typings before building.
This commit is contained in:
Oscar Lorentzon 2016-07-13 07:22:57 -04:00
parent 90fa0bae0f
commit de45bd1591

View File

@ -13,7 +13,7 @@
"lint": "npm run lint-spec && npm run lint-src",
"lint-spec": "tslint -c tslint.json ./spec/**/*.ts ./spec/**/**/*.ts",
"lint-src": "tslint -c tslint.json src/*.ts src/**/*.ts src/**/**/*.ts src/**/**/**/*.ts",
"prepublish": "npm run clean && npm run build-min && npm run build-dev && gulp css",
"prepublish": "npm run clean && npm run lint-src && typings install && npm run build-min && npm run build-dev && gulp css",
"start":"node server.js",
"test": "karma start --single-run",
"test-watch": "karma start",