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
Lokesh Dhakar
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 Dhakar
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