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

Recomendation for running SASS watch? #48

Open
carcinocron opened this issue Jan 24, 2020 · 0 comments
Open

Recomendation for running SASS watch? #48

carcinocron opened this issue Jan 24, 2020 · 0 comments

Comments

@carcinocron
Copy link

This is my sentry file, it works really well for watching a dev http server while concurrently running sass --watch. But my sentry config for sass is probably running it twice. Any recommended changes?

require "sentry"

sentry = Sentry::ProcessRunner.new(
    display_name:   "app",
    build_command:          "crystal build ./src/app.cr",
    run_command:            "./app",
    # build_args:     [] of String,
    # run_args:       [] of String,
    files: ["./src/**/*.cr", "./src/views/**/*.ecr"],
    should_build: true,
    install_shards: false,
    colorize: true,
)

spawn {
  Sentry::ProcessRunner.new(
    display_name:   "sass",
    build_command:          "node_modules/.bin/sass",
    run_command:            "node_modules/.bin/sass",
    build_args:       ["./src/sass/main.sass:./public/css/one.css"],
    run_args:       ["./src/sass/main.sass:./public/css/one.css"],
    files: ["./src/sass/**/*.sass", "./src/sass/**/*.css"],
    should_build: true,
    install_shards: false,
    colorize: true,
  ).run
}

sentry.run
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