Skip to content

Commit

Permalink
feat(app): ng-add schematics
Browse files Browse the repository at this point in the history
fix #1155
  • Loading branch information
vogloblinsky committed Nov 27, 2021
1 parent 3079865 commit 7a414d4
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 30 deletions.
174 changes: 146 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"postinstall": "opencollective-postinstall || exit 0",
"*********BUILD********": "*******************",
"prebuild": "rimraf dist/*",
"build": "rollup -c rollup/rollup.config.js",
"build": "rollup -c rollup/rollup.config.js && npm run build-schematics",
"build-schematics": "tsc --project schematics/tsconfig.json && cp schematics/collection.json dist",
"*********UTILS********": "*******************",
"changelog": " auto-changelog -o CH.md --template tools/changelog-template.hbs -u",
"angularexpo": "npm run pretest && node tools/tests-angularexpo.js",
Expand Down Expand Up @@ -83,6 +84,7 @@
},
"homepage": "https://github.com/compodoc/compodoc#readme",
"dependencies": {
"@angular-devkit/schematics": "^13.0.3",
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.4",
"@compodoc/live-server": "^1.2.2",
Expand Down Expand Up @@ -172,5 +174,6 @@
"hooks": {
"pre-commit": "pretty-quick --staged --pattern \"**/*.ts\""
}
}
},
"schematics": "./dist/collection.json"
}
9 changes: 9 additions & 0 deletions schematics/collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
"schematics": {
"ng-add": {
"description": "Add Compodoc schematic",
"factory": "./schematics/ng-add/index#ngAdd"
}
}
}
Loading

0 comments on commit 7a414d4

Please sign in to comment.