linemanjs / lineman

Lineman helps you build fat-client JavaScript apps. It produces happiness by building assets, mocking servers, running specs on every file change
MIT License
1.18k stars 83 forks source link

How to `lineman build` with no uglify? #340

Closed felippenardi closed 9 years ago

felippenardi commented 9 years ago

Hello,

I want to build with no minification. How does I ignore uglify on lineman build?

jasonkarns commented 9 years ago

See 'Removing Tasks' on the lineman site: http://www.linemanjs.com/#removing-tasks

The task you want is uglify and is part of the dist phase (dev is for lineman run, dist is for lineman build and common is for both).

felippenardi commented 9 years ago

@jasonkarns Thank you! There is another problem now I added this snippet to config/application.js:

 removeTasks: {
    dist: ["uglify"]
  }

It successfully removed uglify, but it is not building the /js folder anymore.

What is the task that builds the JS, just not minified?

felippenardi commented 9 years ago

Just solved this issue by replacing the previous snippet with:

uglify: {
  options :
    {
      beautify: true
    }
}
searls commented 9 years ago

Glad you got to this before I did. I also would not remove uglify, I'd have gone your route (since you'd have to add a copy task after concat to replace the need to move from generated into dist