Comments (14)
Typescript is something I'd like to include in this generator (possibly Dart). Unfortunately, I don't have any experience with Typescript, so this may be a while.
from generator-ng-poly.
Hi,
I've been looking into TypeScript the last few days and have a few questions regarding your opinion, if you have time.
https://github.com/Keats/ng-boilerplate seems like a nice starting point. I haven't found a use for TypeScript's modules, though. Do you typically create modules when working with TypeScript? Importing the modules in a main app module doesn't sound too flexible, which are the only examples of modules used in Angular I've found.
I'm completely on board for adding TypeScript's typing, interfaces, and classes; I just want to make sure I'm not overlooking TypeScript's modules. I will probably have time to get these added soon.
from generator-ng-poly.
Great! I am also not sure about Typescript module because it seems to share the same functionalities as angular module.
Also, I will be able to help with adding Typescript because I need it soon in a project.
from generator-ng-poly.
I will work on this in a couple of days. Please let me know if you already started on this.
from generator-ng-poly.
Sounds good. I haven't started on it.
from generator-ng-poly.
Feel free to add more tasks or take on any of them. By the look of it, I feel like utils/route
is the more challenging one.
from generator-ng-poly.
As for Typescript and AngularJs module, I feel like the current best solution is to have generate a new Typescript module along side with AngularJs module.
from generator-ng-poly.
I looked into this some more. TypeScript modules will need to be used, especially when passing functions is enabled. TypeScript modules allow us to have multiple functions with the same name (config, etc.) in the application, otherwise throws a compile error. Also, classes will have to be defined before we pass it to angular.module().controller(), etc. since TypeScript compiles it to JavaScript variable instead of function, so this causes hoisting issues. I'll try to get these changes added later this week/weekend, which should just about get this done. Then just the Karma issue.
from generator-ng-poly.
Working on Karma one now
from generator-ng-poly.
I think I have the available typings pulled in. It also runs tsd reinstall && tsd rebundle
at setup to create the typings/tsd.d.ts file. Currently, I'm using tsd@next. I've updated the app source templates and those should be working. I think there are a few typings missing. I haven't looked at the test templates, yet, but I'll have time the next couple of days to cover this and the temp directory.
from generator-ng-poly.
Great! Thanks
from generator-ng-poly.
FYI, I've been using TypeScript in ng-poly in production for a while without major problem. Obviously, the module system can be improved but it is not a major problem for us.
from generator-ng-poly.
That's great to hear. Do you guys have any suggestions for improving the modules?
The Gulpfiles have been updated to build the app and tests in a tmp directory for unit tests. The templates are updated. Unfortunately, there is an issue with angular-protractor and jQuery conflicting (DefinitelyTyped/DefinitelyTyped#2734) for e2e tests.
from generator-ng-poly.
Awesome! Thanks a lot! I will update our build to the latest version.
from generator-ng-poly.
Related Issues (20)
- Angular Bootstrap needs update to work with Angular 1.4.*
- Optional documentation generator with Dgeni HOT 1
- Process SCSS main files from bower packages HOT 1
- Help with understanding route file style vs John Papa style HOT 2
- 'unitTest' errored in a newly created ng-poly project HOT 3
- Lint for TypeScript HOT 1
- Implement directives as classes when using TypeScript HOT 3
- Add Support for $locationProvider.html5Mode(true); HOT 2
- Initial setup succeeds but can not generate anything on OS X 10.11.4 HOT 1
- TypeError: Path must be a string. Received null HOT 4
- [request] Add support for inlining critical path assets
- Getting TypeError: _.invokeMap is not a function when trying to generate services, modules... HOT 5
- Deploy Angular app in Windows Server? HOT 3
- Edit or Disable Indent Checks on Linters HOT 2
- import and export es6 HOT 2
- Create multiple index file
- speeding up dev env
- Gulp production build terminated
- 'unitTest' terminates with error 'Cannot start PhantomJS'
- [Help Needed] Trying to use Bootstrap v3.3.7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-ng-poly.