-
Notifications
You must be signed in to change notification settings - Fork 31
/
package.json
118 lines (118 loc) · 8.35 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"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/free-brands-svg-icons": "^6.7.1",
"@fortawesome/free-regular-svg-icons": "^6.7.1",
"@fortawesome/free-solid-svg-icons": "^6.7.1",
"@inc2734/add-custom-event": "^0.5.0",
"@inc2734/dispatch-custom-resize-event": "^0.4.0",
"@inc2734/for-each-html-nodes": "^0.4.0",
"@inc2734/smooth-scroll": "^1.0.10",
"@inc2734/spider": "0.0.51",
"@wordpress/browserslist-config": "^6.13.0",
"@wordpress/env": "^10.13.0",
"@wordpress/scripts": "^30.6.0",
"autoprefixer": "^10.4.20",
"browser-sync": "^3.0.3",
"browserslist": "^4.24.2",
"cpy-cli": "^5.0.0",
"cssnano": "^7.0.6",
"normalize.css": "^8.0.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.49",
"postcss-cli": "^11.0.0",
"postcss-import": "^16.1.0",
"rimraf": "^6.0.1",
"sass": "^1.82.0"
},
"scripts": {
"export:wp-content:plugins": "npm run cli cp -- -r ../../plugins .export/wp-content",
"export:wp-content:uploads": "npm run cli cp -- -r ../../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:plugins": "npm run cli cp -- -r .export/wp-content/plugins ../../",
"import:wp-content:uploads": "npm run cli cp -- -r .export/wp-content/uploads ../../",
"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 --env-cwd=wp-content/themes/snow-monkey cli",
"wp": "wp-env run cli --env-cwd=\"wp-content/themes/snow-monkey\" wp",
"composer": "wp-env run --env-cwd=\"wp-content/themes/snow-monkey\" cli composer",
"pretest": "wp-env start && npm run composer install -- --no-interaction",
"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/themes/snow-monkey\" tests-wordpress vendor/bin/phpunit -c .phpunit.xml.dist --verbose",
"test:unit": "run-s test:unit:*",
"test": "run-s test:*",
"browsersync": "browser-sync start -p 'localhost:8888' -f '**/*' 'assets/**'",
"cleanup:css": "rimraf assets/css && mkdir -p assets/css",
"cleanup:js": "rimraf assets/js && mkdir -p assets/js",
"cleanup:packages": "rimraf assets/packages && mkdir -p assets/packages",
"cleanup:img": "rimraf assets/img && mkdir -p assets/img",
"cleanup:fonts": "rimraf assets/fonts && mkdir -p assets/fonts",
"cleanup:translation": "rimraf .translation && mkdir -p .translation",
"cleanup:load-files-target": "rimraf assets/load-files-target && mkdir -p assets/load-files-target",
"cleanup:zip-directory": "rimraf snow-monkey",
"cleanup:zip": "rimraf snow-monkey.zip",
"cleanup:trial-zip-directory": "rimraf snow-monkey",
"cleanup:trial-zip": "rimraf trial && mkdir trial",
"css:app": "sass --no-source-map src/css/app:assets/css/app && postcss assets/css/app/*.css -r",
"css:block-editor": "sass --no-source-map src/css/block-editor:assets/css/block-editor && postcss assets/css/block-editor/*.css -r",
"css:classic-editor": "sass --no-source-map src/css/classic-editor:assets/css/classic-editor && postcss assets/css/classic-editor/*.css -r",
"css:block-library": "sass --no-source-map src/css/block-library:assets/css/block-library && postcss assets/css/block-library/*.css -r",
"css:admin": "sass --no-source-map src/css/admin:assets/css/admin && postcss assets/css/admin/*.css -r",
"css:wpac": "sass --no-source-map src/css/wpac:assets/css/wpac && postcss assets/css/wpac/*.css -r",
"css:custom-widgets": "sass --no-source-map src/css/custom-widgets:assets/css/custom-widgets && postcss assets/css/custom-widgets/*.css -r",
"css:wp-oembed-blog-card-variations": "sass --no-source-map src/css/wp-oembed-blog-card-variations:assets/css/wp-oembed-blog-card-variations && postcss assets/css/wp-oembed-blog-card-variations/*.css -r",
"css:dependency:amp": "sass --no-source-map src/css/dependency/amp:assets/css/dependency/amp && postcss assets/css/dependency/amp/*.css -r",
"css:dependency:contact-form-7": "sass --no-source-map src/css/dependency/contact-form-7:assets/css/dependency/contact-form-7 && postcss assets/css/dependency/contact-form-7/*.css -r",
"css:dependency:elementor": "sass --no-source-map src/css/dependency/elementor:assets/css/dependency/elementor && postcss assets/css/dependency/elementor/*.css -r",
"css:dependency:woocommerce": "sass --no-source-map src/css/dependency/woocommerce:assets/css/dependency/woocommerce && postcss assets/css/dependency/woocommerce/*.css -r",
"css:dependency:snow-monkey-blocks": "sass --no-source-map src/css/dependency/snow-monkey-blocks:assets/css/dependency/snow-monkey-blocks && postcss assets/css/dependency/snow-monkey-blocks/*.css -r",
"css:dependency:snow-monkey-forms": "sass --no-source-map src/css/dependency/snow-monkey-forms:assets/css/dependency/snow-monkey-forms && postcss assets/css/dependency/snow-monkey-forms/*.css -r",
"css:dependency": "run-p css:dependency:*",
"css:php": "cpy 'src/css/**/*.php' 'assets/css'",
"css": "npm run cleanup:css && run-p css:*",
"js:format": "wp-scripts format src/js",
"js:app": "wp-scripts build src/js/app src/js/editor src/js/fix-adminbar src/js/drop-nav src/js/footer-sticky-nav src/js/global-nav src/js/sidebar-sticky-widget-area src/js/widgets src/js/page-top src/js/hash-nav src/js/smooth-scroll src/js/fontawesome src/js/customize-control src/js/customize-preview --output-path=assets/js",
"js:dependency:elementor": "wp-scripts build src/js/dependency/elementor/preview.js --output-path=assets/js/dependency/elementor",
"js:dependency:snow-monkey-blocks": "wp-scripts build src/js/dependency/snow-monkey-blocks/app --output-path=assets/js/dependency/snow-monkey-blocks",
"js:dependency": "run-p js:dependency:*",
"js": "npm run cleanup:js && run-p js:*",
"packages:fontawesome": "cpy 'node_modules/@fortawesome/fontawesome-free/js/all.min.js*' 'node_modules/@fortawesome/fontawesome-free/*.txt' 'assets/packages/fontawesome-free'",
"packages:spider": "cpy 'node_modules/@inc2734/spider/**' 'assets/packages/spider'",
"packages": "npm run cleanup:packages && run-p packages:*",
"img": "npm run cleanup:img && cpy 'src/img/**' 'assets/img'",
"fonts": "npm run cleanup:fonts && cpy 'src/fonts/**' 'assets/fonts'",
"pregenerate-load-files-target": "npm run cleanup:load-files-target && chmod 777 assets/load-files-target && wp-env start && npm run wp theme -- activate snow-monkey && npm run composer install -- --no-interaction",
"postgenerate-load-files-target": "chmod 755 assets/load-files-target",
"generate-load-files-target": "npm run cli php -- ./bin/generate-load-files-target.php",
"translation:name": "wp-env start && npm run cli php -- ./bin/template.php",
"translation": "npm run cleanup:translation && run-p translation:*",
"make-php": "npm run cli php -- ./bin/l10n.php",
"build": "npm run packages && run-p js css img fonts translation && npm run generate-load-files-target",
"zip:pack": "npm run cleanup:zip-directory && rsync -a --exclude='.*' --exclude='*.log' --exclude='*.config.js' --exclude='error_log' --exclude='/cache' --exclude='/bin' --exclude='/node_modules' --exclude='/vendor' --exclude='/tests' --exclude='/snow-monkey.zip' --exclude='/trial' --exclude='/src' ./ snow-monkey",
"zip:archive": "zip -9 -qmr snow-monkey.zip snow-monkey",
"zip": "npm run cleanup:zip && npm run zip:pack && wp-env start && npm run composer install -- --no-dev -d snow-monkey && npm run zip:archive",
"trial-zip:pack": "npm run zip:pack && rimraf snow-monkey/app/constructor/updater.php",
"trial-zip:archive": "zip -9 -qmr trial/snow-monkey.zip snow-monkey",
"trial-zip": "npm run cleanup:trial-zip && npm run trial-zip:pack && wp-env start && npm run composer install -- --no-dev -d snow-monkey && npm run composer remove -- --update-no-dev -d snow-monkey inc2734/wp-github-theme-updater && npm run trial-zip:archive"
},
"dependencies": {
"smoothscroll-polyfill": "^0.4.4"
}
}