diff --git a/Gruntfile.js b/Gruntfile.js index 48bc4e1..9b5bfee 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -2,6 +2,12 @@ module.exports = function(grunt) { require('load-grunt-tasks')(grunt); + var site = { + source: 'src', + dest: 'dist', + temp: '.tmp', + }; + grunt.initConfig({ jshint: { @@ -9,21 +15,13 @@ module.exports = function(grunt) { jshintrc: '.jshintrc', reporter: require('jshint-stylish') }, - all: [ - '**/*.js', - '!bower_components/**/*.js', - '!node_modules/**/*.js' - ] + all: site.source + '/**/*.js', }, csslint: { options: { csslintrc: '.csslintrc' }, check: { - src: [ - '**/*.css', - '!bower_components/**/*.css', - '!node_modules/**/*.css' - ] + src: site.source + '/**/*.css', } }, @@ -34,27 +32,15 @@ module.exports = function(grunt) { livereloadOnError: false }, js: { - files: [ - '**/*.js', - '!bower_components/**/*.js', - '!node_modules/**/*.js' - ], + files: site.source + '/**/*.js', tasks: ['jshint:all'] }, css: { - files: [ - '**/*.css', - '!bower_components/**/*.css', - '!node_modules/**/*.css' - ], + files: site.source + '/**/*.css', tasks: ['csslint:check'] }, html: { - files: [ - '**/*.html', - '!bower_components/**/*.html', - '!node_modules/**/*.html' - ], + files: site.source + '/**/*.html', }, configFiles: { files: [ 'Gruntfile.js' ], @@ -65,8 +51,15 @@ module.exports = function(grunt) { connect: { server: { options: { - port: 3000, + base: ['bower_components', site.source], + directory: site.source, hostname: '*', + livereload: true, + open: { + appName: 'open', + target: 'http://localhost:3000', + }, + port: 3000, } } } diff --git a/README.md b/README.md index a14e2ec..bb48a08 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -A simple starter gruntfile for javascript noodles. +A simple starter gruntfile for static prototypes. diff --git a/index.html b/index.html deleted file mode 100644 index e0b2a83..0000000 --- a/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - JS Noodles - - - - - -

JS Noodles!

- - - - - - diff --git a/package.json b/package.json index ddf46c2..c45d0ad 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "version": "0.0.0", "dependencies": {}, "devDependencies": { - "grunt": "~0.4.5", - "grunt-contrib-connect": "^0.11.2", - "grunt-contrib-csslint": "~0.5.0", - "grunt-contrib-jshint": "~0.11.3", - "grunt-contrib-watch": "0.6.1", - "jshint-stylish": "~2.1.0", - "load-grunt-tasks": "~3.3.0" + "grunt": "~1.0.1", + "grunt-contrib-connect": "^1.0.2", + "grunt-contrib-csslint": "~1.0.0", + "grunt-contrib-jshint": "~1.0.0", + "grunt-contrib-watch": "1.0.0", + "jshint-stylish": "~2.2.0", + "load-grunt-tasks": "~3.5.0" }, "engines": { "node": ">=0.8.0" diff --git a/favicon.ico b/src/favicon.ico similarity index 100% rename from favicon.ico rename to src/favicon.ico diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..2b816cd --- /dev/null +++ b/src/index.html @@ -0,0 +1,16 @@ + + + + + My Static Prototype + + + + + +

go go Scaffold!

+ + + + + diff --git a/main.js b/src/main.js similarity index 98% rename from main.js rename to src/main.js index e7dfbe3..e6e332e 100644 --- a/main.js +++ b/src/main.js @@ -1,5 +1,3 @@ - - $( document ).ready(function() { $('
', { diff --git a/style.css b/src/style.css similarity index 100% rename from style.css rename to src/style.css