Add Wireit: `@woocommerce/shortcode-assets`
This commit is contained in:
parent
e729417335
commit
f9e6f3a3a4
|
@ -21,8 +21,6 @@
|
||||||
"lint:fix:lang:js": "pnpm run lint:js --fix --ext=js,ts,tsx",
|
"lint:fix:lang:js": "pnpm run lint:js --fix --ext=js,ts,tsx",
|
||||||
"lint:lang:css": "stylelint '**/*.scss'",
|
"lint:lang:css": "stylelint '**/*.scss'",
|
||||||
"lint:lang:js": "eslint ./client --ext=js,ts,tsx",
|
"lint:lang:js": "eslint ./client --ext=js,ts,tsx",
|
||||||
"prepack": "pnpm run build",
|
|
||||||
"test": "pnpm --if-present run '/^test:lang:.*$/'",
|
|
||||||
"test:js": "wireit",
|
"test:js": "wireit",
|
||||||
"watch:build": "pnpm run build:project --watch",
|
"watch:build": "pnpm run build:project --watch",
|
||||||
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack",
|
"analyze": "cross-env NODE_ENV=production ANALYZE=true webpack",
|
||||||
|
|
|
@ -6,9 +6,12 @@
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"main": "Gruntfile.js",
|
"main": "Gruntfile.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"turbo:build": "grunt assets",
|
"build": "pnpm --if-present --filter=\"$npm_package_name...\" run build:project",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build:project": "pnpm --if-present run /^build:project:.*$/",
|
||||||
"start": "nodemon --watch js --watch css -e js,scss --exec pnpm build"
|
"build:project:assets": "wireit",
|
||||||
|
"lint": "pnpm --if-present run '/^lint:lang:.*$/'",
|
||||||
|
"lint:fix": "pnpm --if-present run '/^lint:fix:lang:.*$/'",
|
||||||
|
"watch:build": "pnpm run build:project --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^16.18.68",
|
"@types/node": "^16.18.68",
|
||||||
|
@ -38,5 +41,28 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"sourcebuster": "github:woocommerce/sourcebuster-js#v1.1.2"
|
"sourcebuster": "github:woocommerce/sourcebuster-js#v1.1.2"
|
||||||
|
},
|
||||||
|
"wireit": {
|
||||||
|
"build:project:assets": {
|
||||||
|
"command": "grunt assets",
|
||||||
|
"files": [
|
||||||
|
"Gruntfile.js",
|
||||||
|
"js/**/*.js",
|
||||||
|
"css/**/*.scss"
|
||||||
|
],
|
||||||
|
"output": [
|
||||||
|
"../../assets/css",
|
||||||
|
"../../assets/js"
|
||||||
|
],
|
||||||
|
"dependencies": [
|
||||||
|
"dependencyOutputs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dependencyOutputs": {
|
||||||
|
"allowUsuallyExcludedPaths": true,
|
||||||
|
"files": [
|
||||||
|
"required"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue