-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
113 lines (113 loc) · 4.71 KB
/
package.json
File metadata and controls
113 lines (113 loc) · 4.71 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"name": "node-postcss-es8-boilerplate",
"version": "2.0.0",
"main": "./app/server.js",
"author": "Mohammed Mulazada <thisismoniac@gmail.com>",
"engines": {
"node": "^10.14"
},
"scripts": {
"postinstall": "yarn run build:dir",
"start": "node ./app/server.js",
"build": "yarn run build:all",
"dev": "concurrently \"yarn run watch:all \" \"yarn run copy:all:watch \" \"yarn run build:template \" \"yarn run hotreload \"",
"build:dir": "mkdirp public ./public/scripts ./public/styles ./public/fonts ./public/images ./app/src ./app/src/scripts ./app/src/styles ./app/src/fonts ./app/src/images ./config/template/ ./config/template/component ./config/template/component/{name_cc}",
"build:template": "concurrently \" touch ./config/template/component/{name_cc}/{name_cc}.css \" \" touch ./config/template/component/{name_cc}/{name_cc}.js \" \" touch ./config/template/component/{name_cc}/{name_cc}.ejs \" ",
"build:env": "touch config/.env",
"audit:js": "onchange \"./app/views/**/*.js\" \"./app/views/*.js\" -- yarn run eslint:js",
"audit:css": "onchange \"./app/views/**/*.css\" -- yarn run eslint:css",
"audit:ejs": "onchange $(find ./app/views/ -type f -iname '*.ejs') -- yarn run ejslint $(find ./app/views/ -type f -iname '*.ejs')",
"eslint:css": "stylelint --config ./config/.stylelintrc.json ./app/views/**/*.css --fix",
"eslint:js": "eslint -c ./config/.eslintrc.json ./app/views/**/*.js --fix",
"component": "sg -d ./app/views/components -p ./config/template generate component",
"watch:all": "concurrently \"yarn run watch:js \" \"yarn run watch:css\" \"yarn run audit:css\" \"yarn run audit:js\" \"yarn run audit:ejs\" \"yarn run watch:node \"",
"watch:css": "postcss --config './config/postcss.config.js' ./app/views/*.css -d ./public/styles/ --verbose -w",
"watch:js": "watchify ./app/views/index.js -t babelify -o ./public/scripts/index.js -v --debug",
"watch:node": "nodemon ./app/server.js",
"hotreload": "yarn run livereload . --exts 'ejs, css, js' -d",
"build:all": "concurrently \"yarn run build:dir\" \" yarn run build:css \" \"yarn run build:js\" \"yarn run build:sqip\" \"yarn run copy:all\"",
"build:css": "postcss --config './postcss.config.js' ./app/views/*.css -d ./public/styles/ --verbose",
"build:js": "browserify ./app/views/index.js -t babelify | uglifyjs -cm -o ./public/scripts/index.js",
"build:sqip": "foreach -i \"./app/src/images/*.svg\" -g \"./app/src/images/*\" -x \"sqip -o #{dir}/#{name}.svg #{dir}/#{name}#{ext}\"",
"copy:all:watch": "concurrently \"yarn run copy:fonts -w\" \"yarn run copy:jsStatic -w\" \"yarn run copy:images -w\" \"yarn run copy:cssStatic -w\"",
"copy:all": "concurrently \"yarn run copy:fonts\" \"yarn run copy:jsStatic\" \"yarn run copy:images\" \"yarn run copy:cssStatic\"",
"copy:fonts": "cpx \"./app/src/fonts/**\" ./public/fonts",
"copy:jsStatic": "cpx \"./app/src/scripts/**.js\" ./public/scripts",
"copy:images": "cpx \"./app/src/images/**\" ./public/images",
"copy:cssStatic": "cpx \"./app/src/styles/**\" ./public/styles",
"preview": "ngrok http -config=./config/ngrok.yml -config=./config/ngrok-secrets.yml 8000"
},
"license": "MIT",
"dependencies": {
"body-parser": "^1.18.3",
"dotenv": "^8.2.0",
"ejs": "^2.7.1",
"express": "^4.17.1"
},
"babel": {
"presets": [
[
"@babel/preset-env"
]
],
"plugins": [
"transform-async-to-generator",
"@babel/transform-runtime"
]
},
"browserslist": [
"last 1 version",
"> 1%",
"maintained node versions",
"not dead"
],
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 4,
"useTabs": false,
"arrowParens": "avoid",
"bracketSpacing": true,
"endOfLine": "lf"
},
"devDependencies": {
"@babel/core": "^7.7.2",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.6.3",
"@babel/runtime": "^7.7.2",
"autoprefixer": "^9.7.1",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babelify": "^10.0.0",
"browserify": "^16.5.0",
"concurrently": "^5.0.0",
"cpx": "^1.5.0",
"css-mqpacker": "^7.0.0",
"cssnano": "^4.1.10",
"ejs-lint": "^0.3.0",
"eslint": "^6.6.0",
"foreach-cli": "^1.8.1",
"livereload": "^0.8.2",
"mkdirp": "^0.5.1",
"ngrok": "^3.2.5",
"nodemon": "^2.0.0",
"onchange": "^6.1.0",
"postcss-cli": "^6.1.3",
"postcss-cssnext": "^3.1.0",
"postcss-custom-media": "^7.0.8",
"postcss-custom-properties": "^9.0.2",
"postcss-discard-comments": "^4.0.2",
"postcss-import": "^12.0.1",
"postcss-mixins": "^6.2.3",
"postcss-nested": "^4.1.2",
"postcss-preset-env": "^6.7.0",
"prettier": "^1.18.2",
"rimraf": "^3.0.0",
"seng-generator": "^0.9.0",
"sqip": "^0.3.3",
"stylelint": "^11.1.1",
"uglify-js": "^3.6.7",
"watchify": "^3.11.1",
"yarn": "^1.19.1"
}
}