-
Notifications
You must be signed in to change notification settings - Fork 20
/
package.json
95 lines (95 loc) · 4.79 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
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
{
"engines": {
"node": ">=20.10.0",
"npm": ">=10.2.3"
},
"volta": {
"node": "20.11.1"
},
"author": "inc2734",
"license": "GPL-2.0+",
"devDependencies": {
"@fortawesome/fontawesome-free": "^6.7.1",
"@fortawesome/fontawesome-svg-core": "^6.7.1",
"@fortawesome/react-fontawesome": "^0.2.2",
"@inc2734/for-each-html-nodes": "^0.4.0",
"@inc2734/spider": "0.0.51",
"@wordpress/browserslist-config": "^6.13.0",
"@wordpress/env": "10.13.0",
"@wordpress/eslint-plugin": "^21.6.0",
"@wordpress/icons": "^10.13.0",
"@wordpress/scripts": "^30.6.0",
"autoprefixer": "^10.4.20",
"browser-sync": "^3.0.3",
"classnames": "^2.5.1",
"cpy-cli": "^5.0.0",
"css-mqpacker": "^7.0.0",
"cssnano": "^7.0.6",
"hex-to-rgba": "^2.0.1",
"masonry-layout": "^4.2.2",
"npm-run-all": "^4.1.5",
"path": "^0.12.7",
"postcss": "^8.4.49",
"postcss-cli": "^11.0.0",
"prettier": "npm:[email protected]",
"react-image": "4.1.0",
"remove-accents": "^0.5.0",
"rimraf": "^6.0.1",
"sass": "^1.82.0",
"sass-basis": "^19.0.5",
"slick-carousel": "^1.8.1",
"typescript": "^5.7.2"
},
"scripts": {
"export:wp-content:themes": "npm run cli cp -- -r wp-content/themes .export/wp-content",
"export:wp-content:uploads": "npm run cli cp -- -r wp-content/uploads .export/wp-content",
"export:wp-content": "npm run cli rm -- -rf .export/wp-content && mkdir -p .export/wp-content/uploads && run-p export:wp-content:*",
"export:db": "mkdir -p .export/sql && npm run wp db -- export .export/sql/local.sql",
"export": "run-p export:*",
"import:wp-content:themes": "npm run cli cp -- -r .export/wp-content/themes wp-content",
"import:wp-content:uploads": "npm run cli cp -- -r .export/wp-content/uploads wp-content",
"import:wp-content": "run-p import:wp-content:*",
"import:db": "npm run wp db -- import .export/sql/local.sql",
"import": "run-p import:*",
"wp-env": "wp-env",
"start": "wp-env start && open http://localhost:8888",
"stop": "npm run export && wp-env stop",
"cli": "wp-env run cli",
"wp": "wp-env run cli --env-cwd=\"wp-content/plugins/snow-monkey-blocks\" wp",
"composer": "wp-env run cli --env-cwd=\"wp-content/plugins/snow-monkey-blocks\" composer",
"browsersync": "browser-sync start -p 'localhost:8888' 'dist/**'",
"blocks:format": "wp-scripts format src/blocks",
"blocks:build": "rimraf dist/blocks && wp-scripts build --output-path=dist",
"blocks:php": "cpy \"src/blocks/**/*.php\" \"dist/blocks\"",
"blocks:img": "cpy \"src/blocks/**/img/*\" \"dist/blocks\"",
"blocks": "run-s blocks:format && run-s blocks:build blocks:php blocks:img",
"pretest:unit:php": "wp-env start",
"test:lint:js": "wp-scripts lint-js src/blocks src/js",
"test:lint:php": "wp-env start && npm run composer lint",
"test:lint": "run-s test:lint:*",
"test:unit:php": "wp-env start && wp-env run --env-cwd=\"wp-content/plugins/snow-monkey-blocks\" tests-wordpress vendor/bin/phpunit -c .phpunit.xml.dist --verbose",
"test:unit": "run-s test:unit:*",
"test": "run-s test:*",
"format:js": "wp-scripts format src/blocks src/js",
"format": "run-p format:*",
"build": "run-s format css js packages img blocks",
"clean:css": "rimraf dist/css",
"clean:js": "rimraf dist/js",
"clean:packages": "rimraf dist/packages",
"clean:zip": "rimraf snow-monkey-blocks.zip",
"clean:img": "rimraf dist/img",
"css": "npm run clean:css && sass --no-source-map src/css:dist/css && postcss dist/css/*.css -r",
"js": "npm run clean:js && wp-scripts build src/js/background-parallax.js src/js/editor.js --output-path=dist/js --webpack-src-dir=src/js",
"packages:fontawesome": "cpy 'node_modules/@fortawesome/fontawesome-free/js/all.min.js*' 'node_modules/@fortawesome/fontawesome-free/*.txt' 'dist/packages/fontawesome-free'",
"packages:slick-carousel": "cpy 'node_modules/slick-carousel/slick/**' 'dist/packages/slick'",
"packages:spider": "cpy 'node_modules/@inc2734/spider/**' 'dist/packages/spider'",
"packages": "npm run clean:packages && npm-run-all packages:*",
"zip:pack": "rsync -a --exclude='/bin' --exclude='/vendor' --exclude='/node_modules' --exclude='.*' --exclude='*.ruleset.xml' --exclude='*.config.js' --exclude='*.xml.dist' --exclude='/sql' --exclude='/tests' --exclude='package*.json' --exclude='src/img' . snow-monkey-blocks && wp-env start && npm run composer install -- --no-dev -d snow-monkey-blocks",
"zip:archive": "zip -9 -qmr snow-monkey-blocks.zip snow-monkey-blocks",
"zip": "npm run clean:zip && npm run zip:pack && npm run zip:archive",
"make-pot": "npm run wp i18n -- make-pot . ./languages/snow-monkey-blocks.pot --exclude=src",
"make-json": "rimraf languages/*.json && npm run wp i18n -- make-json ./languages/snow-monkey-blocks-ja.po --no-purge",
"make-php": "npm run cli php -- wp-content/plugins/snow-monkey-blocks/bin/l10n.php",
"img": "npm run clean:img && cpy 'src/img/**' 'dist/img'"
}
}