From f90375aee319deb90fed80b47435b5e617e0d67b Mon Sep 17 00:00:00 2001 From: Jamie Nguyen <j@jamielinux.com> Date: Wed, 10 Jul 2013 19:45:21 +0100 Subject: [PATCH 1/2] Rename grunt.js to Gruntfile.js --- Gruntfile.js | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ grunt.js | 59 ----------------------------------------------------------- 2 files changed, 59 insertions(+), 59 deletions(-) create mode 100644 Gruntfile.js delete mode 100644 grunt.js diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..09bd528 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,59 @@ +module.exports = function(grunt) { + + // Project configuration. + grunt.initConfig({ + pkg: '<json:package.json>', + meta: { + name: 'JavaScript Hooker', + banner: '/*! <%= meta.name %> - v<%= pkg.version %> - <%= grunt.template.today("m/d/yyyy") %>\n' + + '* <%= pkg.homepage %>\n' + + '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + + ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */' + }, + concat: { + dist: { + src: ['<banner>', '<file_strip_banner:lib/hooker.js>'], + dest: 'dist/ba-hooker.js' + } + }, + min: { + dist: { + src: ['<banner>', 'dist/ba-hooker.js'], + dest: 'dist/ba-hooker.min.js' + } + }, + test: { + files: ['test/**/*.js'] + }, + lint: { + files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js'] + }, + watch: { + files: '<config:lint.files>', + tasks: 'lint:files test:files' + }, + jshint: { + options: { + curly: true, + eqeqeq: true, + immed: true, + latedef: true, + newcap: true, + noarg: true, + sub: true, + undef: true, + boss: true, + eqnull: true + }, + globals: { + exports: true, + module: false + } + }, + uglify: {} + }); + + // Default task. + grunt.registerTask('default', 'lint test concat min'); + +}; diff --git a/grunt.js b/grunt.js deleted file mode 100644 index 09bd528..0000000 --- a/grunt.js +++ /dev/null @@ -1,59 +0,0 @@ -module.exports = function(grunt) { - - // Project configuration. - grunt.initConfig({ - pkg: '<json:package.json>', - meta: { - name: 'JavaScript Hooker', - banner: '/*! <%= meta.name %> - v<%= pkg.version %> - <%= grunt.template.today("m/d/yyyy") %>\n' + - '* <%= pkg.homepage %>\n' + - '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + - ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */' - }, - concat: { - dist: { - src: ['<banner>', '<file_strip_banner:lib/hooker.js>'], - dest: 'dist/ba-hooker.js' - } - }, - min: { - dist: { - src: ['<banner>', 'dist/ba-hooker.js'], - dest: 'dist/ba-hooker.min.js' - } - }, - test: { - files: ['test/**/*.js'] - }, - lint: { - files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js'] - }, - watch: { - files: '<config:lint.files>', - tasks: 'lint:files test:files' - }, - jshint: { - options: { - curly: true, - eqeqeq: true, - immed: true, - latedef: true, - newcap: true, - noarg: true, - sub: true, - undef: true, - boss: true, - eqnull: true - }, - globals: { - exports: true, - module: false - } - }, - uglify: {} - }); - - // Default task. - grunt.registerTask('default', 'lint test concat min'); - -}; -- 1.8.3.1