Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to prevent it from aborting on compiling error? #3

Closed
ghaschel opened this issue Apr 22, 2015 · 1 comment
Closed

Is there a way to prevent it from aborting on compiling error? #3

ghaschel opened this issue Apr 22, 2015 · 1 comment

Comments

@ghaschel
Copy link

I love this, but the fact that it abort on any compiling error makes me mad. Is there a way to disable it, and make it just keep running, and waiting for the correct code?
Sometimes when i miss something, and press ctrl+s, it abort itself because of a missing semicolon, or anything like that... That is not pratical at all...

Thanks a lot. <3

@js-seth-h
Copy link
Owner

sorry for late.
I also use this for running development sever that auto reaload when code change.
but, in my case, grunt process is not abort even syntax error.
I am not sure that feature come from this mudule or not.
anyway. I share my grunt config, I hope that it is helpful to solve issue.

  grunt.initConfig    

    fastWatch:
      cwd:     
        dir : '.' 
        ignoreSubDir : ignoreDir 
        trigger:
          server:  
            care : serverCares
            tasks: ["service:server:restart"] 
          build:
            care : buildCares
            tasks: ['build']

    concurrent:
      server:
        tasks: ["fastWatch:cwd", 'service:server', 'build']
        options:  
          logConcurrentOutput: true  

    service:  
      server: 
        shellCommand : "coffee Server.coffee"  
        pidFile : pidpath
        options : 
          stdio : 'inherit' 
      build: 
        shellCommand : "coffee Build.coffee"
        option:
          failOnError: false
      mongo:
        shellCommand: "cd D:/#MongoDB/mongodb &&  ./bin/mongod.exe  --config ../mongo.conf.yaml"
        # blocking: true


  grunt.loadNpmTasks 'grunt-concurrent'
  grunt.loadNpmTasks 'grunt-service'
  grunt.loadNpmTasks 'grunt-fast-watch'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants