Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

npm dependencies for the build

  • Loading branch information...
commit 63cb7c422ca3602c1a8db0aef7f700d5a4889dcf 1 parent 73390f9
@johnbender johnbender authored
Showing with 29 additions and 3 deletions.
  1. +3 −0  .gitignore
  2. +6 −3 grunt.js
  3. +20 −0 package.json
View
3  .gitignore
@@ -13,3 +13,6 @@ tmp/
# branch preview
branches
+
+# node build dependencies
+node_modules
View
9 grunt.js
@@ -1,4 +1,5 @@
-/*global module:false*/
+var path = require( 'path' );
+
module.exports = function(grunt) {
// Project configuration.
@@ -13,6 +14,7 @@ module.exports = function(grunt) {
options: {
curly: true,
eqeqeq: true,
+
// (function(){})() seems acceptable
immed: false,
latedef: true,
@@ -65,8 +67,9 @@ module.exports = function(grunt) {
uglify: {}
});
- // Default task.
+ // set the default task.
grunt.registerTask('default', 'lint');
- grunt.loadTasks( 'build/tasks/' );
+ // load the project's default tasks
+ grunt.loadTasks( path.join('build', 'tasks') );
};
View
20 package.json
@@ -0,0 +1,20 @@
+{
+ "name": "jquery-mobile-build",
+ "description": "dependencies for the grunt based build",
+ "version": "0.0.1",
+ "scripts": {
+ "lint" : "grunt"
+ },
+ "main": "grunt.js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/jquery/jquery-mobile.git"
+ },
+ "dependencies": {
+ "grunt": "0.3.x",
+ "requirejs": "1.0.6"
+ },
+ "engine": {
+ "node": ">=6.0"
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.