|
11 | 11 | "pretest": "npm run lint",
|
12 | 12 | "test": "karma start",
|
13 | 13 | "test:watch": "karma start --no-single-run --auto-watch",
|
14 |
| - "build": "webpack", |
15 |
| - "build:watch": "webpack --watch", |
16 |
| - "build-chrome": "webpack --output-path chrome", |
17 |
| - "build-firefox": "webpack --output-path firefox", |
18 |
| - "open-firefox": "web-ext run --source-dir firefox", |
19 |
| - "dist-chrome": "webpack -p --config webpack.dist.config.js --dist=chrome", |
20 |
| - "dist-firefox": "webpack -p --config webpack.dist.config.js --dist=firefox", |
21 |
| - "dist-all": "npm run dist-chrome && npm run dist-firefox" |
| 14 | + "chrome-manifest": "mkdir -p dist && json -e 'delete this.applications; this.permissions.shift()' < assets/manifest.json > dist/manifest.json", |
| 15 | + "chrome-build": "npm run chrome-manifest && webpack", |
| 16 | + "chrome-dist": "npm run chrome-build -- -p", |
| 17 | + "chrome-watch": "npm run chrome-manifest && webpack --watch", |
| 18 | + "chrome-pack": "npm run chrome-dist && mkdir -p out && zip -rj out/chrome-octolinker-$npm_package_version.zip dist", |
| 19 | + "firefox-manifest": "mkdir -p dist && cp assets/manifest.json dist/manifest.json", |
| 20 | + "firefox-build": "npm run firefox-manifest && webpack", |
| 21 | + "firefox-dist": "npm run firefox-build -- -p", |
| 22 | + "firefox-watch": "npm run firefox-manifest && webpack --watch", |
| 23 | + "firefox-pack": "npm run firefox-dist && mkdir -p out && zip -rj out/firefox-octolinker-$npm_package_version.zip dist/", |
| 24 | + "firefox-open": "npm run firefox-build && web-ext run --source-dir dist", |
| 25 | + "pack-repo": "mkdir -p out && zip -r out/octolinker-repository-$npm_package_version.zip * --exclude dist/\\* out/\\* node_modules/\\*" |
22 | 26 | },
|
23 | 27 | "dependencies": {
|
24 | 28 | "JSONPath": "^0.11.2",
|
|
41 | 45 | "copy-webpack-plugin": "^3.0.1",
|
42 | 46 | "eslint": "^1.10.3",
|
43 | 47 | "eslint-config-airbnb": "2.1.1",
|
| 48 | + "json": "^9.0.4", |
44 | 49 | "json-loader": "^0.5.4",
|
45 | 50 | "karma-fixture": "^0.2.5",
|
46 | 51 | "karma-html2js-preprocessor": "^0.1.0",
|
|
0 commit comments