Skip to content

Commit

Permalink
Updated: the Gruntfile.coffee, the package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nerv committed Feb 13, 2014
1 parent d9c0491 commit 729044a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ path = require 'path'
# Build configurations.
module.exports = (grunt) ->
grunt.initConfig

# Metadata
pkg: grunt.file.readJSON('package.json'),

banner: '/*\n' +
' <%= pkg.name %> v<%= pkg.version %>\n' +
' <%= pkg.homepage %>\n' +
'*/\n'

# Deletes built file and temp directories.
clean:
working:
Expand All @@ -11,16 +20,22 @@ module.exports = (grunt) ->
]

uglify:

# concat js files before minification
js:
src: ['angular-file-upload.js']
dest: 'angular-file-upload.min.js'
options:
sourceMap: (fileName) ->
fileName.replace /\.js$/, '.map'
banner: '<%= banner %>'
sourceMap: (fileName) ->
fileName.replace /\.js$/, '.map'
concat:

# concat js files before minification
js:
options:
banner: '<%= banner %>'
stripBanners: true
src: [
'src/scripts/intro.js',
'src/scripts/app.js',
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"name": "Angular File Upload",
"version": "0.3.1",
"homepage": "https://github.com/nervgh/angular-file-upload",
"description": "Angular File Upload is a module for the AngularJS framework",
"author": {
"name": "nerv",
"url": "https://github.com/nervgh"
},
"dependencies": {
Expand Down

0 comments on commit 729044a

Please sign in to comment.