User tests: Successful: Unsuccessful:
This PR attempts to add file watch to compilecss
and compilejs
that we can get rid of re-compile manually every time after code changed.
Watch CSS
npm run watch:css
Watch JS
npm run watch:js
Watch both
node build --compilecss --compilejs --watch
Just curious why we don't use Gulp?
Status | New | ⇒ | Pending |
Category | ⇒ | Repository JavaScript |
Title |
|
Title |
|
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-02-17 18:11:11 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
@asika32764 sorry for delayed answer, so here is a hint towards where we are aiming with this: Dev tools
@dgt41 It will be great if we have our own packager to help developers like Laravel Mix did.
However, I have ever worked with Gulp, Webpack and Laravel Mix, and I have some suggestion that if we create our own packager and based on some core library (if not based on vanilla JS), we should choose Gulp rather than webpack.
There are some reasons:
I'm not mean webpack is bad. The main benefit of using webpack is based on it's loaders since webpack's task is to auto load all dependencies and bundle them. It is good for pure frontend projects. And Gulp more like a Makefile to help use compile our codes automatically.
Just personal opinion and share some experience after using Mix.
I'm also creating a Gulp wrap for my framework similar to Laravel Mix, see: https://github.com/ventoviro/windwalker-fusion/blob/master/test/gulpfile.js
Seems good to me. Native JS over gulp was a decision made by @dgt41 . He's the person to explain the rational :)