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:
parent
b7ebc5d9bb
commit
51d75a0a50
3
.gitignore
vendored
3
.gitignore
vendored
@ -20,7 +20,8 @@ generated/
|
|||||||
/.cache/
|
/.cache/
|
||||||
|
|
||||||
# IDE Artifacts
|
# IDE Artifacts
|
||||||
.vscode
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
.devcontainer
|
.devcontainer
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
|
@ -21,7 +21,8 @@ generated/
|
|||||||
/.cache/
|
/.cache/
|
||||||
|
|
||||||
# IDE Artifacts
|
# IDE Artifacts
|
||||||
.vscode
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
.devcontainer
|
.devcontainer
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
|
3
.vscode/extensions.json
vendored
Normal file
3
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"recommendations": ["google.wireit"]
|
||||||
|
}
|
@ -3,13 +3,53 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Puppeteer Angular schematics",
|
"description": "Puppeteer Angular schematics",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"copy": "node copySchemaFiles.js",
|
"dev": "npm run build --watch",
|
||||||
"clean": "tsc -b --clean && rimraf lib",
|
"dev:test": "npm run test --watch",
|
||||||
"dev": "run-s clean copy && tsc -p tsconfig.json --watch",
|
"copy": "wireit",
|
||||||
"build": "run-s build:*",
|
"build": "wireit",
|
||||||
"build:schematics": "npm run copy && tsc -p tsconfig.json",
|
"clean": "tsc --build --clean && rimraf lib",
|
||||||
"build:test": "tsc -p tsconfig.spec.json",
|
"clean:test": "rimraf test/build",
|
||||||
"test": "run-s clean build && mocha"
|
"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": [
|
"keywords": [
|
||||||
"angular",
|
"angular",
|
||||||
|
@ -14,5 +14,6 @@
|
|||||||
"target": "ES6"
|
"target": "ES6"
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"],
|
"include": ["src/**/*"],
|
||||||
"exclude": ["src/**/files/**/*"]
|
"exclude": ["src/**/files/**/*"],
|
||||||
|
"references": [{"path": "./tsconfig.spec.json"}]
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,6 @@
|
|||||||
"outDir": "test/build/",
|
"outDir": "test/build/",
|
||||||
"types": ["node", "mocha"]
|
"types": ["node", "mocha"]
|
||||||
},
|
},
|
||||||
"include": ["test/**/*"],
|
"include": ["test/src/**/*"],
|
||||||
"exclude": ["test/build/**/*"]
|
"exclude": ["test/build/**/*"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user