|
1 | 1 | { |
| 2 | + "bin": { |
| 3 | + "extendscriptr": "./index.js" |
| 4 | + }, |
2 | 5 | "name": "extendscriptr", |
3 | 6 | "version": "1.0.0", |
4 | 7 | "description": "A node build configuration to develop extendScripts with es2015 javascript code", |
5 | 8 | "scripts": { |
6 | | - "clean:temp": "rm -rf ./.tmp", |
7 | | - "clean:dist": "rm -rf ./dist", |
8 | | - "clean": "npm run clean:temp & npm run clean:dist ; mkdir dist & mkdir .tmp", |
9 | | - "insert-polyfills": "cat ./node_modules/extendscript.prototypes/dist/extendscript.prototypes.0.0.5.jsx >> ./dist/output.js", |
10 | | - "insert-bundle": "cat ./.tmp/script.js >> ./dist/output.js", |
11 | | - "bundle": "browserify -e ./src/index.js -o .tmp/script.js -t [ babelify ]", |
12 | | - "compile": "npm run clean ; npm run insert-polyfills ; npm run bundle ; npm run insert-bundle ; npm run clean:temp", |
13 | | - "start": "npm run compile" |
| 9 | + "clean:temp": "rm -rf ./.tmp ; mkdir ./.tmp", |
| 10 | + "clean:dist": "rm -rf ./test/dist ; mkdir ./test/dist", |
| 11 | + "compile:test:illustrator": "node ./index.js -s test/src/illustrator.js -o test/dist/illustrator.js -t 'illustrator'", |
| 12 | + "compile:test:indesign": "node ./index.js -s test/src/indesign.js -o test/dist/indesign.js -t 'indesign'", |
| 13 | + "compile:test:aftereffects": "node ./index.js -s test/src/aftereffects.js -o test/dist/aftereffects.js -t 'aftereffects'", |
| 14 | + "compile:test:photoshop": "node ./index.js -s test/src/photoshop.js -o test/dist/photoshop.js -t 'photoshop'", |
| 15 | + "compile:test:all": "npm run compile:test:illustrator & npm run compile:test:indesign & npm run compile:test:aftereffects & npm run compile:test:photoshop", |
| 16 | + "test": "npm run clean:dist ; npm run compile:test:all ; npm run clean:temp" |
14 | 17 | }, |
15 | 18 | "repository": { |
16 | 19 | "type": "git", |
|
43 | 46 | "babel-preset-es2015": "^6.6.0", |
44 | 47 | "babelify": "^7.3.0", |
45 | 48 | "browserify": "^13.0.0", |
46 | | - "extendscript.prototypes": "0.0.5" |
| 49 | + "commander": "^2.9.0", |
| 50 | + "extendscript.prototypes": "0.0.5", |
| 51 | + "prependify": "^1.2.0" |
47 | 52 | } |
48 | 53 | } |
0 commit comments