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
Lokesh Dhakar
e9829f6514
docs: Info on adding Cypress browser tests
2019-07-14 09:27:49 -07:00
Lokesh Dhakar
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 Dhakar
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 Dhakar
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