Angular components for KanjiVG
ng add @madcat/kanjivg-ng
npm install @madcat/kanjivg @madcat/kanjivg-ng- in
angular.jsonadd KanjiVG assets:
{
"projects": {
"your-project": {
"architect": {
"build": {
"assets": [
{
"glob": "*.svg",
"input": "node_modules/@madcat/kanjivg/dist/min/main",
"output": "kanjivg"
}
]
},
"test": {
"assets": [
{
"glob": "*.svg",
"input": "node_modules/@madcat/kanjivg/dist/min/main",
"output": "kanjivg"
}
]
}
}
}
}
}
- KanjiVG is copyright Ulrich Apel and released under the Creative Commons Attribution-Share Aline 3.0 licence
@madcat/kanjivg-ngis copyright Michał Kurcius and released under the Creative Commons Attribution-Share Aline 3.0 licence
http://creativecommons.org/licenses/by-sa/3.0/
See the LICENSE file for more details.
To build run npm run build.
Under the hood this command will build angular components and schematics.
Additionally, it will also copy README.md and LICENCE to dist/kanjivg-ng dir.
Running ng build may be sufficient for development,
but will not create final deployable package (schematics, README.md and LICENCE will not be included).
To publish run npm run deploy.
Before publishing npm version major|minor|patch should be ran.
npm publish will throw an error: Use 'npm run deploy' to publish this package.
This is by design, because only generated dist/kanjivg-ng should be published and npm run deploy will do it!