mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore(ng-schematics): Use WireIt for builds and tests (#9356)
**What kind of change does this PR introduce?**
It moves all the `ng-schematics` commands to WireIt
**Did you add tests for your changes?**
N/A
**Summary**
We want all our packages to use the same processes to build and test.
This also allows us to have better build times and also watch mode 👀.
**Does this PR introduce a breaking change?**
No
**Other information**
This commit is contained in:
@@ -3,13 +3,53 @@
|
||||
"version": "0.1.0",
|
||||
"description": "Puppeteer Angular schematics",
|
||||
"scripts": {
|
||||
"copy": "node copySchemaFiles.js",
|
||||
"clean": "tsc -b --clean && rimraf lib",
|
||||
"dev": "run-s clean copy && tsc -p tsconfig.json --watch",
|
||||
"build": "run-s build:*",
|
||||
"build:schematics": "npm run copy && tsc -p tsconfig.json",
|
||||
"build:test": "tsc -p tsconfig.spec.json",
|
||||
"test": "run-s clean build && mocha"
|
||||
"dev": "npm run build --watch",
|
||||
"dev:test": "npm run test --watch",
|
||||
"copy": "wireit",
|
||||
"build": "wireit",
|
||||
"clean": "tsc --build --clean && rimraf lib",
|
||||
"clean:test": "rimraf test/build",
|
||||
"test": "wireit"
|
||||
},
|
||||
"wireit": {
|
||||
"copy": {
|
||||
"clean": "if-file-deleted",
|
||||
"command": "node copySchemaFiles.js",
|
||||
"files": [
|
||||
"src/**/files/**",
|
||||
"src/**/*.json"
|
||||
],
|
||||
"output": [
|
||||
"lib/**/files/**",
|
||||
"lib/**/*.json"
|
||||
],
|
||||
"dependencies": [
|
||||
"clean"
|
||||
]
|
||||
},
|
||||
"build": {
|
||||
"command": "tsc -b",
|
||||
"files": [
|
||||
"src/**/*.ts",
|
||||
"!src/**/files",
|
||||
"!src/**/*.json"
|
||||
],
|
||||
"output": [
|
||||
"lib/**",
|
||||
"!lib/**/files",
|
||||
"!lib/**/*.json"
|
||||
],
|
||||
"dependencies": [
|
||||
"copy"
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"command": "mocha",
|
||||
"dependencies": [
|
||||
"clean:test",
|
||||
"build"
|
||||
]
|
||||
}
|
||||
},
|
||||
"keywords": [
|
||||
"angular",
|
||||
|
||||
Reference in New Issue
Block a user