Class: Xing::Tasks::Build

Inherits:
Tasklib
  • Object
show all
Defined in:
lib/xing/tasks/build.rb

Instance Method Summary collapse

Methods inherited from Tasklib

#edict_task

Instance Method Details

#defineObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/xing/tasks/build.rb', line 10

def define
  in_namespace do
    task :all => ['frontend:all']

    namespace :frontend do
      edict_task :grunt_compile, Edicts::CleanRun do |gc|
        gc.dir = "frontend"
        gc.env_hash = {"CUSTOM_CONFIG_DIR" => config_dir}
        gc.shell_cmd = %w{bundle exec node_modules/.bin/grunt compile}
      end
      task :grunt_compile => ['frontend:setup']

      task :all => [:grunt_compile]
    end
  end
end