Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"expr": true,
"immed": true,
"noarg": true,
"onevar": true,
"quotmark": "double",
"unused": true,
"node": true
}
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"expr": true,
"immed": true,
"noarg": true,
"onevar": true,
"quotmark": "double",
"unused": true,
"node": true
}
136 changes: 69 additions & 67 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,67 +1,69 @@
module.exports = function(grunt) {

grunt.initConfig({

// Import package manifest
pkg: grunt.file.readJSON("flagstrap.jquery.json"),

// Banner definitions
meta: {
banner: "/*\n" +
" * <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n" +
" * <%= pkg.description %>\n" +
" * <%= pkg.homepage %>\n" +
" *\n" +
" * Made by <%= pkg.author.name %>\n" +
" * Under <%= pkg.licenses[0].type %> License\n" +
" */\n"
},

// Concat definitions
concat: {
dist: {
src: ["src/jquery.flagstrap.js"],
dest: "dist/js/jquery.flagstrap.js"
},
options: {
banner: "<%= meta.banner %>"
}
},

// Lint definitions
jshint: {
files: ["src/jquery.boilerplate.js"],
options: {
jshintrc: ".jshintrc"
}
},

// Minify definitions
uglify: {
my_target: {
src: ["dist/js/jquery.flagstrap.js"],
dest: "dist/js/jquery.flagstrap.min.js"
},
options: {
banner: "<%= meta.banner %>"
}
},

// watch for changes to source
// Better than calling grunt a million times
// (call 'grunt watch')
watch: {
files: ['src/*'],
tasks: ['default']
}

});

grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-watch");

grunt.registerTask("default", ["jshint", "concat", "uglify"]);

};
module.exports = function(grunt) {

grunt.initConfig({

// Import package manifest
pkg: grunt.file.readJSON("flagstrap.jquery.json"),

// Banner definitions
meta: {
banner: "/*\n" +
" * <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n" +
" * <%= pkg.description %>\n" +
" * <%= pkg.homepage %>\n" +
" *\n" +
" * Made by <%= pkg.author.name %>\n" +
" * Under <%= pkg.licenses[0].type %> License\n" +
" */\n"
},

// Concat definitions
concat: {
dist: {
src: ["src/jquery.flagstrap.js"],
dest: "dist/js/jquery.flagstrap.js"
},
options: {
banner: "<%= meta.banner %>"
}
},

// Lint definitions
jshint: {
files: ["src/jquery.flagstrap.js"],
path: "src/jquery.flagstrap.js",
options: {
jshintrc: ".jshintrc",
reporterOutput: ""
}
},

// Minify definitions
uglify: {
my_target: {
src: ["dist/js/jquery.flagstrap.js"],
dest: "dist/js/jquery.flagstrap.min.js"
},
options: {
banner: "<%= meta.banner %>"
}
},

// watch for changes to source
// Better than calling grunt a million times
// (call 'grunt watch')
watch: {
files: ['src/*'],
tasks: ['default']
}

});

grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-watch");

grunt.registerTask("default", ["jshint", "concat", "uglify"]);

};
Loading