Commit d2cb66be by Peter Kern Committed by Edgar Hipp

Make npm compile script work on windows. (#62)

Make npm run compile script work on windows.
Move dependencies to rimraf, mkdirp and babel to dev-dependencies
parent 413ec63a
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"description": "Image Module for docxtemplater v1.0", "description": "Image Module for docxtemplater v1.0",
"main": "js/index.js", "main": "js/index.js",
"scripts": { "scripts": {
"compile": "rm js -rf ; mkdir -p js; babel es6 --out-dir js", "compile": "rimraf js && mkdirp js && babel es6 --out-dir js",
"prepublish": "npm run compile", "prepublish": "npm run compile",
"test:compiled": "mocha js/test.js", "test:compiled": "mocha js/test.js",
"test:es6": "mocha es6/test.js", "test:es6": "mocha es6/test.js",
...@@ -12,13 +12,15 @@ ...@@ -12,13 +12,15 @@
"test": "npm run compile && npm run test:compiled" "test": "npm run compile && npm run test:compiled"
}, },
"devDependencies": { "devDependencies": {
"babel-cli": "^6.7.5",
"babel-eslint": "^6.0.2", "babel-eslint": "^6.0.2",
"babel-preset-es2015": "^6.3.13", "babel-preset-es2015": "^6.3.13",
"chai": "^3.4.1", "chai": "^3.4.1",
"docxtemplater": "^2.1.0", "docxtemplater": "^2.1.0",
"eslint": "^2.7.0", "eslint": "^2.7.0",
"mocha": "^2.4.5" "mocha": "^2.4.5",
"mkdirp": "^0.5.1",
"babel-cli": "^6.11.4",
"rimraf": "^2.5.3"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment