Commit Graph

137 Commits

Author SHA1 Message Date
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
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 Dhakar
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 Dhakar
0951178b1b Merge pull request #136 from nbwsc/master
fix a bug in VBOX.contains
2019-04-22 21:04:15 -07:00