Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
- [grunt] introduced grunt uglify task
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed Apr 28, 2015
1 parent 1158fb9 commit 374b564
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ module.exports = (grunt) ->
# Specify files
file:
source:
script: '<%= path.source.scripts %>/main.js'
style: '<%= path.source.styles %>/style.scss'

build:
script:
compiled: '<%= path.build.scripts %>/main.js'
min: '<%= path.build.scripts %>/main.min.js'
style:
compiled: '<%= path.build.styles %>/style.compiled.css'
prefixed: '<%= path.build.styles %>/style.prefixed.css'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Kotsu",
"version": "0.7.0",
"version": "0.7.1",
"title": "Clean, opinionated foundation for new projects — to boldly go where no man has gone before",
"author": "LotusTM",
"private": true,
Expand All @@ -15,6 +15,7 @@
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-htmlmin": "^0.4.0",
"grunt-contrib-sass": "^0.9.2",
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-watch": "^0.6.1",
"grunt-csso": "^0.7.1",
"grunt-newer": "^1.1.0",
Expand Down
12 changes: 12 additions & 0 deletions tasks/grunt-contrib-uglify.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
###
Uglify
https://github.com/gruntjs/grunt-contrib-uglify
Minify files with UglifyJS
###
module.exports = ->
@config 'uglify',
build:
files: [
src: '<%= file.build.script.compiled %>'
dest: '<%= file.build.script.min %>'
]

0 comments on commit 374b564

Please sign in to comment.