Skip to content

Commit

Permalink
first stab at grunt integration
Browse files Browse the repository at this point in the history
  • Loading branch information
trepmal committed Mar 24, 2014
1 parent b9edcf2 commit 6296d21
Show file tree
Hide file tree
Showing 77 changed files with 14,494 additions and 1,253 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
.DS_Store
71 changes: 71 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
my_target: {
files: {
'js/defenestrate.min.js': [
'src_js/functions.js'
]
}
}
},
// concat: {
// css: {
// src: [
// 'fonts/sourcesanspro/sourcesanspro.css',
// 'fonts/anticslab.css',
// 'fonts/genericons/genericons.css',
// 'style.css'
// ],
// dest: 'defenestrate.css'
// }
// },

// concat: {
// all: {
// src: [
// 'css/sourcesanspro.css',
// 'css/anticslab.css',
// 'css/genericons.css'
// ],
// dest: 'css/fonts.css'
// }
// },
cssmin: {
minify: {
expand: true,
cwd: 'src_css',
src: [
// 'fonts/sourcesanspro/sourcesanspro.css',
'*.css'
],
dest: 'dest/',
ext: '.min.css'
},
combine: {
files: {
'css/defenestrate.min.css': [
'dest/*.min.css'
// 'css/style.min.css'
]
}
}
}
});

require('load-grunt-tasks')(grunt);

// grunt.loadNpmTasks('grunt-contrib-uglify');
// grunt.loadNpmTasks('grunt-contrib-cssmin');
// grunt.loadNpmTasks('grunt-contrib-cssmin');

// Default task(s).
grunt.registerTask('default', ['uglify', 'cssmin']);

};
1 change: 1 addition & 0 deletions css/defenestrate.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dest/anticslab.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dest/genericons.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dest/sourcesanspro.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dest/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added fonts/anticslab/anticslab-regular-webfont.eot
Binary file not shown.
Loading

0 comments on commit 6296d21

Please sign in to comment.