Let Travis run typechecks

This commit is contained in:
Andreas Hocevar
2018-02-08 18:11:20 +01:00
parent bc37ea9eb1
commit 2cae4230e3

View File

@@ -9,16 +9,19 @@
],
"homepage": "https://openlayers.org/",
"scripts": {
"lint": "eslint tasks test src examples transforms",
"pretest": "npm run lint",
"lint": "eslint tasks test src/ol examples transforms",
"pretest": "npm run lint && npm run typecheck",
"test": "npm run karma -- --single-run",
"karma": "karma start test/karma.config.js",
"serve-examples": "mkdir -p build/examples && webpack --config examples/webpack/config.js --watch & serve build/examples",
"build-examples": "webpack --config examples/webpack/config.js --env=prod",
"build-index": "node tasks/generate-index.js",
"build": "npm run build-index && webpack --config config/webpack.js",
"src-closure": "babel --out-dir build/src-closure src/",
"typecheck": "npm run build-index && npm run src-closure && node tasks/typecheck"
"prebuild": "npm run build-index",
"build": "webpack --config config/webpack.js",
"presrc-closure": "npm run prebuild",
"src-closure": "babel -q --out-dir build/src-closure src/",
"pretypecheck": "npm run src-closure",
"typecheck": "node tasks/typecheck"
},
"main": "src/ol/index.js",
"repository": {