Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

v3.0.0/colors (deprecated) #88

Closed
wants to merge 6 commits into from
Closed
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Thumbs.db
/ignore/
/ignored/
/node_modules/
/bower_components/
/nbproject/
/.idea/
/temp/
static_server.js
*.php
18 changes: 0 additions & 18 deletions .jshintrc

This file was deleted.

70 changes: 18 additions & 52 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';
module.exports = function(grunt) {

grunt.initConfig({
recess: {
dist: {
Expand All @@ -26,49 +25,30 @@ module.exports = function(grunt) {
}
}
},
jshint: {
options: {
jshintrc: '.jshintrc'
},
files: [
'Gruntfile.js',
'src/js/commits.js',
'src/js/docs.js',
'dist/js/*.js'
]
},
jsbeautifier: {
htmlFiles: ['index.html'],
srcFiles: ['src/js/*.js'],
distFiles: ['dist/js/bootstrap-colorpicker.js']
},
combine: {
dist: {
input: 'src/js/colorpicker.js',
output: 'dist/js/bootstrap-colorpicker.js',
tokens: [{
token: "'{{color}}';",
file: 'src/js/colorpicker-color.js',
}]
}
files: ['Gruntfile.js', 'src/js/*.js']
},
uglify: {
dist: {
distMin: {
options: {
compress: true,
beautify: false
},
files: {
'dist/js/bootstrap-colorpicker.min.js': [
'dist/js/bootstrap-colorpicker.js'
'src/js/colorpicker.js'
]
}
}
},
bake: {
options: {
condense: true,
indent: 4
},
dist: {
options: {
compress: false,
beautify: true
},
files: {
'index.html': ['src/docs.html']
'dist/js/bootstrap-colorpicker.js': [
'src/js/colorpicker.js'
]
}
}
},
Expand All @@ -83,18 +63,11 @@ module.exports = function(grunt) {
files: [
'src/js/*.js'
],
tasks: ['jsbeautifier:srcFiles', 'combine', 'jsbeautifier:distFiles', 'uglify', 'jshint']
},
html: {
files: [
'src/*.html'
],
tasks: ['bake', 'jsbeautifier:htmlFiles']
tasks: ['uglify']
}
},
clean: {
dist: [
'index.html',
'dist/css',
'dist/js/*.js'
]
Expand All @@ -103,27 +76,20 @@ module.exports = function(grunt) {

// Load tasks
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-bake');
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-jsbeautifier');
grunt.loadNpmTasks('grunt-combine');

// Register tasks
grunt.registerTask('default', [
'clean',
'recess',
'jsbeautifier:srcFiles',
'combine',
'jsbeautifier:distFiles',
'uglify',
'bake',
'jsbeautifier:htmlFiles'
'jsbeautifier',
'uglify'
]);
grunt.registerTask('dev', [
'watch'
]);

};
};
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bootstrap Colorpicker 2.0
# Bootstrap Colorpicker 3.0

[![Build Status](https://travis-ci.org/mjolnic/bootstrap-colorpicker.png)](https://travis-ci.org/mjolnic/bootstrap-colorpicker)

Expand All @@ -8,12 +8,10 @@ Read the documentation [here](http://mjolnic.github.io/bootstrap-colorpicker/)

## Contributing

* All the sources are compiled using Grunt, please do not modify dist files directly
* If you modify some source code, please recompile the project dist files
* Check that the index.html demos aren't broken (modify if necessary)
* You may need to install the dependencies using bower
* All the sources are compiled using Grunt, please do not modify dist/* files directly
* If you modify the source code, please run grunt before commit
* Check that the index.html demos aren't broken
* Test your code at least in Chrome, Firefox and IE >= 9

Thanks =)

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/mjolnic/bootstrap-colorpicker/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

21 changes: 11 additions & 10 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "mjolnic-bootstrap-colorpicker",
"version": "v2.0.0-rc",
"version": "3.0.0",
"dependencies": {
"jquery": "^1.10",
"bootstrap": "^2"
"jquery": "^2.1",
"bootstrap": ">=3",
"tinycolor": ">=1.1"
},
"ignore": [
"\\.*",
"/src",
"index.html",
"/package.json",
"/Gruntfile.js"
]
"ignore": [
"\\.*",
"/src",
"index.html",
"/package.json",
"/Gruntfile.js"
]
}
Loading