Added Wireit: @woocommerce/admin-layout
This commit is contained in:
parent
b816fa7be8
commit
6a7e884baf
|
@ -28,17 +28,18 @@
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"turbo:build": "pnpm run build:js && pnpm run build:css",
|
"build": "pnpm --filter=\"$npm_package_name...\" run build:project",
|
||||||
"prepare": "composer install",
|
"build:project": "pnpm run /^build:project:.*$/",
|
||||||
"changelog": "composer exec -- changelogger",
|
"build:project:esm": "wireit",
|
||||||
"clean": "pnpm exec rimraf tsconfig.tsbuildinfo build build-*",
|
"build:project:cjs": "wireit",
|
||||||
"build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name",
|
"build:project:css": "wireit",
|
||||||
"lint": "eslint src",
|
"changelog": "composer install && composer exec -- changelogger",
|
||||||
"build:js": "tsc --project tsconfig.json && tsc --project tsconfig-cjs.json",
|
"lint": "pnpm run '/^lint:lang:.*$/'",
|
||||||
"build:css": "webpack",
|
"lint:fix": "pnpm run '/^lint:fix:lang:.*$/'",
|
||||||
"start": "concurrently \"tsc --project tsconfig.json --watch\" \"tsc --project tsconfig-cjs.json --watch\" \"webpack --watch\"",
|
"lint:lang:js": "eslint --output-file eslint_report.json --format json src",
|
||||||
"prepack": "pnpm run clean && pnpm run build",
|
"lint:fix:lang:js": "eslint src --fix",
|
||||||
"lint:fix": "eslint src --fix"
|
"prepack": "pnpm run build",
|
||||||
|
"watch:build": "pnpm run build:project --watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^17.0.71",
|
"@types/react": "^17.0.71",
|
||||||
|
@ -71,5 +72,53 @@
|
||||||
"@woocommerce/components": "workspace:*",
|
"@woocommerce/components": "workspace:*",
|
||||||
"@wordpress/components": "wp-6.0",
|
"@wordpress/components": "wp-6.0",
|
||||||
"@wordpress/element": "wp-6.0"
|
"@wordpress/element": "wp-6.0"
|
||||||
|
},
|
||||||
|
"wireit": {
|
||||||
|
"build:project:esm": {
|
||||||
|
"command": "tsc --project tsconfig.json",
|
||||||
|
"files": [
|
||||||
|
"tsconfig.json",
|
||||||
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
|
"typings/**/*.ts"
|
||||||
|
],
|
||||||
|
"dependencies": [
|
||||||
|
"dependencyOutputs"
|
||||||
|
],
|
||||||
|
"output": [
|
||||||
|
"build-types",
|
||||||
|
"build-module"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"build:project:cjs": {
|
||||||
|
"command": "tsc --project tsconfig-cjs.json",
|
||||||
|
"files": [
|
||||||
|
"tsconfig.json",
|
||||||
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
|
"typings/**/*.ts"
|
||||||
|
],
|
||||||
|
"dependencies": [
|
||||||
|
"dependencyOutputs"
|
||||||
|
],
|
||||||
|
"output": [
|
||||||
|
"build"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"build:project:css": {
|
||||||
|
"command": "webpack",
|
||||||
|
"files": [
|
||||||
|
"webpack.config.js",
|
||||||
|
"src/**/*.scss"
|
||||||
|
],
|
||||||
|
"dependencies": [
|
||||||
|
"dependencyOutputs"
|
||||||
|
],
|
||||||
|
"output": [
|
||||||
|
"build-style"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dependencyOutputs": {
|
||||||
|
"allowUsuallyExcludedPaths": true,
|
||||||
|
"files": [ "required" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue