forked from woocommerce/storefront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
108 lines (108 loc) · 4.77 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
{
"name": "storefront",
"title": "Storefront",
"version": "4.6.0",
"homepage": "https://woocommerce.com/products/storefront/",
"repository": {
"type": "git",
"url": "https://github.com/woothemes/storefront.git"
},
"assets": {
"js": {
"min": "assets/js/**/**/*.min.js assets/js/**/*.min.js assets/js/*.min.js",
"src": "assets/js/*.js assets/js/**/*.js assets/js/**/**/*.js"
},
"css": {
"min": "assets/css/**/*.css assets/css/**/**/*.css *.css",
"src": "assets/css/**/*.scss assets/css/**/**/*.scss *.scss"
}
},
"rtlcssConfig": {
"options": {
"autoRename": false,
"autoRenameStrict": false,
"blacklist": {},
"clean": true,
"greedy": false,
"processUrls": false,
"stringMap": []
},
"plugins": [],
"map": false
},
"scripts": {
"build:dev": "npm run build:js && npm run build:css",
"build": "npm run build:js && npm run build:css && npm run makepot",
"postbuild": "npm run validate-build && npm run -s archive",
"archive": "rm -rf $npm_package_name && composer archive --file=$npm_package_name --format=zip",
"postarchive": "rm -rf $npm_package_name && unzip $npm_package_name.zip -d $npm_package_name && rm $npm_package_name.zip && zip -r $npm_package_name.zip $npm_package_name && rm -rf $npm_package_name",
"prebuild:js": "rm -f $npm_package_assets_js_min",
"build:js": "echo \"$(tput setaf \"3\")Building JS Files$(tput sgr0)\"; for f in $npm_package_assets_js_src; do file=${f%.js}; echo \"$(tput setaf \"3\")Building $f$(tput sgr0)\"; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",
"prebuild:css": "rm -f $npm_package_assets_css_min",
"build:css": "echo \"$(tput setaf \"3\")Building CSS Files$(tput sgr0)\"; sass -I node_modules/bourbon/core -I node_modules/susy/sass assets/css:assets/css --style compressed --no-source-map && sass -I node_modules/bourbon/core -I node_modules/susy/sass style.scss:style.css --style compressed --no-source-map",
"postbuild:css": "npm run autoprefixer && npm run rtlcss",
"autoprefixer": "echo \"$(tput setaf \"3\")Running Autoprefixer$(tput sgr0)\"; for f in $npm_package_assets_css_min; do file=${f%.css}; postcss $f --use autoprefixer -r --verbose --no-map; done",
"rtlcss": "echo \"$(tput setaf \"3\")Building RTL CSS$(tput sgr0)\"; for f in $npm_package_assets_css_min; do file=${f%.css}; rtlcss $f $file-rtl.css; done",
"makepot": "echo \"$(tput setaf \"3\")Updating POT file$(tput sgr0)\"; wpi18n addtextdomain storefront; wpi18n makepot --domain-path languages --pot-file storefront.pot --type theme --exclude node_modules",
"watchsass": "sass -I node_modules/bourbon/core -I node_modules/susy/sass assets/css:assets/css --style compressed --watch --no-source-map",
"watchjs": "onchange \"assets/js/**/*.js\" -d 1000 -k -e \"assets/js/**/*.min.js\" -- npm run build:js",
"start": "concurrently --kill-others \"npm run watchjs\" \"npm run watchsass\"",
"labels:dry": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels --dry-run woocommerce/storefront",
"labels:sync": "github-label-sync --labels ./.github/label-sync-config.json --allow-added-labels woocommerce/storefront",
"lint": "npm run lint:php && npm run lint:css && npm run lint:js",
"lint:ci": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint 'assets/**/*.scss'",
"lint:css-fix": "stylelint 'assets/**/*.scss' --fix",
"lint:js": "wp-scripts lint-js assets/js --ext=js,ts,tsx",
"lint:js:report": "npm run lint:js -- --output-file eslint_report.json --ext=js,ts,tsx --format json",
"lint:js-fix": "eslint assets/js --ext=js,jsx,ts,tsx --fix",
"lint:php": "composer run-script phpcs ./inc",
"wp-env": "wp-env",
"test:e2e": "npm run wp-env run tests-cli 'wp theme activate storefront' && cross-env wp-scripts test-e2e",
"validate-build": "./validate-build.sh"
},
"jest": {
"preset": "jest-puppeteer",
"setupFilesAfterEnv": [
"expect-puppeteer"
],
"globals": {
"STORE_URL": "http://localhost:8802"
}
},
"config": {
"wp_org_slug": "storefront",
"translate": true
},
"license": "GPL-3.0+",
"devDependencies": {
"@woocommerce/eslint-plugin": "2.2.0",
"@wordpress/browserslist-config": "4.1.3",
"@wordpress/env": "5.14.0",
"@wordpress/eslint-plugin": "14.6.0",
"@wordpress/prettier-config": "2.16.0",
"@wordpress/scripts": "22.3.0",
"autoprefixer": "10.4.13",
"bourbon": "7.2.0",
"browserslist": "4.21.4",
"concurrently": "7.6.0",
"cross-env": "^7.0.3",
"eslint-plugin-import": "2.27.5",
"github-label-sync": "2.2.0",
"jest-puppeteer": "6.1.1",
"lodash": "4.17.21",
"node-wp-i18n": "1.2.7",
"onchange": "7.1.0",
"postcss-cli": "9.1.0",
"prettier": "npm:[email protected]",
"puppeteer": "14.4.1",
"rtlcss": "4.0.0",
"susy": "2.2.14",
"typescript": "5.0.4",
"uglify-js": "3.17.4"
},
"engines": {
"node": "14.21.1",
"npm": "9.1.3"
}
}