-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
30 lines (30 loc) · 1.47 KB
/
Copy pathpackage.json
File metadata and controls
30 lines (30 loc) · 1.47 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
{
"name": "crowdhandler-akamai-integration",
"version": "2.27.0",
"description": "",
"main": "main.js",
"scripts": {
"prebuild": "node -e \"const fs=require('fs');const p=JSON.parse(fs.readFileSync('package.json'));const v=p.version.split('.');v[1]=+v[1]+1;v[2]=0;p.version=v.join('.');fs.writeFileSync('package.json',JSON.stringify(p,null,2)+'\\n');const b=JSON.parse(fs.readFileSync('bundle.json'));b['edgeworker-version']=v[0]+'.'+v[1];fs.writeFileSync('bundle.json',JSON.stringify(b,null,4)+'\\n');console.log('Bumped to '+p.version);\"",
"build": "rollup -c && cd dist/work && tar -czvf ../crowdhandler-akamai.tgz *",
"build-dev": "rollup -c && cd dist/work && tar -czvf ../crowdhandler-akamai.tgz * && akamai sandbox update-edgeworker 7825 ../crowdhandler-akamai.tgz",
"sandbox-create": "akamai sandbox create --hostname www.example.com --name sandbox_for_www_example_com",
"sandbox-debug": "akamai edgeworkers auth --expiry 720 www.example.com",
"sandbox-list": "akamai sandbox list",
"sandbox-start": "akamai sandbox start",
"sandbox-update": "akamai sandbox update-edgeworker"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"rollup": "^2.59.0",
"rollup-plugin-copy-assets": "^2.0.3",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-terser": "^7.0.2"
},
"dependencies": {
"js-sha256": "^0.9.0",
"util": "^0.12.4"
}
}