This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
32 lines (32 loc) · 1.47 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"name": "cloud-project-color-extension",
"version": "0.0.1",
"description": "Chrome extension to color the Google cloud console switcher.",
"author": "ludo <[email protected]>",
"license": "Apache-2.0",
"main": "src/main.js",
"config": {
"tag_suffix": "",
"dist_files": "manifest.json popup.html style.css src/content.js icon-128-gray.png icon-128.png",
"dist_scripts": "clean files ng background popup"
},
"scripts": {
"version": "sed -i'' -E 's/(\"version\": )\"[^\"]+\"/\\1\"'$npm_package_version'\"/' manifest.json",
"postversion": "git tag v${npm_package_version}${npm_package_config_tag_suffix} && git add manifest.json package.json",
"watch:background": "watchify -vd src/background.js -o dist/background.js",
"watch:popup": "watchify -vd src/popup.js -o dist/popup.js",
"dist:files": "cp $npm_package_config_dist_files dist/",
"dist:background": "NODE_ENV=production browserify -g envify src/background.js >dist/background.js",
"dist:popup": "NODE_ENV=production browserify -g envify src/popup.js >dist/popup.js",
"dist:ng": "cp node_modules/angular/angular.min.js dist/",
"dist:clean": "rm -rf dist && mkdir -p dist",
"dist": "for s in $npm_package_config_dist_scripts; do npm run dist:$s; done",
"zip": "npm run dist && zip -r pantheon-color-${npm_package_version}.zip dist"
},
"devDependencies": {
"angular": "^1.6.10",
"browserify": "^16.2.0",
"envify": "^4.1.0",
"watchify": "^3.11.0"
}
}