From bd7d3c8e79ac0e9578f422b654cf127c6c624ba8 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 30 Jan 2014 11:29:14 -0500 Subject: [PATCH] added Gruntfile and jshintrc --- .jshintrc | 38 ++++++++++++++++++++++++++++++++++++++ Gruntfile.js | 20 ++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .jshintrc create mode 100644 Gruntfile.js diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..80cbe7e --- /dev/null +++ b/.jshintrc @@ -0,0 +1,38 @@ +{ + "node": true, // Enable globals available when code is running inside of the NodeJS runtime environment. + "browser": true, // Standard browser globals e.g. `window`, `document`. + "esnext": true, // Allow ES.next specific features such as `const` and `let`. + "bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.). + "camelcase": false, // Permit only camelcase for `var` and `object indexes`. + "curly": false, // Require {} for every new block or scope. + "eqeqeq": true, // Require triple equals i.e. `===`. + "immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` + "latedef": true, // Prohibit variable use before definition. + "newcap": true, // Require capitalization of all constructor functions e.g. `new F()`. + "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`. + "quotmark": "single", // Define quotes to string values. + "regexp": true, // Prohibit `.` and `[^...]` in regular expressions. + "undef": true, // Require all non-global variables be declared before they are used. + "unused": true, // Warn unused variables. + "strict": true, // Require `use strict` pragma in every file. + "trailing": true, // Prohibit trailing whitespaces. + "smarttabs": false, // Suppresses warnings about mixed tabs and spaces + "globals": { // Globals variables. + "angular": true + }, + "predef": [ // Extra globals. + "define", + "require", + "exports", + "module", + "describe", + "before", + "beforeEach", + "after", + "afterEach", + "requirejs" + ], + "indent": false, // Specify indentation spacing + "devel": true, // Allow development statements e.g. `console.log();`. + "noempty": true // Prohibit use of empty blocks. +} diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..861b57d --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,20 @@ +'use strict'; + +module.exports = function(grunt) { + + //Load NPM tasks + grunt.loadNpmTasks('grunt-browserify'); + + // Project Configuration + grunt.initConfig({ + browserify: { + basic: { + src: ['main2.js'], + dest: 'browser/bundle.js' + } + } + }); + + grunt.registerTask('default', ['browserify']); + +};