-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
54 lines (54 loc) · 2.9 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
{
"author": "inc2734",
"license": "GPL-2.0+",
"dependencies": {
"jquery.smoothscroll": "^1.0.3",
"jquery.sticky": "^0.2.1",
"node-normalize-scss": "^8.0.0",
"slick-carousel": "^1.8.1"
},
"devDependencies": {
"@alrra/travis-scripts": "^3.0.1",
"autoprefixer": "^8.6.5",
"babel-core": "^6.26.3",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-env": "^1.7.0",
"browser-sync": "^2.24.5",
"cpy-cli": "^2.0.0",
"cssnano-cli": "^1.0.5",
"node-sass": "^4.9.1",
"npm-run-all": "^4.1.3",
"postcss-cli": "^5.0.1",
"rimraf": "^2.6.2",
"rollup": "^0.62.0",
"rollup-plugin-babel": "^3.0.7",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0",
"uglify-js": "^3.4.3"
},
"scripts": {
"start": "npm run build",
"test": "composer test",
"cleanup:css": "rimraf resources/assets/css && mkdir -p resources/assets/css",
"cleanup:js": "rimraf resources/assets/js && mkdir -p resources/assets/js",
"cleanup:packages": "rimraf resources/assets/packages && mkdir -p resources/assets/packages",
"cleanup:img": "rimraf resources/assets/img && mkdir -p resources/assets/img",
"cleanup:zip": "rimraf mimizuku.zip",
"minify:css": "find resources/assets/css -name '*.css' | xargs -I{} cssnano {} {}.min --no-zindex && find resources/assets/css -name '*.css.min' | sed 'p;s/.css.min/.min.css/' | xargs -n2 mv",
"minify:js": "find resources/assets/js -name '*.js' | xargs -I{} uglifyjs {} -o {}.min -mc && find resources/assets/js -name '*.js.min' | sed 'p;s/.js.min/.min.js/' | xargs -n2 mv",
"css:sass": "node-sass --include-path=node_modules/node-normalize-scss resources/src/css -o resources/assets/css",
"css:postcss": "postcss resources/assets/css/**/*.css -r --no-map -c=postcss.config.js",
"css:php": "cpy '**/*.php' '../../assets/css' --cwd=resources/src/css --parents",
"css": "npm run cleanup:css && npm-run-all -s css:sass css:postcss && npm-run-all -p minify:css css:php",
"js:rollup": "find resources/src/js -name '*.js' -not -name '_*.js' | xargs -I{} rollup {} -f=iife -c=rollup.config.js --dir resources/assets/js --experimentalCodeSplitting",
"js": "npm run cleanup:js && npm run js:rollup && npm run minify:js",
"packages:slick-carousel": "cpy 'slick-carousel/**' '../resources/assets/packages' --cwd=node_modules --parents",
"packages": "npm run cleanup:packages && npm-run-all packages:*",
"img": "npm run cleanup:img && cpy '**' '../../assets/img' --cwd=resources/src/img --parents",
"build": "npm-run-all -p img packages && npm-run-all -p js css",
"browsersync": "browser-sync start -p '127.0.0.1:8080' -f '**/*' 'resources/assets/**'",
"zip:pack": "composer install --no-dev && rsync -a --exclude='.*' resources/ mimizuku",
"zip:archive": "zip -9 -qmr mimizuku.zip mimizuku",
"zip": "npm run cleanup:zip && npm run zip:pack && npm run zip:archive"
}
}