Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Added node_modules and updated grunt file with more tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jul 23, 2012
1 parent 6f76e21 commit 2cf2aa0
Show file tree
Hide file tree
Showing 39 changed files with 10,460 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/basic/jquery.qtip.css
@@ -1,3 +1,3 @@
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-07-19
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-07-24
* http://craigsworks.com/projects/qtip2/
* Copyright (c) 2012 Craig Michael Thompson; Licensed MIT, GPL */
2 changes: 1 addition & 1 deletion dist/basic/jquery.qtip.js
@@ -1,4 +1,4 @@
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-07-19
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-07-24
* http://craigsworks.com/projects/qtip2/
* Copyright (c) 2012 Craig Michael Thompson; Licensed MIT, GPL */

Expand Down
2 changes: 1 addition & 1 deletion dist/comment
@@ -1 +1 @@
Fixed issue with non-poly shapes not correctly getting coordinates. Thanks sambowler.
Remove old Makefile system in favou of grunt.js and update documentation
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
@@ -1,4 +1,4 @@
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-07-19
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-07-24
* http://craigsworks.com/projects/qtip2/
* Copyright (c) 2012 Craig Michael Thompson; Licensed MIT, GPL */

Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.qtip.js
@@ -1,4 +1,4 @@
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-07-19
/*! qTip2 - Pretty powerful tooltips - v2.0.0 - 2012-07-24
* http://craigsworks.com/projects/qtip2/
* Copyright (c) 2012 Craig Michael Thompson; Licensed MIT, GPL */

Expand Down
33 changes: 24 additions & 9 deletions grunt.js
@@ -1,7 +1,8 @@
/*global module:false*/
module.exports = function(grunt) {
// Load grunt CSS helper
// Load grunt helpers
grunt.loadNpmTasks('grunt-css');
grunt.loadNpmTasks('grunt-clean');

// Project configuration.
grunt.initConfig({
Expand All @@ -28,7 +29,7 @@ module.exports = function(grunt) {
bgiframe: { js: 'src/bgiframe/bgiframe.js' }
},
clean: {

dist: 'dist/'
},
concat: {
basic: {
Expand Down Expand Up @@ -129,15 +130,29 @@ module.exports = function(grunt) {
// Update config
grunt.config.set('concat.dist.src', js.concat(['src/outro.js']));
grunt.config.set('concat.dist_css.src', css);
});

// Grab latest git commit message and output to "comment" file
grunt.registerTask('commitmsg', 'Output latest git commit message', function() {
var dist = grunt.file.expand(['dist']),
cmd = 'git log --pretty=format:\'%s\' -1 > ' + dist + '/comment';

require('child_process').exec(cmd, function(err, stdout, stderr){
grunt.file.write('dist/comment', gzipSrc.length);
});
});

// Output gzip file size task
grunt.registerTask('gzip', 'Calculate size of gzipped minified file', function() {
var src = grunt.file.read( grunt.config('min.dist.dest') ),
gzipSrc = grunt.helper('gzip', src);

// Clean up dist folder
grunt.helper.clean('dist/');
grunt.file.write('dist/gziplength', gzipSrc.length);
});

// Setup all other tasks
grunt.registerTask('css', 'init csslint concat:dist_css cssmin:dist');
grunt.registerTask('full', 'init lint csslint concat:dist concat:dist_css min:dist cssmin:dist');
grunt.registerTask('basic', 'init lint csslint concat:basic concat:basic_css min:basic cssmin:basic');
grunt.registerTask('default', 'full');
grunt.registerTask('dev', 'basic full');
grunt.registerTask('css', 'init clean csslint concat:dist_css cssmin:dist');
grunt.registerTask('basic', 'init clean lint csslint concat:basic concat:basic_css min:basic cssmin:basic');
grunt.registerTask('default', 'init clean lint csslint concat:dist concat:dist_css min:dist cssmin:dist');
grunt.registerTask('dev', 'init clean lint csslint concat min cssmin gzip commitmsg');
};
1 change: 1 addition & 0 deletions node_modules/.bin/grunt-clean

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/grunt-clean/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions node_modules/grunt-clean/LICENSE-MIT

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions node_modules/grunt-clean/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions node_modules/grunt-clean/bin/grunt-clean

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions node_modules/grunt-clean/grunt.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions node_modules/grunt-clean/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions node_modules/grunt-clean/tasks/clean.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions node_modules/grunt-clean/test/clean_test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/grunt-css/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions node_modules/grunt-css/LICENSE-MIT

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2cf2aa0

Please sign in to comment.