satya164 / quik

:rocket: A quick way to prototype and build apps with React and Babel with zero-setup.
526 stars 30 forks source link

add angular2 support #8

Open venil7 opened 8 years ago

venil7 commented 8 years ago

automatic compilation of TypeScript files?

satya164 commented 8 years ago

@venil7 Doesn't Angular have it's own CLI?

venil7 commented 8 years ago

not AFAIK, it just seems like quik is very react centric, while it would be nice if it was library agnostic and be used with any es6 project. or maybe a plugin system, so that any transpiler, like TypeScript can be plugged in..

satya164 commented 8 years ago

@venil7 I surely want to add other things. Will need to make the React bit rock solid, and have a plugin system to extend the webpack config. Wanna help?

satya164 commented 8 years ago

BTW there are two ways to extend quik,

  1. Add custom loaders to the webpack config (there's no way to do this right now). This can be for simple things, like typescript support.
  2. Write middlewares to handle different file types. See the API docs. This can be for more sophisticated things, for example adding browserSync .
venil7 commented 8 years ago

yes, but i thought that the main idea was to have it zero-setup so maybe if option 1 was included out of the box

satya164 commented 8 years ago

@venil7 Yeah. But the reason I want to add a plugin system is so support for new things can be added easily. Fo example, right now, to add typescript support, you've to change files in 3 places, the webpack config, the middleware which handles JS and the middleware which handles hot reload. It'll be better to have those changes self-contained in one file.

Also, people will not need to fork it if they want a slightly different feature set. They can just add something on top of it and publish as a separate module.

BTW I spent some time yesterday night trying to add typescript. The problem I faced was that the ts-loder was trying to require modules from current directory and not quik's node_modules directory. Once I sort it out, I'll add typescript. Help is welcome.

venil7 commented 8 years ago

yeah, i agree on the plugin system, as long as they are installable via npm