Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
some more build rules for css, move things into src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
noahadams committed Mar 1, 2013
1 parent 43b92a0 commit 41583b0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
24 changes: 15 additions & 9 deletions www/static/modules/accordion/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@ module.exports = function(grunt) {
banner: '/*! <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'accordion.js',
src: 'src/accordion.js',
dest: 'build/<%= pkg.name %>.<%= pkg.version %>.min.js'
}
},
cssmin: {
core: {
src: 'src/accordion.css',
dest: 'build/accordion.<%= pkg.version %>.min.css'
},
style: {
src: 'src/accordion-style.css',
dest: 'build/accordion-style.<%= pkg.version %>.min.css'
}
},
s3: {
key: '<%= localConfig.aws.key %>',
secret: '<%= localConfig.aws.secret %>',
Expand All @@ -27,23 +37,19 @@ module.exports = function(grunt) {
headers: { "Cache-Control": "max-age=1200" },
upload: [
{ // build
src: "build/**/*",
dest: "mobifyjs/build/",
src: "build/*",
dest: "modules/accordion/build/",
rel: "build"
},
{ // examples
src: "examples/**/*",
dest: "mobifyjs/examples/",
rel: "examples"
}
]
}
});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-css');

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

};
3 changes: 2 additions & 1 deletion www/static/modules/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"devDependencies": {
"grunt": "~0.4.x",
"grunt-contrib-uglify": "~0.1.1",
"grunt-s3": "~0.1.0"
"grunt-s3": "~0.1.0",
"grunt-css": "~0.5.4"
},
"license": "MIT"
}

0 comments on commit 41583b0

Please sign in to comment.