-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
30 lines (30 loc) · 831 Bytes
/
package.json
File metadata and controls
30 lines (30 loc) · 831 Bytes
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": "p5js-es6-boilerplate",
"version": "0.1.0",
"private": true,
"dependencies": {
"p5": "^1.8.0",
"esbuild": "^0.19.5",
"npm-run-all": "^4.1.5"
},
"scripts": {
"start": "npm-run-all build serve",
"build": "npm-run-all copy-static build-js",
"serve": "esbuild src/index.js --bundle --outdir=build --servedir=build --serve=3000 --watch",
"build-js": "esbuild src/index.js --define:process.env.NODE_ENV=\\\"$NODE_ENV\\\" --bundle --outdir=build --minify --sourcemap --platform=browser",
"copy-static": "cp -R public/ build/"
},
"browserslist": {
"development": [
"last 2 chrome versions",
"last 2 firefox versions",
"last 2 edge versions"
],
"production": [
">1%",
"last 4 versions",
"Firefox ESR",
"not ie < 11"
]
}
}