Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bower grunt support #1057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: dev
Choose a base branch
Loading
from
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
2 changes: 2 additions & 0 deletions 2 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ site
www
builder
jquerytools.github.com
node_modules
bower_modules

# patch
*.rej
Expand Down
73 changes: 73 additions & 0 deletions 73 Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
module.exports = function( grunt ) {
"use strict";

var srcHintOptions = grunt.file.readJSON( "src/.jshintrc" );

grunt.initConfig({
jshint: {
all: {
src: [
"src/**/*.js", "Gruntfile.js"
],
options: {
jshintrc: true
}
},
dist: {
src: "dist/jquery.tools.js",
options: srcHintOptions
}
},
build: {
all: {
dest: "dist/jquery.tools.js",
src: [
"src/**/*.js"
],
}
},
clean: {
all: {
src: "dist/*.js"
}
},
uglify: {
all: {
files: {
"dist/jquery.tools.min.js": [ "dist/jquery.tools.js" ]
},
options: {
preserveComments: false,
sourceMap: "dist/jquery.tools.min.map",
sourceMappingURL: "jquery.tools.min.map",
report: "min",
beautify: {
ascii_only: true
},
compress: {
hoist_funs: false,
loops: false,
unused: false
}
}
}
}
});

grunt.registerMultiTask("clean", "Removed Concatenated source files", function() {
this.filesSrc.forEach(function(filename){
grunt.file.delete(filename);
});
});

grunt.registerMultiTask("build", "Concatenate source files", function() {
var out = [];
this.filesSrc.forEach(function(filename){
out.push(grunt.file.read(filename));
});
grunt.file.write(this.data.dest, out.join('\n'));
});

require( "load-grunt-tasks" )( grunt );
grunt.registerTask( "default", [ "clean", "build", "jshint", "uglify" ] );
};
32 changes: 32 additions & 0 deletions 32 bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "jquerytools",
"version": "1.2.8",
"homepage": "http://jquerytools.org",
"description": "The missing UI library for the Web",
"main": "dist/jquery.tools.js",
"license": "None",
"keywords": [
"jquery",
"javascript",
"library"
],
"ignore": [
"**/.*",
"build",
"node_modules",
"bower_components",
"test",
"tests",
"*.md",
"AUTHORS.txt",
"Gruntfile.js",
"package.json",
"bower.json"
],
"dependencies": {
"jquery": "jQuery#~1.11"
},
"resolutions": {
"jquery": "~1.11"
}
}
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.