forked from tlamedia/gtm-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
59 lines (59 loc) · 2.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
{
"name": "gtm-kit",
"version": "2.2.1",
"description": "Development files for the GTM Kit",
"author": "GTM Kit",
"keywords": [
"woocommerce",
"wordpress",
"google tag manager"
],
"homepage": "https://github.com/tlamedia/gtm-kit",
"plugin": {
"textdomain": "gtm-kit"
},
"dependencies": {
"@wordpress/api-fetch": "^7.0.1",
"@wordpress/components": "^28.0.3",
"@wordpress/hooks": "^4.0.1",
"@wordpress/i18n": "^5.0.1",
"@wordpress/url": "^4.0.1"
},
"devDependencies": {
"@wordpress/scripts": "^28.0.2",
"autoprefixer": "^10.4.20",
"cssnano": "^6.1.2",
"del-cli": "^5.1.0",
"mkdirp": "^3.0.1",
"ncp": "^2.0.0",
"postcss-cli": "^11.0.0",
"sass": "^1.77.8",
"tailwindcss": "^3.4.10",
"uglify-js": "^3.19.3"
},
"scripts": {
"build": "wp-scripts build src/js/frontend/woocommerce-blocks.js src/js/frontend/event-inspector.js --output-path=assets/frontend",
"build:assets": "npm run clean:assets && npm run build:js && npm run copy:images",
"build:js": "npm run uglify:woocommerce && npm run uglify:woocommerce-checkout && npm run uglify:edd && npm run uglify:edd-checkout && npm run uglify:cf7",
"clean:assets": "del assets",
"i18n:pot": "wp i18n make-pot ./ languages/gtm-kit.pot",
"change-version": "./bin/change-version.sh $npm_package_version",
"zip-package": "./bin/zip-package.sh",
"uglify:woocommerce": "mkdirp assets/integration && uglifyjs src/js/woocommerce.js --compress --mangle --output assets/integration/woocommerce.js",
"uglify:woocommerce-checkout": "mkdirp assets/integration && uglifyjs src/js/woocommerce-checkout.js --compress --mangle --output assets/integration/woocommerce-checkout.js",
"uglify:edd": "mkdirp assets/integration && uglifyjs src/js/edd.js --compress --mangle --output assets/integration/edd.js",
"uglify:edd-checkout": "mkdirp assets/integration && uglifyjs src/js/edd-checkout.js --compress --mangle --output assets/integration/edd-checkout.js",
"uglify:cf7": "mkdirp assets/integration && uglifyjs src/js/contact-form-7.js --compress --mangle --output assets/integration/contact-form-7.js",
"copy:images": "node ./bin/copy-images.js",
"format": "wp-scripts format ./src/js",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js ./src/js",
"lint:js-fix": "wp-scripts lint-js ./src/js --fix",
"watch": "wp-scripts start src/js/frontend/woocommerce-blocks.js src/js/frontend/event-inspector.js --output-path=assets/frontend",
"watch:tailwind": "npx tailwindcss -i ./src/scss/tailwind.scss -o ./src/scss/_tailwind-compiled.scss --watch",
"audit:prod": "npm audit --omit=dev",
"lint:pkg-json": "wp-scripts lint-pkg-json",
"packages-update": "wp-scripts packages-update",
"check-engines": "wp-scripts check-engines"
}
}