Skip to content

Commit

Permalink
refs #33 prepare Grunt environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuzee committed Aug 16, 2015
1 parent 884ef16 commit 35bb44a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ app/reports
Plugin
Vendor
work
node_modules
27 changes: 27 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = function(grunt){
grunt.initConfig({
cssmin: {
target: {
expand: true,
src: ['app/webroot/css/**/openslideshare*.css', '!*.min.css'],
dest: './',
ext: '.min.css'
}
},
watch: {
css: {
files: ['app/webroot/css/**/*.css'],
tasks: ['cssmin']
},
script: {
files: ['app/webroot/js/**/*.js'],
tasks: ['uglify']
}
}
});

grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-cssmin');

grunt.registerTask('default', ['watch']);
};
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "openslideshare",
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Ryuzee",
"license": "MIT",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-cssmin": "~0.10.0"
}
}

0 comments on commit 35bb44a

Please sign in to comment.