NG6-starter icon indicating copy to clipboard operation
NG6-starter copied to clipboard

Typescript support

Open osdevisnot opened this issue 10 years ago • 14 comments

This repo serves as a good starting point setting up a project. Any chance we could see typescript as webpack loader instead of Babel?

osdevisnot avatar Jun 27 '15 00:06 osdevisnot

+1

julius-retzer avatar Dec 05 '15 01:12 julius-retzer

we can make one for sure

PatrickJS avatar Dec 09 '15 19:12 PatrickJS

+1

ciutadellla avatar Apr 19 '16 10:04 ciutadellla

+1

shaggybb avatar Apr 19 '16 17:04 shaggybb

:+1:

zakarya avatar Apr 23 '16 13:04 zakarya

+1

zoamel avatar Apr 24 '16 20:04 zoamel

I'm plan to make yoman generator (only for webpack just for now) for this starter, since maintaining multiple branches is not so handy. I will add typescript as option.

fesor avatar Apr 24 '16 20:04 fesor

@fesor when do you think your work will have done?

colinshen avatar Apr 27 '16 01:04 colinshen

@colinshen you mean production ready? I'll try to prepare some raw prototype on weekend, and then will see.

fesor avatar Apr 27 '16 13:04 fesor

@fesor cool~~thanks for your work

colinshen avatar Apr 27 '16 16:04 colinshen

Any news about typescript? I need to use typescript instead of ES6 and I can't make it work. Thanks

jefflequeux avatar May 25 '16 04:05 jefflequeux

@darkange69 you can just replace babel loader to ts-loader. Since typescript is compatible with es2015/es2016 you don't need to change anything. Only remove babel polyfil from gulpfile.babel.js.

fesor avatar May 25 '16 12:05 fesor

Maybe a fork with custom config to support typescript is needed ?

tucq88 avatar Oct 29 '16 16:10 tucq88

Has anyone got it working? I tried a lot and still having some errors. Now it says that can't resolve './app.component'

capture

this is my tsconfig.json: { "compilerOptions": { "target": "es5", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "noImplicitAny": false, "typeRoots": ["node_modules/@types/"] }, "compileOnSave": false, "filesGlob": [ "src/**/*.ts", "src/**/*.tsx", "!node_modules/**" ] }

rosostolato avatar Apr 19 '18 16:04 rosostolato