Scripts for in-place transforms

This commit is contained in:
Tim Schaub
2017-08-17 10:51:09 -04:00
parent 83f87a1f1e
commit 55fb814ec8
2 changed files with 50 additions and 30 deletions
+9 -1
View File
@@ -17,7 +17,12 @@
"pretest": "npm run lint",
"test": "npm run karma -- --single-run",
"debug-server": "node tasks/serve-lib.js",
"karma": "node tasks/test.js start test/karma.config.js"
"karma": "node tasks/test.js start test/karma.config.js",
"transform-src": "jscodeshift --transform transforms/module.js src",
"transform-examples": "jscodeshift --transform transforms/module.js examples",
"transform-test-spec": "jscodeshift --transform transforms/module.js test/spec",
"transform-test-rendering": "jscodeshift --transform transforms/module.js test/rendering",
"transform": "npm run transform-src && npm run transform-examples && npm run transform-test-spec && npm run transform-test-rendering && npm run lint -- --fix"
},
"main": "dist/ol.js",
"repository": {
@@ -83,6 +88,9 @@
},
"eslintConfig": {
"extends": "openlayers",
"parserOptions": {
"sourceType": "module"
},
"globals": {
"ArrayBuffer": false,
"Float32Array": false,