PatrickJS / NG6-starter

:ng: An AngularJS Starter repo for AngularJS + ES6 + Webpack
https://angularclass.github.io/NG6-starter
Apache License 2.0
1.91k stars 1.35k forks source link

Typescript support #13

Open osdevisnot opened 9 years ago

osdevisnot commented 9 years ago

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

julius-retzer commented 8 years ago

+1

PatrickJS commented 8 years ago

we can make one for sure

ciutadellla commented 8 years ago

+1

shaggybb commented 8 years ago

+1

zakarya commented 8 years ago

:+1:

zoamel commented 8 years ago

+1

fesor commented 8 years ago

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.

colinshen commented 8 years ago

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

fesor commented 8 years ago

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

colinshen commented 8 years ago

@fesor cool~~thanks for your work

jefflequeux commented 8 years ago

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

fesor commented 8 years ago

@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.

tucq88 commented 7 years ago

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

rosostolato commented 6 years ago

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