namespace :assets do
  desc "Compile javascript"
  task :javascript do
    TechnoGate::Contao::CoffeescriptCompiler.compile
    TechnoGate::Contao::CoffeescriptCompiler.compile
    TechnoGate::Contao::JavascriptCompiler.compile
  end

  desc "Compile stylesheet"
  task :stylesheet do
    TechnoGate::Contao::StylesheetCompiler.compile
  end

  desc "Clean assets"
  task :clean do
    TechnoGate::Contao::StylesheetCompiler.clean
    TechnoGate::Contao::CoffeescriptCompiler.clean
    TechnoGate::Contao::JavascriptCompiler.clean
  end

  desc "Precompile assets"
  task :precompile => [:clean, :stylesheet, :javascript]
end

namespace :assets do
  desc "Compile javascript"
  task :javascript do
    TechnoGate::Contao::CoffeescriptCompiler.compile
    TechnoGate::Contao::JavascriptCompiler.compile
  end

  desc "Compile stylesheet"
  task :stylesheet do
    TechnoGate::Contao::StylesheetCompiler.compile
  end

  desc "Clean assets"
  task :clean do
    TechnoGate::Contao::StylesheetCompiler.clean
    TechnoGate::Contao::CoffeescriptCompiler.clean
    TechnoGate::Contao::JavascriptCompiler.clean
  end

  desc "Precompile assets"
  task :precompile => [:clean, :stylesheet, :javascript]
end

Revert "Compile CoffeeScript before compiling javascript"
Revert "Compile CoffeeScript before compiling javascript"

This reverts commit 11b143dde3f2b4b73d757a1b71daae0ffedca387.
