-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
66 lines (66 loc) · 3 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"name": "my-webpack-boilerplate",
"version": "1.0.0",
"description": "My definition of webpack boilerplate",
"scripts": {
"build": "cross-env NODE_ENV=production webpack",
"test": "echo \"Error: no test specified\" && exit 1",
"start": "webpack-dev-server --host 0.0.0.0 --hot-only --inline --port 3030",
"add-page": "func() { mkdir ./src/pages/${1:-somepage}; npm run add-file-html ${1:-somepage};}; func",
"add-file-html": "func() { touch ./src/pages/${1:-somepage}/${1:-somefile}.html; echo '<h1>Your new <span>'${1:-somefile}'</span> Page</h1>' >> ./src/pages/${1:-somepage}/${1:-somefile}.html; npm run add-file-sass ${1:-somepage};}; func",
"add-file-sass": "func() { touch ./src/pages/${1:-somepage}/${1:-somefile}.scss; echo 'h1 > span {color: red}' >> ./src/pages/${1:-somepage}/${1:-somefile}.scss; npm run add-file-js ${1:-somepage};}; func",
"add-file-js": "func() { touch ./src/pages/${1:-somepage}/${1:-somepage}.js; echo 'console.log(\"__HELLO__FRIEND__ON__'${1:-somepage}'__PAGE\");' >> ./src/pages/${1:-somepage}/${1:-somepage}.js; echo 'require(\"../'${1:-somepage}'/'${1:-somepage}.js'\");' >> ./src/pages/homepage/page.js; echo '@import \"../pages/'${1:-somepage}'/'${1:-somefile}.scss'\";' >> ./src/styles/imports.scss; npm run add-to-homepage ${1:-somepage};}; func",
"add-to-homepage": "func() { echo '<require path=\"../src/pages/'${1:-somepage}'/'${1:-somefile}.html'\"></require>' >> ./src/pages/homepage/homepage.html;}; func",
"remove-page": "func() { npm run clear-files ${1:-somepage}; rm -rf ./src/pages/${1:-somepage};}; func",
"clear-files": "func() { sed -i '/'${1:-somefile}'/g' ./src/pages/homepage/homepage.html; sed -i '/'${1:-somefile}'/g' ./src/styles/imports.scss; sed -i '/'${1:-somefile}'/g' ./src/pages/homepage/page.js;}; func"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Nienormalny/my-webpack-boilerplate.git"
},
"keywords": [
"webpack",
"js",
"html5",
"modules",
"boilerplate",
"sass"
],
"author": "Dawid Szadurski",
"license": "MIT",
"bugs": {
"url": "https://github.com/Nienormalny/my-webpack-boilerplate/issues"
},
"homepage": "https://github.com/Nienormalny/my-webpack-boilerplate#readme",
"devDependencies": {
"cross-env": "^7.0.2",
"css-loader": "^4.3.0",
"json-loader": "^0.5.7",
"node-sass": "^4.14.1",
"sass-loader": "^10.0.2",
"style-loader": "^1.2.1",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
},
"dependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"aframe-super-hot-html-loader": "^2.1.0",
"aframe-super-hot-loader": "^1.7.0",
"babel-loader": "^8.1.0",
"babel-preset-minify": "^0.5.1",
"html-loader": "^1.3.1",
"html-require-loader": "^1.0.1",
"ip": "^1.1.5",
"lodash": "^4.17.20",
"super-nunjucks-loader": "^2.0.0",
"url-loader": "^4.1.0",
"webpack-sources": "^2.0.1"
},
"semistandard": {
"ignore": [
"build/**"
]
}
}