-
Notifications
You must be signed in to change notification settings - Fork 96
/
package.json
186 lines (186 loc) · 6.77 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"name": "firefoxcolor",
"description": "Theming experiment for Firefox Quantum and beyond.",
"version": "2.1.7",
"author": "Les Orchard <[email protected]>",
"contributors": [
"John Gruen <[email protected]>"
],
"private": true,
"title": "Firefox Color",
"homepage": "https://color.firefox.com",
"main": "src/web/index.js",
"config": {
"development": {
"GA_TRACKING_ID": "UA-114768519-1"
},
"production": {
"GA_TRACKING_ID": "UA-77033033-10"
}
},
"scripts": {
"start": "cross-env NODE_ENV=development SITE_ID=local SITE_HOST=localhost npm run start:common",
"start:mini": "cross-env NODE_ENV=development SITE_ID=local SITE_HOST=localhost npm-run-all --parallel server watch:extension",
"start:common": "npm-run-all --parallel server watch:extension watch:lint watch:test",
"start:ec2": "cross-env HOST=$(curl -s http://169.254.169.254/latest/meta-data/public-hostname) NODE_ENV=development SITE_ID=remote npm run start:common",
"server": "webpack-dev-server --config webpack.web.js",
"watch": "npm-run-all --parallel watch:*",
"watch:web": "webpack --watch --progress --colors --config webpack.web.js",
"watch:extension": "webpack --watch --progress --colors --config webpack.extension.js",
"watch:lint": "npm-run-all --parallel watch:lint:*",
"watch:lint:js": "onchange -v \"src/**/*.js\" -- npm run lint:js",
"watch:lint:css": "onchange -v \"src/**/*.scss\" -- npm run lint:css",
"watch:test": "onchange -v \"src/**/*.js\" -- npm run test",
"watch:validate": "npm-run-all --parallel watch:validate:*",
"watch:validate:extension": "onchange -v \"build/extension/**/*\" -- npm run validate:extension",
"watch:validate:themes": "onchange -v \"src/preset-themes/*.json\" -- npm run validate:themes",
"build": "npm-run-all --parallel build:*",
"build:web": "cross-env NODE_ENV=production webpack -p --config webpack.web.js",
"build:extension": "cross-env NODE_ENV=production webpack -p --config webpack.extension.js",
"clean": "npm-run-all clean:*",
"clean:web": "rimraf build/web",
"clean:extension": "rimraf addon.xpi build/extension web-ext-artifacts",
"package": "npm-run-all clean:extension build:extension && web-ext build --overwrite-dest --source-dir=build/extension && mv web-ext-artifacts/*.zip ./addon.xpi",
"xpi": "npm-run-all xpi:*",
"xpi:dev": "cross-env SITE_URL='https://mozilla.github.io/FirefoxColor/' SITE_ID=github npm run package && mv addon.xpi build/web/firefox-color-dev-unsigned.xpi",
"xpi:stage": "cross-env SITE_URL='https://color.stage.mozaws.net/' SITE_ID='stage' npm run package && mv addon.xpi build/web/firefox-color-stage-unsigned.xpi",
"xpi:production": "cross-env SITE_URL='https://color.firefox.com/' SITE_ID='' npm run package && mv addon.xpi build/web/firefox-color-unsigned.xpi",
"run": "npm run build:extension && web-ext run --source-dir=build/extension",
"lint": "npm-run-all lint:*",
"lint:css": "stylelint 'src/**/*.scss'",
"lint:js": "eslint --color .",
"lint:js:fix": "eslint --fix --color .",
"format": "prettier --write \"src/**/*.js\"",
"validate": "npm-run-all validate:*",
"validate:extension": "addons-linter build/extension --self-hosted",
"validate:themes": "node ./bin/validate-themes.js",
"test": "npm-run-all --parallel test:*",
"test:js": "mocha --require src/lib/test-setup.js --recursive \"src/**/*-test.js\"",
"deploy": "gh-pages -x -d build/web -r \"https://[email protected]/mozilla/FirefoxColor.git\""
},
"engines": {
"node": ">=14.0.0"
},
"license": "MPL-2.0",
"repository": "mozilla/FirefoxColor",
"devDependencies": {
"@babel/core": "7.9.0",
"@babel/plugin-proposal-class-properties": "7.8.3",
"@babel/plugin-proposal-object-rest-spread": "7.9.0",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/preset-env": "7.9.0",
"@babel/preset-react": "7.9.4",
"@babel/register": "7.9.0",
"addons-linter": "1.9.0",
"ajv": "6.10.0",
"babel-eslint": "10.1.0",
"babel-loader": "8.0.6",
"chai": "4.1.2",
"copy-webpack-plugin": "6.0.3",
"cross-env": "5.2.0",
"css-loader": "2.1.1",
"enzyme": "3.9.0",
"enzyme-adapter-react-16": "1.10.0",
"eslint": "7.8.1",
"eslint-config-prettier": "6.11.0",
"eslint-plugin-babel": "5.3.1",
"eslint-plugin-fetch-options": "0.0.5",
"eslint-plugin-html": "6.1.0",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-mozilla": "2.8.0",
"eslint-plugin-no-unsanitized": "3.1.2",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.20.6",
"file-loader": "3.0.1",
"generate-asset-webpack-plugin": "0.3.0",
"gh-pages": "2.1.1",
"html-webpack-plugin": "4.0.0",
"image-webpack-loader": "4.6.0",
"mini-css-extract-plugin": "0.5.0",
"mocha": "8.1.1",
"mock-require": "3.0.3",
"node-sass": "4.14.1",
"nodemon": "2.0.4",
"npm-run-all": "4.1.4",
"onchange": "7.0.2",
"prettier": "1.16.4",
"react-hot-loader": "4.12.20",
"react-svg": "7.2.14",
"require-context": "1.1.0",
"rimraf": "2.6.3",
"sass-loader": "7.1.0",
"sinon": "7.3.1",
"stylelint": "13.6.1",
"stylelint-config-standard": "18.2.0",
"web-ext": "5.0.0",
"webpack": "4.44.1",
"webpack-cli": "3.3.12",
"webpack-dev-server": "3.11.0",
"webpack-merge": "4.2.2",
"write-file-webpack-plugin": "4.5.1"
},
"dependencies": {
"classnames": "2.2.6",
"clipboard": "2.0.4",
"fira": "github:mozilla/fira#4.202",
"json-url": "2.3.4",
"jszip": "3.2.0",
"query-string": "6.4.0",
"react": "16.13.1",
"react-color": "2.17.0",
"react-dom": "16.13.1",
"react-onclickoutside": "6.7.1",
"react-redux": "6.0.0",
"react-sortable-hoc": "1.8.3",
"redux": "3.7.2",
"redux-actions": "2.6.5",
"redux-devtools-extension": "2.13.8",
"redux-promise": "0.6.0",
"redux-undo": "1.0.1",
"semver-compare": "1.0.0",
"tinycolor2": "1.4.1"
},
"extensionManifest": {
"name": "Firefox Color",
"permissions": [
"theme",
"storage",
"tabs"
],
"browser_action": {
"browser_style": true,
"default_title": "Firefox Color",
"default_icon": {
"32": "images/icon.svg"
}
},
"background": {
"scripts": [
"background.js"
]
},
"content_scripts": [
{
"js": [
"contentScript.js"
],
"matches": [
"*://localhost/*"
],
"run_at": "document_start"
}
],
"icons": {
"32": "images/logo.svg",
"48": "images/logo.svg",
"96": "images/logo.svg",
"128": "images/logo.svg"
},
"applications": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "57.0a1"
}
}
}
}