Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80665 views
1
# Exports an object that defines
2
# all of the configuration needed by the projects'
3
# depended-on grunt tasks.
4
#
5
# You can familiarize yourself with all of Lineman's defaults by checking out the parent file:
6
# https://github.com/testdouble/lineman/blob/master/config/application.coffee
7
#
8
9
# lineman-lib-template config options:
10
11
includeVendorInDistribution = false #set to true if you want your distribution to contain JS files in vendor/js
12
13
lineman = require(process.env["LINEMAN_MAIN"])
14
grunt = lineman.grunt
15
_ = grunt.util._
16
application = lineman.config.extend "application",
17
18
meta:
19
banner: """
20
/* <%= pkg.name %> - <%= pkg.version %>
21
* <%= pkg.description || pkg.description %>
22
* <%= pkg.homepage %>
23
*/
24
25
"""
26
27
removeTasks:
28
common: ["less", "handlebars", "jst", "images:dev", "webfonts:dev", "pages:dev"]
29
dev: ["server"]
30
dist: ["cssmin", "images:dist", "webfonts:dist", "pages:dist"]
31
32
concat:
33
uncompressedDist:
34
options:
35
banner: "<%= meta.banner %>"
36
src: _([
37
("<%= files.js.vendor %>" if includeVendorInDistribution),
38
"<%= files.coffee.generated %>",
39
"<%= files.js.app %>"
40
]).compact()
41
dest: "<%= files.js.uncompressedDist %>"
42
43
application.uglify.js.files = _({}).tap (config) ->
44
config["dist/#{grunt.file.readJSON('package.json').name}.min.js"] = "<%= files.js.uncompressedDist %>"
45
46
module.exports = application
47
48