Add convert scripts
Showing
.babelrc
0 → 100644
This diff is collapsed.
Click to expand it.
examples/imageAfterLoop.docx
0 → 100644
File added
gulpfile.js
deleted
100644 → 0
npm-shrinkwrap.json
0 → 100644
This diff is collapsed.
Click to expand it.
... | @@ -4,15 +4,17 @@ | ... | @@ -4,15 +4,17 @@ |
"description": "Image Module for docxtemplater v1.0", | "description": "Image Module for docxtemplater v1.0", | ||
"main": "js/index.js", | "main": "js/index.js", | ||
"scripts": { | "scripts": { | ||
"test": "mocha" | "convertto:es6": "rm es6 -rf; mkdir -p es6; for i in coffee/*.coffee; do echo \"$i\"; decaffeinate \"$i\"; mv \"${i%.coffee}.js\" \"${i%.coffee}.es6\"; done; for i in coffee/*.es6; do mv \"$i\" \"es6${i#coffee}\"; done ", | ||
"convertto:es5": "rm js -rf ; mkdir -p test/spec; mkdir -p js; babel es6 --out-dir js; mv js/test.js test/test.js", | |||
"test:compiled": "mocha", | |||
"test": "npm run convertto:es6 && npm run convertto:es5 && npm run test:compiled" | |||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"chai": "^1.10.0", | "babel-preset-es2015": "^6.3.13", | ||
"gulp": "~3.8.0", | "chai": "^3.4.1", | ||
"gulp-coffee": "~2.0.1", | "docxtemplater": "^2.0.0", | ||
"gulp-uglify": "~0.3.0", | "eslint": "^1.10.3", | ||
"gulp-browserify": "^0.5.0", | "mocha": "^2.4.5" | ||
"gulp-watch": "~0.6.5" | |||
}, | }, | ||
"repository": { | "repository": { | ||
"type": "git", | "type": "git", | ||
... | @@ -21,10 +23,11 @@ | ... | @@ -21,10 +23,11 @@ |
"author": "Edgar Hipp", | "author": "Edgar Hipp", | ||
"license": "MIT", | "license": "MIT", | ||
"dependencies": { | "dependencies": { | ||
"docxtemplater": "^1.0.8", | "decaffeinate": "^1.44.12", | ||
"docxtemplater": "^2.0.0", | |||
"jszip": "^2.4.0", | "jszip": "^2.4.0", | ||
"png-js": "^0.1.1", | "png-js": "^0.1.1", | ||
"qrcode-reader": "0.0.5", | "qrcode-reader": "0.0.7", | ||
"xmldom": "^0.1.19" | "xmldom": "0.1.19" | ||
} | } | ||
} | } |
Please
register
or
sign in
to comment