-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
22 lines (22 loc) · 1.95 KB
/
Copy pathpackage.json
File metadata and controls
22 lines (22 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "xdanswers-extension",
"version": "5.6.1",
"private": true,
"description": "A script that helps in tests by providing AI-powered answers.",
"scripts": {
"_build:firefox": "node scripts/build-manifest.js firefox && node scripts/inject-version.js",
"build:firefox": "npm run _build:firefox && cross-env TARGET=firefox web-ext build --config .web-ext-config.js && npm run clean",
"build:firefox:debug": "node scripts/build-manifest.js firefox && node scripts/inject-version.js debug && cross-env TARGET=firefox web-ext build --config .web-ext-config.js && node -e \"const h=require('child_process').execSync('git rev-parse --short HEAD',{encoding:'utf8'}).trim();const f=require('fs').readdirSync('build').find(f=>f.endsWith('.xpi'));if(f)require('fs').renameSync('build/'+f,'build/xdanswers-firefox-'+h+'.xpi')\" && npm run clean",
"sign:firefox": "node scripts/sign-firefox.js",
"_build:chrome": "node scripts/build-manifest.js chrome && node scripts/inject-version.js",
"build:chrome": "npm run _build:chrome && cross-env TARGET=chrome web-ext build --config .web-ext-config.js && npm run clean",
"build:chrome:debug": "node scripts/build-manifest.js chrome && node scripts/inject-version.js debug && cross-env TARGET=chrome web-ext build --config .web-ext-config.js && node -e \"const h=require('child_process').execSync('git rev-parse --short HEAD',{encoding:'utf8'}).trim();const f=require('fs').readdirSync('build').find(f=>f.match(/xdanswers-chrome.*\\.zip$/));if(f)require('fs').renameSync('build/'+f,'build/xdanswers-chrome-'+h+'.zip')\" && npm run clean",
"clean": "node -e \"require('fs').rmSync('manifest.json',{force:true});require('fs').rmSync('version.js',{force:true})\"",
"dev": "node scripts/build-manifest.js chrome && node scripts/inject-version.js debug",
"version": "node scripts/sync-version.js && git add manifest.common.json"
},
"devDependencies": {
"cross-env": "^7.0.3",
"web-ext": "^7.12.0"
}
}