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 @@ - - -
- -