forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
45 lines (45 loc) · 1.88 KB
/
package.json
File metadata and controls
45 lines (45 loc) · 1.88 KB
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
{
"private": true,
"version": "1.0.0",
"engines": {
"yarn": ">1.10.0"
},
"scripts": {
"dev": "NODE_ENV=development NODE_OPTIONS=--max_old_space_size=4096 TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" node -r ts-node/register scripts/dev",
"dev:no-reload": "AUTO_RELOAD=false yarn run dev",
"dev:firefox": "if type web-ext 2>/dev/null; then web-ext run --source-dir ./build/firefox; else echo 'web-ext not found. Install it with: yarn global add web-ext'; exit 1; fi",
"build": "NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" node -r ts-node/register scripts/build",
"release": "yarn release:chrome",
"release:chrome": "webstore upload --auto-publish --source build/bundles/chrome-bundle.zip --extension-id dgjhfomjieaadpoljlnidmbgkdffpack --client-id $GOOGLE_CLIENT_ID --client-secret $GOOGLE_CLIENT_SECRET --refresh-token $GOOGLE_REFRESH_TOKEN",
"release:ff": "./scripts/release-ff.sh",
"release:npm": "TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" ts-node ./scripts/publish-npm.ts",
"lint": "yarn run eslint && yarn run stylelint",
"eslint": "eslint --cache '**/*.[jt]s?(x)'",
"stylelint": "stylelint 'src/**/*.scss'",
"clean": "rm -rf build/ dist/ *.zip *.xpi .checksum",
"test": "jest --testPathIgnorePatterns e2e",
"test-e2e": "mocha './src/e2e/**/*.test.ts'",
"bundlesize": "GITHUB_TOKEN= bundlesize"
},
"browserslist": [
"last 3 Chrome versions",
"last 3 Firefox versions"
],
"bundlesize": [
{
"path": "./build/dist/js/background.bundle.js"
},
{
"path": "./build/dist/js/inject.bundle.js"
},
{
"path": "./build/dist/js/integration.bundle.js"
},
{
"path": "./build/dist/js/phabricator.bundle.js"
},
{
"path": "./build/dist/css/style.bundle.css"
}
]
}