WIP - add extractor, generate snippet_data
This commit is contained in:
59
node_modules/tinycolor2/Gruntfile.js
generated
vendored
Normal file
59
node_modules/tinycolor2/Gruntfile.js
generated
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
meta: {
|
||||
banner: '// TinyColor v<%= pkg.version %>\n' +
|
||||
'// https://github.com/bgrins/TinyColor\n' +
|
||||
'// <%= grunt.template.today("yyyy-mm-dd") %>, Brian Grinstead, MIT License\n'
|
||||
},
|
||||
|
||||
uglify: {
|
||||
options: {
|
||||
mangle: true,
|
||||
banner: '<%= meta.banner %>'
|
||||
},
|
||||
dist: {
|
||||
files: {
|
||||
'dist/tinycolor-min.js': ['tinycolor.js']
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
qunit: {
|
||||
all: ['test/index.html']
|
||||
},
|
||||
|
||||
|
||||
jshint: {
|
||||
options: {
|
||||
browser: true,
|
||||
sub: true,
|
||||
globals: {
|
||||
jQuery: true
|
||||
}
|
||||
},
|
||||
all: ['tinycolor.js']
|
||||
},
|
||||
|
||||
docco: {
|
||||
debug: {
|
||||
src: ['tinycolor.js'],
|
||||
options: {
|
||||
output: 'docs/'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-qunit');
|
||||
grunt.loadNpmTasks('grunt-docco');
|
||||
|
||||
grunt.registerTask('default', ['jshint', 'qunit']);
|
||||
grunt.registerTask('version-bump', ['jshint', 'qunit', 'uglify', 'docco']);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user