angular - Handle html resources while building an Angular4 library -


i have following src project structure in angular4:

src/    my-component.ts    my-component.html 

when building library run tsc -p . , dist created compiled js. library works html not copied in dist folder. doing wrong?

(the same happens when run npm publish. library compiled, pushed without html file.)

i add here scripts of package.json

  "scripts": {     "build": "tsc -p .",     "lint": "tslint --type-check --project tsconfig.json src/**/*.ts",     "test": "tsc && karma start",     "prepublish": "tsc",     "tsc": "tsc"   } 

edit:

i know tsc cannot move resource. compiles typescript. so, necessary use gulp or this?


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -