added combined version
This commit is contained in:
+13
-1
@@ -22,6 +22,7 @@ module.exports = (grunt) ->
|
|||||||
src: ['**/*.coffee'],
|
src: ['**/*.coffee'],
|
||||||
dest: 'dist/',
|
dest: 'dist/',
|
||||||
ext: '.js'
|
ext: '.js'
|
||||||
|
|
||||||
wrap:
|
wrap:
|
||||||
dist:
|
dist:
|
||||||
src: 'dist/<%= pkg.name %>.js'
|
src: 'dist/<%= pkg.name %>.js'
|
||||||
@@ -30,6 +31,12 @@ module.exports = (grunt) ->
|
|||||||
"<%= banner %>(function(window,document,undefined) {\n"
|
"<%= banner %>(function(window,document,undefined) {\n"
|
||||||
"\n}(window,document));"
|
"\n}(window,document));"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
concat:
|
||||||
|
combined:
|
||||||
|
src: 'dist/**/*.js'
|
||||||
|
dest: 'dist/<%= pkg.name %>-combined.js'
|
||||||
|
|
||||||
uglify:
|
uglify:
|
||||||
options:
|
options:
|
||||||
stripBanners: true
|
stripBanners: true
|
||||||
@@ -39,15 +46,20 @@ module.exports = (grunt) ->
|
|||||||
src: "dist/<%= pkg.name %>.js"
|
src: "dist/<%= pkg.name %>.js"
|
||||||
dest: "dist/<%= pkg.name %>.min.js"
|
dest: "dist/<%= pkg.name %>.min.js"
|
||||||
|
|
||||||
|
combined:
|
||||||
|
src: "dist/<%= pkg.name %>-combined.js"
|
||||||
|
dest: "dist/<%= pkg.name %>-combined.min.js"
|
||||||
|
|
||||||
watch:
|
watch:
|
||||||
scripts:
|
scripts:
|
||||||
files: 'src/**/*.coffee'
|
files: 'src/**/*.coffee'
|
||||||
tasks: 'default'
|
tasks: 'default'
|
||||||
|
|
||||||
|
grunt.loadNpmTasks "grunt-contrib-concat"
|
||||||
grunt.loadNpmTasks "grunt-contrib-watch"
|
grunt.loadNpmTasks "grunt-contrib-watch"
|
||||||
grunt.loadNpmTasks "grunt-contrib-uglify"
|
grunt.loadNpmTasks "grunt-contrib-uglify"
|
||||||
grunt.loadTasks "./node_modules/grunt-contrib-coffee/tasks"
|
grunt.loadTasks "./node_modules/grunt-contrib-coffee/tasks"
|
||||||
grunt.loadNpmTasks "grunt-wrap"
|
grunt.loadNpmTasks "grunt-wrap"
|
||||||
|
|
||||||
# Default task.
|
# Default task.
|
||||||
grunt.registerTask "default", "coffee wrap uglify".split(' ')
|
grunt.registerTask "default", "coffee wrap concat uglify".split(' ')
|
||||||
|
|||||||
Vendored
+1059
File diff suppressed because one or more lines are too long
Vendored
+6
File diff suppressed because one or more lines are too long
+3
-1
@@ -7,7 +7,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "http://notifyjs.com/",
|
"homepage": "http://notifyjs.com/",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version":"0.0.1",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "~0.4.x",
|
"grunt": "~0.4.x",
|
||||||
"grunt-contrib-watch": "~0.1.4",
|
"grunt-contrib-watch": "~0.1.4",
|
||||||
@@ -16,5 +15,8 @@
|
|||||||
"grunt-contrib-concat": "~0.1.1",
|
"grunt-contrib-concat": "~0.1.1",
|
||||||
"grunt-contrib-coffee": "~0.4.0rc7",
|
"grunt-contrib-coffee": "~0.4.0rc7",
|
||||||
"grunt-wrap": "~0.2.0"
|
"grunt-wrap": "~0.2.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"grunt-contrib-concat": "~0.3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user