Update Rakefile.rb
This commit is contained in:
parent
0a25e3aeb1
commit
f37fe8e45d
1 changed files with 1 additions and 12 deletions
13
Rakefile.rb
13
Rakefile.rb
|
@ -34,17 +34,6 @@ rescue Interrupt
|
||||||
s.stop
|
s.stop
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :watch do
|
|
||||||
desc "Watch for changes (server task)"
|
|
||||||
task :server do
|
|
||||||
Bundler.with_unbundled_env { Process.wait spawn("rake build") }
|
|
||||||
Listen.to(File.join(Dir.getwd, "src")) do
|
|
||||||
Bundler.with_unbundled_env { sh "rake build" }
|
|
||||||
end.start
|
|
||||||
Rake::Task["server"].invoke
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
namespace :lint do
|
namespace :lint do
|
||||||
desc "Run rubocop (Ruby)"
|
desc "Run rubocop (Ruby)"
|
||||||
task :rubocop do
|
task :rubocop do
|
||||||
|
@ -64,4 +53,4 @@ namespace :lint do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
task lint: ["lint:rubocop", "lint:eslint"]
|
task lint: ["lint:rubocop", "lint:eslint"]
|
||||||
task default: "deploy:local"
|
task default: "build"
|
||||||
|
|
Loading…
Reference in a new issue