Permalink
Browse files

added grunt automation

  • Loading branch information...
1 parent 40b18b3 commit 9150cd56e911857c79a366b6d3fd6518a1a9f113 @richorama committed Nov 20, 2013
Showing with 79 additions and 16 deletions.
  1. +2 −0 .gitignore
  2. +34 −0 Gruntfile.js
  3. +15 −16 muonredux.js
  4. +28 −0 package.json
View
@@ -0,0 +1,2 @@
+src
+node_modules
View
@@ -0,0 +1,34 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+
+ 'curl-dir': {
+ 'src': [
+ 'http://code.jquery.com/jquery-1.8.3.min.js',
+ 'https://raw.github.com/twbs/bootstrap/master/js/modal.js',
+ 'http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.rc.1.js',
+ 'https://raw.github.com/coreyti/showdown/master/src/showdown.js',
+ 'http://documentcloud.github.com/underscore/underscore.js',
+ 'http://documentcloud.github.com/backbone/backbone.js',
+ 'http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js',
+ 'http://cdnjs.cloudflare.com/ajax/libs/dropbox.js/0.9.1/dropbox.min.js'
+ ]
+ },
+
+ uglify: {
+ my_target: {
+ files: {
+ 'muonredux.js': ['src/jquery-1.8.3.min.js', 'src/modal.js', 'src/handlebars-1.0.rc.1.js', 'src/showdown.js', 'src/underscore.js', 'src/backbone.js', 'src/ace.js', 'src/dropbox.min.js' ]
+ }
+ }
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-curl');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+
+ grunt.registerTask('default', ['curl-dir', 'uglify']);
+
+};
View
Oops, something went wrong.
View
@@ -0,0 +1,28 @@
+{
+ "name": "muonredux",
+ "version": "0.0.1",
+ "description": "personal wiki",
+ "main": "muonredux.js",
+ "dependencies": { },
+ "devDependencies": {
+ "grunt": "~0.4.1",
+ "grunt-contrib-uglify": "~0.2.7",
+ "grunt-curl": "~1.2.1"
+ },
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/richorama/muonredux.git"
+ },
+ "keywords": [
+ "personal",
+ "wiki"
+ ],
+ "author": "richorama",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/richorama/muonredux/issues"
+ }
+}

0 comments on commit 9150cd5

Please sign in to comment.