44 lines
1.5 KiB
JSON
44 lines
1.5 KiB
JSON
{
|
|
"name": "threejs-es6-webpack-boilerplate",
|
|
"version": "1.0.0",
|
|
"description": "Boilerplate for Three.js projects set up with Babel for ES6 and compiled with webpack",
|
|
"author": "Paul Graffam",
|
|
"main": "app.js",
|
|
"scripts": {
|
|
"dev": "run-p dev:sass webpack-server",
|
|
"build": "run-s prebuild build:dir build:js build:sass",
|
|
"prebuild": "run-s clean lint",
|
|
"clean": "rimraf build",
|
|
"lint": "eslint src/js/",
|
|
"webpack-server": "webpack-dev-server --env.NODE_ENV=dev --progress --color --open --hot",
|
|
"webpack-watch": "webpack --env.NODE_ENV=dev --progress --color --watch --hot",
|
|
"dev:sass": "node-sass -w -r src/css/ -o src/public/assets/css/",
|
|
"dev:js": "webpack --env.NODE_ENV=dev",
|
|
"build:dir": "copyfiles -a -u 2 -E src/public/**/*.* build/",
|
|
"build:sass": "node-sass --output-style compressed src/css/ -o build/public/assets/css/",
|
|
"build:js": "webpack --env.NODE_ENV=prod --progress --color"
|
|
},
|
|
"dependencies": {
|
|
"es6-promise": "^4.2.5",
|
|
"three": "^0.100.0",
|
|
"tween.js": "^16.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.2.2",
|
|
"@babel/preset-env": "^7.3.1",
|
|
"babel-loader": "^8.0.5",
|
|
"copyfiles": "^2.1.0",
|
|
"css-loader": "^2.1.0",
|
|
"eslint": "^5.12.1",
|
|
"html-webpack-plugin": "^3.2.0",
|
|
"node-sass": "^4.11.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"rimraf": "^2.6.3",
|
|
"sass-loader": "^7.1.0",
|
|
"style-loader": "^0.23.1",
|
|
"webpack": "^4.29.0",
|
|
"webpack-cli": "^3.2.1",
|
|
"webpack-dev-server": "^3.1.14"
|
|
}
|
|
}
|