-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
56 lines (56 loc) · 2.54 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
{
"name": "@mypreview/html-boilerplate",
"version": "1.0.0",
"private": true,
"description": "Simple boilerplate for building web app with babel-cli and sass.",
"homepage": "https://github.com/mypreview/html-boilerplate#readme",
"bugs": {
"url": "https://github.com/mypreview/html-boilerplate/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mypreview/html-boilerplate.git"
},
"license": "GPL-3.0-or-later",
"author": "MyPreview",
"scripts": {
"build": "cross-env BABEL_ENV=default NODE_ENV=production npm run format && npm run build:css && npm run build:js && npm run build:html && npm run copy:resources",
"build:css": "rimraf build/css/* && npm run lint:css && sass src/scss/style.scss build/css/style.min.css --style=compressed --no-source-map",
"build:html": "rimraf build/**/*.html && html-includes --src src/pages --dest build --minify",
"build:js": "rimraf build/js/* && npm run lint:js && babel src/js/script.js --out-file build/js/script.min.js && terser --compress --mangle --output build/js/script.min.js -- build/js/script.min.js",
"copy:assets": "rimraf build/assets && rsync -a src/assets build",
"copy:changelog": "rimraf build/CHANGELOG.txt && rsync -a src/CHANGELOG.txt build",
"copy:resources": "npm run copy:assets && npm run copy:changelog",
"format": "prettier --ignore-path .eslintignore --write \"src/**/*.{js,json}\"",
"lint:css": "stylelint src/scss/**/*.scss",
"lint:css:fix": "stylelint src/scss/**/*.scss --fix",
"lint:js": "eslint src/js/**/*.js",
"lint:js:fix": "eslint src/js/**/*.js --fix",
"watch": "npm run copy:resources && concurrently --kill-others \"npm run watch:css\" \"npm run watch:js\" \"npm run watch:html\"",
"watch:css": "sass src/scss/style.scss build/css/style.min.css --style=expanded --watch",
"watch:html": "rimraf build/**/*.html && html-includes --src src/pages --dest build --watch",
"watch:js": "babel src/js/script.js --out-file build/js/script.min.js --watch"
},
"dependencies": {
"@mypreview/unicorn-style-utils": "1.3.0"
},
"devDependencies": {
"@babel/cli": "7.19.3",
"@babel/core": "7.20.2",
"@babel/preset-env": "7.20.2",
"@wordpress/browserslist-config": "5.4.0",
"@wordpress/eslint-plugin": "13.5.0",
"@wordpress/prettier-config": "2.4.0",
"@wordpress/stylelint-config": "21.4.0",
"concurrently": "7.5.0",
"cross-env": "7.0.3",
"eslint": "8.27.0",
"html-includes": "4.4.1",
"prettier": "npm:wp-prettier@2.6.2",
"rimraf": "3.0.2",
"sass": "1.56.1",
"sass-loader": "13.2.0",
"stylelint": "14.14.1",
"terser": "5.15.1"
}
}