-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
44 lines (44 loc) · 1.34 KB
/
package.json
File metadata and controls
44 lines (44 loc) · 1.34 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
{
"name": "react-app-template",
"version": "1.0.0",
"description": "A template for a React app.",
"license": "MIT",
"author": "DylanCheetah",
"type": "commonjs",
"main": "index.js",
"scripts": {
"build": "npm run build:copy && npm run build:vendor && npm run build:bundle",
"serve": "npm run build:copy && npm run build:vendor && npm run serve:budo",
"build:copy": "copyfiles -f src/index.html dist/",
"build:vendor": "browserify -r react -r react-dom | uglifyjs --compress --mangle > dist/vendor.js",
"build:bundle": "browserify src/main.js -x react -x react-dom | uglifyjs --compress --mangle > dist/bundle.js",
"serve:budo": "budo src/main.js -p 8000 --serve /bundle.js --live --dir dist/ -d -- -x react -x react-dom",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@babel/preset-env": "^7.29.2",
"@babel/preset-react": "^7.28.5",
"babelify": "^10.0.0",
"browserify": "^17.0.1",
"budo": "^11.8.4",
"copyfiles": "^2.4.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"uglify-js": "^3.19.3",
"watchify": "^4.0.0"
},
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
]
]
}
}