forked from awesome-fc/puppeteer-fc-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·24 lines (24 loc) · 1.03 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
{
"name": "puppeteer-fc-starter-kit",
"version": "1.1.2",
"description": "Starter Kit for running Headless-Chrome by Puppeteer on Aliyun Function computing",
"scripts": {
"package": "npm run package-prepare && cp chrome/headless_shell.tar.gz dist && cd dist && zip -rq ../package.zip .",
"package-nochrome": "npm run package-prepare && cd dist && zip -rq ../package.zip .",
"package-prepare": "npm run lint && npm run babel && cp -r package.json dist && cp -r lib dist && cd dist && PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install --production",
"babel": "rm -rf dist package.zip && mkdir dist && ./node_modules/.bin/babel src --out-dir dist",
"local": "npm run babel && cp -r node_modules dist && node dist/starter-kit/local.js",
"lint": "./node_modules/.bin/eslint src"
},
"dependencies": {
"puppeteer": "1.4.0",
"tar": "^4.0.1"
},
"devDependencies": {
"ali-oss": "^5.2.0",
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.0",
"eslint": "^4.6.1",
"eslint-config-google": "^0.9.1"
}
}