Skip to content

Commit

Permalink
adds css concat, closes #37
Browse files Browse the repository at this point in the history
  • Loading branch information
1wheel committed Jun 5, 2015
1 parent d266134 commit b85ff1e
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
node_modules/
.tmp/
public/
63 changes: 63 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,63 @@
'use strict';

var request = require('request');

module.exports = function (grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);


grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

useminPrepare: {
html: ['index.html'],
options:{
dest: 'public'
}
},
usemin: {
html: ['public/index.html'],
},
copy: {
html: {
files: [
{ src: 'index.html', dest: 'public/index.html' },
]
},
images: {
files: [
{ expand: true, src: 'media/*.*', dest: 'public/' },
{ expand: true, src: 'images/*.*', dest: 'public/' },
]
},
misc: {
files: [
{ expand: true, src: 'scripts/tracker.js', dest: 'public/' },
]
}
}
});


// grunt.loadNpmTasks('grunt-filerev');
// grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-usemin');

grunt.registerTask('build', [
'useminPrepare',
'concat',
'cssmin',
'uglify',
'copy',
'usemin',
]);


grunt.registerTask('default', ['build']);
};
32 changes: 32 additions & 0 deletions package.json
@@ -0,0 +1,32 @@
{
"name": "code-issue",
"description": "BW code issue",
"author": {
"name": "Adam Pearce",
"url": "http://roadtolarissa.com"
},
"engines": {
"node": "0.12.x"
},
"repository": {
"type": "git",
"url": "https://github.com/bizweekgraphics/code.git"
},
"dependencies": {
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-develop": "~0.2.2",
"grunt-contrib-watch": "~0.5.3",
"request": "~2.27.0",
"time-grunt": "~0.1.1",
"load-grunt-tasks": "~0.2.0",
"grunt-contrib-stylus": "~0.15.0",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-concat": "^0.4.0",
"grunt-usemin": "^2.1.1",
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-cssmin": "^0.9.0",
"grunt-filerev": "^0.2.1"
}
}

0 comments on commit b85ff1e

Please sign in to comment.