-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathapplication.coffee
41 lines (33 loc) · 1 KB
/
application.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Exports an object that defines
# * all of the configuration needed by the projects'
# * depended-on grunt tasks.
#
grunt = require("./../lib/requires-grunt").require()
normalizePackage = require("normalize-package-data")
normalizedPackageJson = (packageFile = "package.json") ->
pkg = grunt.file.readJSON(packageFile)
normalizePackage pkg
pkg
module.exports =
pkg: normalizedPackageJson()
meta:
banner: "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today(\"yyyy-mm-dd\") %> */\n"
appTasks:
common: ["coffee", "jshint", "handlebars", "jst", "concat", "copy:dev", "images:dev", "webfonts:dev", "pages:dev"]
dev: ["server", "watch"]
dist: ["uglify", "cssmin", "copy:dist", "images:dist", "webfonts:dist", "pages:dist"]
removeTasks:
common: []
dev: []
dist: []
prependTasks:
common: []
dev: []
dist: []
appendTasks:
common: []
dev: []
dist: []
loadNpmTasks: []
enableSass: false
enableAssetFingerprint: false