Commit Graph

179 Commits

Author SHA1 Message Date
archaeal
0e4abc143b fixes npm build script syntax, builds latest dist, adds sourcemap file for the umd version 2020-06-26 17:27:43 -05:00
archaeal
bce5abde01 adds identical quality option fix to color-thief-node.js 2020-06-26 16:56:23 -05:00
archaeal
adabfc524a simplifies quality option validation to a single if statement 2020-06-26 16:26:52 -05:00
archaeal
2789b88c17 fixes validation of quality option
- fixes https://github.com/lokesh/color-thief/issues/180
2020-06-26 16:15:59 -05:00
archaeal
f3f20173ac fixes npm script command syntax 2020-06-26 16:09:28 -05:00
archaeal
c7eeb6e393 updates package-lock's version of colorthief and commit hash for quantize 2020-06-26 16:06:46 -05:00
archaeal
b1008f6e5d adds .idea folder (IntelliJ IDE settings) to .gitignore 2020-06-26 16:05:22 -05:00
Lokesh Dhakar
1c70277219 docs: Remove dupe contributing.md content. Moved to readme 2019-08-25 19:21:32 -07:00
Lokesh Dhakar
7beac03d3a docs: Move Contributing.md content into README and add proj structure 2019-08-25 19:19:53 -07:00
Lokesh Dhakar
01fe8263b9 Update README.md 2019-08-25 19:10:45 -07:00
Lokesh Dhakar
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 Dhakar
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 Dhakar
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 Dhakar
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 Dhakar
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 Dhakar
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 Dhakar
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