Commit Graph
100 Commits
Author SHA1 Message Date
Lokesh Dhakar d955bb09da style: add new lines to EOFs 2023-02-28 13:59:41 -08:00
Lokesh Dhakar 20d3593422 build: resolve Quantize dep issue, upgrade Cypress 2023-02-27 15:30:44 -08:00
Lokesh Dhakar ef231c7113 build for 2.3.2 2020-07-05 21:30:58 -07:00
Lokesh Dhakar 7fd0b81da5 build 2020-07-05 21:27:42 -07:00
Lokesh DhakarandGitHub 818c00e00e Merge pull request #182 from wangcheng/wangcheng678-patch-1
use image naturalHeight and naturalHeight
2020-07-05 21:03:38 -07:00
Lokesh DhakarandGitHub 4858a208d7 Merge pull request #192 from lokesh/dev
dev -> master
2020-07-05 19:20:40 -07:00
Lokesh DhakarandGitHub ec776e60fb Merge pull request #191 from aaron-hanson/fix-quality-option-validation
Fix quality option validation, update npm script syntax, package-lock
2020-07-05 19:15:58 -07:00
Lokesh Dhakar 79a480d929 docs: Add more details info on running local tests 2020-07-05 19:05:32 -07:00
Lokesh Dhakar 1c70277219 docs: Remove dupe contributing.md content. Moved to readme 2019-08-25 19:21:32 -07:00
Lokesh DhakarandGitHub 7beac03d3a docs: Move Contributing.md content into README and add proj structure 2019-08-25 19:19:53 -07:00
Lokesh DhakarandGitHub 01fe8263b9 Update README.md 2019-08-25 19:10:45 -07:00
Lokesh DhakarandGitHub fb55143ec6 Merge pull request #168 from lokesh/use-let-const-where-approp
refactor: Use `let` and `const` instead of `var` where appropriate
2019-08-25 18:34:35 -07:00
Lokesh Dhakar adcd4099c8 refactor: Use let and const instead of var where appropriate 2019-08-25 18:32:48 -07:00
Lokesh Dhakar 07522f86d8 test: Fix cors test, typo 2019-08-25 18:29:35 -07:00
Lokesh Dhakar c9e6563a44 test: Add test for CORS 2019-08-24 18:59:26 -07:00
Lokesh Dhakar 29e96fe72b docs: Point readme readers to demo page 2019-08-22 21:28:48 -07:00
Lokesh Dhakar a0e9b772d9 code: Remove unused vars and add missing semis 2019-08-08 21:38:31 -07:00
Lokesh Dhakar a5c5d76a17 docs: Remove note about buggy return count. It's been fixed. 2019-08-04 10:02:01 -07:00
Lokesh DhakarandGitHub c35bc016fa docs: Add syntax highlighting 2019-08-04 10:00:34 -07:00
Lokesh Dhakar 78d23803b6 docs: Update docs to show diff import methods and call out null2 fork diff
- Show example of using in node
- Show example of using in browser: global var, es6 module, and mention requirejs
2019-08-04 09:56:39 -07:00
Lokesh Dhakar 043d653078 release: v2.3.0 2019-08-04 08:52:14 -07:00
Lokesh DhakarandGitHub a80876264f Merge pull request #165 from lokesh/dist-folder-cleanup
build: `/dist` folder cleanup
2019-08-03 23:26:28 -07:00
Lokesh Dhakar a928f09b3d chore: Updated dist files and removing old sourcemap files 2019-08-03 23:24:54 -07:00
Lokesh Dhakar 881b4848ad build: Remove color-thief-node.js file. Already had color-thief.js for commonjs version 2019-08-03 23:24:21 -07:00
Lokesh Dhakar c8d91d8d69 build: Don't output sourcemaps 2019-08-03 23:21:28 -07:00
Lokesh Dhakar 9420530b37 chore: Remove node.js test file. Replaced with tests. 2019-08-03 23:20:25 -07:00
Lokesh DhakarandGitHub adc11f621a Merge pull request #164 from lokesh/dev-node
add: Node support and testing
2019-08-03 23:12:32 -07:00
Lokesh Dhakar 3e992dc368 test: Add node tests with Mocha and Chai 2019-08-03 23:10:04 -07:00
Lokesh Dhakar 4b78380823 wip: Update asycn.html test page. Needs further work 2019-08-03 23:09:44 -07:00
Lokesh Dhakar 85d197baf5 build: Package core functions in ct-node for now. No build process. Revisit post release 2019-08-03 23:09:08 -07:00
Lokesh Dhakar 8f65625135 build: Latest dist files 2019-08-03 23:08:29 -07:00
Lokesh Dhakar bd7b05bda7 build: Copy node file to dist folder 2019-08-03 23:08:09 -07:00
Lokesh Dhakar ec98c39d42 fix: Remove node req from package.json 2019-07-22 07:31:54 -07:00
Lokesh Dhakar 2aa036737a test: Remove bad test case, colorcount(1) 2019-07-21 23:04:48 -07:00
Lokesh Dhakar 8236c9d71f refactor: Move validation logic to core 2019-07-21 22:58:43 -07:00
Lokesh Dhakar e9b323a6b2 refactor: Exploring idea of shared core lib 2019-07-21 21:54:25 -07:00
Lokesh Dhakar 71e007c1ec chore: Updated dist files 2019-07-21 18:57:49 -07:00
Lokesh Dhakar 695f73a5b7 fix: Use umd file for index.html testing. When running watch, the .min file doesn't get updated. Harder to test. 2019-07-21 18:57:40 -07:00
Lokesh Dhakar d527157d56 chore: Add get-pixels and quantize to deps list 2019-07-21 18:55:38 -07:00
Lokesh Dhakar 3e6de37ce7 test: Enable other palette count tests post-quantize func updates 2019-07-21 18:55:11 -07:00
Lokesh Dhakar c147abf7e7 refactor: Import quantize lib from repo 2019-07-21 18:54:27 -07:00
Lokesh Dhakar 4112ec46b1 refactor: Create sep repo for quantize lib and import 2019-07-21 18:54:04 -07:00
Lokesh Dhakar 658b6cbed4 feat: Node support via color-thief-node.js using get-pixel lib 2019-07-21 10:17:26 -07:00
Lokesh Dhakar f0ae4e6a6b chore: Update lock file and sourcemap files 2019-07-14 20:11:27 -07:00
Lokesh DhakarandGitHub 0d6045687d Merge pull request #161 from lokesh/add-module-support
feat: Add CommonJS, AMD, and ES6 module support
2019-07-14 20:07:01 -07:00
Lokesh Dhakar c91f3e808e feat: Add module support with new dist files
- `/dist/color-thief.umd.js`: UMD module. For simple script tag loading that exposes a global variable or for RequireJS AMD support.
- `/dist/color-thief.js`: CommonJS module. Entry point for Node.js and Browserify.
- `/dist/color-thief.mjs`: ES6 module. For modern browsers as well as Webpack and Rollup.
- `/dist/color-thief.min.js`: Duplicate of `/dist/color-thief.umd.js`. Kept around to maintain backwards compatibility.
2019-07-14 20:00:27 -07:00
Lokesh Dhakar 2708113d10 chore: Upgrade cypress dep 2019-07-14 10:12:19 -07:00
Lokesh Dhakar 6f5c2c8d7d chore: Rename project in package.json to colorthief from color-thief. Former is taken by null2. 2019-07-14 09:46:15 -07:00
Lokesh Dhakar 9a1f39b216 build: v2.1.0 2019-07-14 09:32:13 -07:00
Lokesh DhakarandGitHub 654ae6ae66 Merge pull request #160 from lokesh/dev
chore: Merging dev into master for minor release v2.1
2019-07-14 09:30:40 -07:00
Lokesh DhakarandGitHub 18ccfb4cff Merge pull request #159 from lokesh/docs-cypress-test
docs: Info on adding Cypress browser tests
2019-07-14 09:28:28 -07:00
Lokesh Dhakar e9829f6514 docs: Info on adding Cypress browser tests 2019-07-14 09:27:49 -07:00
Lokesh DhakarandGitHub d957f73e6f Merge pull request #158 from lokesh/feat-demo-page
feat: Demo page
2019-07-14 09:21:30 -07:00
Lokesh Dhakar a271686ab9 fix: Test tpl using wrong elapsedTime var 2019-07-14 09:19:57 -07:00
Lokesh Dhakar b41cd65747 feat: Add demo page back index.html 2019-07-14 09:19:41 -07:00
Lokesh DhakarandGitHub ced6b5300d Merge pull request #157 from lokesh/test-folder-refactor
refactor: Move test files into cypress+
2019-07-14 08:41:59 -07:00
Lokesh Dhakar 44d7870641 chore: Add license to package.json and use mustache from node_modules 2019-07-14 08:39:50 -07:00
Lokesh Dhakar 3e7554b321 refactor: Move test demo page and assets into cypress folder 2019-07-14 08:38:57 -07:00
Lokesh Dhakar 50df0f30ef chore: Update node version in nvmrc 2019-07-14 08:38:18 -07:00
Lokesh DhakarandGitHub e8dc8e1670 Merge pull request #151 from lokesh/add-eslint
style: Add eslint
2019-05-26 22:16:31 -07:00
Lokesh Dhakar f31f148e0a style: Fixing var declarations and aligning to eslint rules 2019-05-26 22:13:05 -07:00
Lokesh Dhakar d82f147343 style: Add eslint 2019-05-26 22:12:17 -07:00
Lokesh DhakarandGitHub 47cdb18e14 Merge pull request #150 from lokesh/dont-append-dom
refactor: Dont append canvas tag to DOM
2019-05-26 20:34:15 -07:00
Lokesh Dhakar a921953d1a refactor: Don't append canvas to DOM 2019-05-26 20:31:37 -07:00
Lokesh Dhakar b61e6406a1 refactor: Remove console log from demo js 2019-05-26 20:30:33 -07:00
Lokesh Dhakar 9cea24a6bf refactor: Remove unused canvas methods 2019-05-26 20:28:38 -07:00
Lokesh Dhakar 20c33cc3bb chore: Upgrade Cypress and docs on how to run tests 2019-05-25 19:18:34 -07:00
Lokesh Dhakar 7a4e672b8c test: Add getPalette() tets 2019-05-02 09:04:23 -07:00
Lokesh Dhakar eef8742c0b docs: Add palette count calls to example page 2019-05-02 08:43:05 -07:00
Lokesh Dhakar fed4154d29 docs: Add API table 2019-05-02 08:23:32 -07:00
Lokesh Dhakar eb38ecf0dc chore: Update npm dev task to ref http-server in local node_modules 2019-05-02 08:23:15 -07:00
Lokesh DhakarandGitHub fa0ada7c33 Merge pull request #146 from lokesh/add-tests
Add Cypress tests
2019-05-02 07:47:45 -07:00
Lokesh Dhakar 8e77715d5d Add tests: getColor on black, red, color, transparent, white image 2019-04-29 08:24:09 -07:00
Lokesh Dhakar 2ffa707ae0 Cleanup: remove unused jquery, tabs to spaces 2019-04-28 22:10:32 -07:00
Lokesh Dhakar e251daa01f Update demo code to be test specific. Remove jQuery 2019-04-28 21:12:48 -07:00
Lokesh Dhakar 621ae20cd3 Discontinue using SASS. Simplify CSS for test page 2019-04-28 21:12:26 -07:00
Lokesh Dhakar 2563e20099 Strip example page. Simplify for test cases 2019-04-28 21:11:29 -07:00
Lokesh Dhakar 43d8a74e6d wip tests: api spec stub, add test image 2019-04-28 21:10:58 -07:00
Lokesh Dhakar f63d533d65 Add more example images for testing 2019-04-28 19:36:28 -07:00
Lokesh Dhakar 42da5347b2 Fix color-thief version. Accidentally bumped prev 2019-04-28 14:07:51 -07:00
Lokesh Dhakar 5fbe83db15 Discontinue support for Bower 2019-04-28 14:07:39 -07:00
Lokesh Dhakar 7fb3680a92 Remove unused lint config files 2019-04-28 14:07:30 -07:00
Lokesh Dhakar e2db15e67a remove DEPLOY.md 2019-04-28 14:05:38 -07:00
Lokesh Dhakar b94c175a7a Move deploy notes to contributing.md 2019-04-28 14:05:23 -07:00
Lokesh DhakarandGitHub 4f980ae788 Merge pull request #145 from lokesh/replace-grunt
Replace Grunt and use npm tasks
2019-04-28 14:01:53 -07:00
Lokesh Dhakar e0ff746a2d Switch to uglify-es for minification 2019-04-28 13:59:49 -07:00
Lokesh Dhakar 9a4443097c Replace Grunt w/node deps: http-server, node-minify, uglify 2019-04-28 13:58:49 -07:00
Lokesh Dhakar dadaba619a testing: Remove Cypress examples 2019-04-27 23:00:07 -07:00
Lokesh Dhakar 2b04a97f79 add: editorconfig 2019-04-27 22:59:45 -07:00
Lokesh Dhakar f319e54b19 Add Cypress dep for testing 2019-04-27 20:52:10 -07:00
Lokesh Dhakar 105c888e73 Add node engine req to package.json 2019-04-27 20:51:13 -07:00
Lokesh Dhakar 9cf5e33ecd Add nvmrc file 2019-04-27 20:50:53 -07:00
Lokesh DhakarandGitHub 0951178b1b Merge pull request #136 from nbwsc/master
fix a bug in VBOX.contains
2019-04-22 21:04:15 -07:00
Lokesh DhakarandGitHub 4f0acc1759 Merge pull request #143 from ajmeese7/master
Implemented detectmobilebrowsers
2019-04-22 21:01:50 -07:00
Lokesh DhakarandGitHub d05ec978b0 Merge pull request #81 from ibobo/master
Fixed getColor description in README
2016-11-06 18:36:35 -08:00
Lokesh DhakarandGitHub b011513147 Merge pull request #57 from mhahmadi/mhahmadi_fix_getpalette_validation
fixes #56
2016-11-06 15:41:06 -08:00
Lokesh DhakarandGitHub 5d1b4d0dc6 Merge pull request #99 from ali-bugdayci/master
Fix the 'ReferenceError: index is not defined' for the index variable
2016-11-06 15:38:36 -08:00
Lokesh DhakarandGitHub 28f22b97d1 Merge pull request #103 from patrickkeenan/master
cross-domain and url
2016-11-06 15:35:24 -08:00
Lokesh Dhakar e1908027bf JS listing rules. Not currently used 2016-10-30 20:24:05 -07:00
Lokesh Dhakar 65fc4c26b5 Cleaned up gruntfile and am considering js lint 2016-10-30 20:23:54 -07:00