-
Notifications
You must be signed in to change notification settings - Fork 42
/
package.json
41 lines (41 loc) · 1.89 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
{
"name": "side-view",
"description": "Open a mobile view of a page in the sidebar",
"version": "0.6.0",
"author": "Mozilla (https://mozilla.org/)",
"bugs": {
"url": "https://github.com/mozilla/side-view/issues"
},
"devDependencies": {
"addons-linter": "^7.3.0",
"eslint": "^5.5.0",
"eslint-plugin-mozilla": "^0.15.4",
"eslint-plugin-no-unsanitized": "^3.0.2",
"mustache": "^2.3.2",
"npm-run-all": "4.1.5",
"stylelint": "^9.5.0",
"stylelint-config-standard": "^18.2.0",
"web-ext": "^2.9.1"
},
"homepage": "https://github.com/mozilla/side-view/",
"license": "MPL-2.0",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/mozilla/side-view.git"
},
"scripts": {
"start": "npm-run-all build run",
"lint": "npm-run-all lint:*",
"lint:addon": "npm run package && addons-linter ./addon.xpi -o text --self-hosted",
"lint:js": "eslint .",
"lint:styles": "stylelint ./addon/*.css",
"build": "npm-run-all build:*",
"build:manifest": "node -e 'let input = JSON.parse(fs.readFileSync(\"package.json\")); input.version = input.version.slice(0, -1) + Math.floor((Date.now() - new Date(new Date().getFullYear().toString()).getTime()) / 3600000); Object.assign(input, process.env); console.log(JSON.stringify(input))' | mustache - addon/manifest.json.tmpl > addon/manifest.json",
"build:buildSettings": "mkdir -p addon/build/ && node -e 'console.log(JSON.stringify(process.env))' | mustache - addon/buildSettings.js.tmpl > addon/build/buildSettings.js",
"build:web-ext": "web-ext build --source-dir=addon --overwrite-dest --ignore-files '*.tmpl'",
"package": "npm run build && cp web-ext-artifacts/`ls -t1 web-ext-artifacts | head -n 1` addon.xpi",
"run": "mkdir -p ./Profile && web-ext run --source-dir=addon -p ./Profile --browser-console --keep-profile-changes -f nightly",
"test": "npm run lint"
}
}