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

add @bg adaptor #5

Closed
shakyShane opened this issue Apr 24, 2016 · 0 comments
Closed

add @bg adaptor #5

shakyShane opened this issue Apr 24, 2016 · 0 comments

Comments

@shakyShane
Copy link
Contributor

shakyShane commented Apr 24, 2016

Some tasks (such as watchify) need to be started effecitvely as daemons - implement @bg adaptor
to allow this

yaml

watch:
  # Run sass compiler
  # then run browserify in the background
  before:
    - sass
    - browserify

  # Now watch .scss files and compile sass
  watchers:
    'scss/**/*.scss': ['sass']

tasks:
  # Create the alias 'sass' for running locally installed node-sass
  sass:       '@npm node-sass --input scss/core.scss --output dist/styles.css'
  browserify: '@bg watchify app/bundle.js -d -o dist/bundle.js'

json

{
    "watch": {
        "before": ["sass", "browserify"],
        "watchers": {
            "scss/**/*.scss": ["sass"]
        }
    },
    "tasks": {
        "sass": "@npm node-sass --input scss/core.scss --output dist/styles.css",
        "browserify": "@bg watchify app/bundle.js -d -o dist/bundle.js"
    }
}
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

1 participant