at15 / ng-portable-admin-ui

Deprecated Angular 4 components for admin dashboard with multiple UI framework
MIT License
0 stars 0 forks source link

Library bootstrap #1

Open at15 opened 7 years ago

at15 commented 7 years ago

google how to write angular 4 library

at15 commented 7 years ago

Tried https://github.com/filipesilva/angular-quickstart-lib

Pros

Cons

at15 commented 7 years ago

It might be easier to just ship ts for now (improved copy and paste) ... since myself is the only user for most of libraries ...

at15 commented 7 years ago

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"
  ]
}