Skip to content

Commit 7a414d4

Browse files
committed
feat(app): ng-add schematics
fix #1155
1 parent 3079865 commit 7a414d4

File tree

5 files changed

+235
-30
lines changed

5 files changed

+235
-30
lines changed

package-lock.json

Lines changed: 146 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"postinstall": "opencollective-postinstall || exit 0",
1212
"*********BUILD********": "*******************",
1313
"prebuild": "rimraf dist/*",
14-
"build": "rollup -c rollup/rollup.config.js",
14+
"build": "rollup -c rollup/rollup.config.js && npm run build-schematics",
15+
"build-schematics": "tsc --project schematics/tsconfig.json && cp schematics/collection.json dist",
1516
"*********UTILS********": "*******************",
1617
"changelog": " auto-changelog -o CH.md --template tools/changelog-template.hbs -u",
1718
"angularexpo": "npm run pretest && node tools/tests-angularexpo.js",
@@ -83,6 +84,7 @@
8384
},
8485
"homepage": "https://github.com/compodoc/compodoc#readme",
8586
"dependencies": {
87+
"@angular-devkit/schematics": "^13.0.3",
8688
"@babel/core": "^7.16.0",
8789
"@babel/preset-env": "^7.16.4",
8890
"@compodoc/live-server": "^1.2.2",
@@ -172,5 +174,6 @@
172174
"hooks": {
173175
"pre-commit": "pretty-quick --staged --pattern \"**/*.ts\""
174176
}
175-
}
177+
},
178+
"schematics": "./dist/collection.json"
176179
}

schematics/collection.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
3+
"schematics": {
4+
"ng-add": {
5+
"description": "Add Compodoc schematic",
6+
"factory": "./schematics/ng-add/index#ngAdd"
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy