Grunt workflow #55

Closed
HugoGiraudel opened this Issue Jul 7, 2014 · 12 comments

Comments

Projects
None yet
4 participants
@HugoGiraudel
Member

HugoGiraudel commented Jul 7, 2014

Or Gulp. Whatever.

Now that we have quite a few things going on (Sass watching, JSHint...), perhaps having a more powerful than Make, task-based workflow wouldn't be such a bad idea, right?

@valeriangalliat, @FWeinb, what do you say?

@valeriangalliat

This comment has been minimized.

Show comment
Hide comment
@valeriangalliat

valeriangalliat Jul 7, 2014

Member

Well I don't know, I like makefiles, especially for something as straightforward as running commands — and I usually use inotifywait in a shell loop for "watch" tasks... but Grunt or Gulp is a good solution to write something more portable.

EDIT: I just saw that you can run sass --watch. I don't know which tools they use for this but this removes the inotifywaity portability problem (but well... a makefile isn't still the best solution for Windows, and I'd prefer Grunt/Gulp than using CMake).

Member

valeriangalliat commented Jul 7, 2014

Well I don't know, I like makefiles, especially for something as straightforward as running commands — and I usually use inotifywait in a shell loop for "watch" tasks... but Grunt or Gulp is a good solution to write something more portable.

EDIT: I just saw that you can run sass --watch. I don't know which tools they use for this but this removes the inotifywaity portability problem (but well... a makefile isn't still the best solution for Windows, and I'd prefer Grunt/Gulp than using CMake).

@HugoGiraudel

This comment has been minimized.

Show comment
Hide comment
@HugoGiraudel

HugoGiraudel Jul 7, 2014

Member

So, @pascalduez seems on fire to build the Gruntfile and shit and stuff. @FWeinb, if you're okay, we do this.

Member

HugoGiraudel commented Jul 7, 2014

So, @pascalduez seems on fire to build the Gruntfile and shit and stuff. @FWeinb, if you're okay, we do this.

@FWeinb

This comment has been minimized.

Show comment
Hide comment
@FWeinb

FWeinb Jul 7, 2014

Member

Let's do it.

Member

FWeinb commented Jul 7, 2014

Let's do it.

@HugoGiraudel

This comment has been minimized.

Show comment
Hide comment
@HugoGiraudel

HugoGiraudel Jul 7, 2014

Member

@pascalduez, your move.

Member

HugoGiraudel commented Jul 7, 2014

@pascalduez, your move.

@FWeinb

This comment has been minimized.

Show comment
Hide comment
@FWeinb

FWeinb Jul 7, 2014

Member

Do we want to this for 1.0? Would be good because than we could run tests and integrate with travis.

Member

FWeinb commented Jul 7, 2014

Do we want to this for 1.0? Would be good because than we could run tests and integrate with travis.

@pascalduez

This comment has been minimized.

Show comment
Hide comment
@pascalduez

pascalduez Jul 7, 2014

Member

Currently making it my priority.

Member

pascalduez commented Jul 7, 2014

Currently making it my priority.

@HugoGiraudel HugoGiraudel added the 1.0 label Jul 7, 2014

@HugoGiraudel

This comment has been minimized.

Show comment
Hide comment
@HugoGiraudel

HugoGiraudel Jul 7, 2014

Member

Tagged for 1.0. We won't go live until we have a clean workflow, including automated tests.

Member

HugoGiraudel commented Jul 7, 2014

Tagged for 1.0. We won't go live until we have a clean workflow, including automated tests.

@HugoGiraudel HugoGiraudel added this to the 1.0 milestone Jul 7, 2014

@HugoGiraudel

This comment has been minimized.

Show comment
Hide comment
@HugoGiraudel

HugoGiraudel Jul 8, 2014

Member
$ grunt watch
Running "watch" task
Waiting...
>> File "view\templates\layouts\base.html.swig" changed.
Running "compile" task
Fatal error: spawn ENOENT


Execution Time (2014-07-08 11:15:00 UTC)
loading tasks  70ms  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 91%
compile         6ms  ■■■■ 8%
Total 77ms

Completed in 0.853s at Tue Jul 08 2014 13:15:00 GMT+0200 (Paris, Madrid (heure d’été)) - Waiting...

Note: Fatal error: spawn ENOENT.

$ grunt dist
Running "browserSync:dist" (browserSync) task

Running "watch" task
Waiting...
[BS] Local: >>> http://localhost:3000
[BS] External: >>> http://10.0.1.94:3000
[BS] Serving files from: examples/dist

[BS] Watching files...
>> File "view\templates\includes\sidebar.html.swig" changed.
Running "compile" task
Fatal error: spawn ENOENT


Execution Time (2014-07-08 11:45:42 UTC)
loading tasks  70ms  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 92%
compile         5ms  ■■■■ 7%
Total 76ms

Completed in 0.843s at Tue Jul 08 2014 13:45:42 GMT+0200 (Paris, Madrid (heure d’été)) - Waiting...

Note: Fatal error: spawn ENOENT.

Execution Time (2014-07-08 11:49:03 UTC)
loading tasks   71ms  ■■■■■■ 11%
sass:view      573ms  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 89%
Total 645ms

Completed in 1.488s at Tue Jul 08 2014 13:49:04 GMT+0200 (Paris, Madrid (heure d’été)) - Waiting...
[BS] File Changed: prism.min.js
[BS] Reloading all connected browsers...
Error: EPERM, stat 'c:\Users\DEV-07\Documents\Sources\SassDoc\examples\dist\assets\css\main.css'
>> File "view\scss\partials\_map.scss" changed.
Error: EPERM, stat 'c:\Users\DEV-07\Documents\Sources\SassDoc\examples\dist\assets\css\main.css'
Running "sass:view" (sass) task
File view/assets/css/main.css created.

Done, without errors.

Note: Error: EPERM, stat 'c:\Users\DEV-07\Documents\Sources\SassDoc\examples\dist\assets\css\main.css'

Member

HugoGiraudel commented Jul 8, 2014

$ grunt watch
Running "watch" task
Waiting...
>> File "view\templates\layouts\base.html.swig" changed.
Running "compile" task
Fatal error: spawn ENOENT


Execution Time (2014-07-08 11:15:00 UTC)
loading tasks  70ms  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 91%
compile         6ms  ■■■■ 8%
Total 77ms

Completed in 0.853s at Tue Jul 08 2014 13:15:00 GMT+0200 (Paris, Madrid (heure d’été)) - Waiting...

Note: Fatal error: spawn ENOENT.

$ grunt dist
Running "browserSync:dist" (browserSync) task

Running "watch" task
Waiting...
[BS] Local: >>> http://localhost:3000
[BS] External: >>> http://10.0.1.94:3000
[BS] Serving files from: examples/dist

[BS] Watching files...
>> File "view\templates\includes\sidebar.html.swig" changed.
Running "compile" task
Fatal error: spawn ENOENT


Execution Time (2014-07-08 11:45:42 UTC)
loading tasks  70ms  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 92%
compile         5ms  ■■■■ 7%
Total 76ms

Completed in 0.843s at Tue Jul 08 2014 13:45:42 GMT+0200 (Paris, Madrid (heure d’été)) - Waiting...

Note: Fatal error: spawn ENOENT.

Execution Time (2014-07-08 11:49:03 UTC)
loading tasks   71ms  ■■■■■■ 11%
sass:view      573ms  ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 89%
Total 645ms

Completed in 1.488s at Tue Jul 08 2014 13:49:04 GMT+0200 (Paris, Madrid (heure d’été)) - Waiting...
[BS] File Changed: prism.min.js
[BS] Reloading all connected browsers...
Error: EPERM, stat 'c:\Users\DEV-07\Documents\Sources\SassDoc\examples\dist\assets\css\main.css'
>> File "view\scss\partials\_map.scss" changed.
Error: EPERM, stat 'c:\Users\DEV-07\Documents\Sources\SassDoc\examples\dist\assets\css\main.css'
Running "sass:view" (sass) task
File view/assets/css/main.css created.

Done, without errors.

Note: Error: EPERM, stat 'c:\Users\DEV-07\Documents\Sources\SassDoc\examples\dist\assets\css\main.css'

@HugoGiraudel HugoGiraudel added the Bug label Jul 8, 2014

@pascalduez

This comment has been minimized.

Show comment
Hide comment
@pascalduez

pascalduez Jul 8, 2014

Member

No issue here, I suspect a Windows thing. Investigating.

Member

pascalduez commented Jul 8, 2014

No issue here, I suspect a Windows thing. Investigating.

@FWeinb

This comment has been minimized.

Show comment
Hide comment
Member

FWeinb commented Jul 8, 2014

@HugoGiraudel

This comment has been minimized.

Show comment
Hide comment
@HugoGiraudel

HugoGiraudel Jul 8, 2014

Member

Merged in 1.0.0-rc.12.

Member

HugoGiraudel commented Jul 8, 2014

Merged in 1.0.0-rc.12.

@pascalduez

This comment has been minimized.

Show comment
Hide comment
@pascalduez

pascalduez Jul 8, 2014

Member

The ENOENT should be fixed, but there is still the EPERM I guess. On Win, of course.

Member

pascalduez commented Jul 8, 2014

The ENOENT should be fixed, but there is still the EPERM I guess. On Win, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment