Open at15 opened 7 years ago
Tried https://github.com/filipesilva/angular-quickstart-lib
Pros
Cons
It might be easier to just ship ts for now (improved copy and paste) ... since myself is the only user for most of libraries ...
in ng2-semantic-ui's demo, path
is set https://github.com/edcarroll/ng2-semantic-ui/blob/master/demo/src/tsconfig.json to point to the library
{
"compilerOptions": {
"baseUrl": "",
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../../dist/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../../node_modules/@types"
],
"paths": {
"ng2-semantic-ui": ["../../src/public"],
"ng2-semantic-ui/locales": ["../../src/behaviors/localization/locales"]
},
"types": [
"prismjs"
]
},
"include": [
"**/*.ts"
]
}
google
how to write angular 4 library
https://www.tsmean.com/articles/how-to-write-a-typescript-library/angular/generate a new app and created a module inside ithttps://github.com/angular/angular-cli/issues/6510
https://github.com/angular/angular-cli/issues/3580very short discussionhttps://github.com/angular/angular-cli/issues/1692
https://github.com/angular/angular/pull/16486