mirror of
https://github.com/janishutz/color-thief.git
synced 2025-11-25 13:54:25 +00:00
chore: Upgrade Cypress and docs on how to run tests
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
## How to make a release and deploy
|
||||
## Running tests
|
||||
|
||||
Run Cypress integration tests in Chrome browser.
|
||||
|
||||
- `npm run dev` to start local server.
|
||||
- `npm run test`
|
||||
|
||||
## Making a new release
|
||||
|
||||
- Update version number in `src/color-thief.js` and `package.json`
|
||||
- Run `npm run build`
|
||||
|
||||
448
package-lock.json
generated
448
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -29,14 +29,14 @@
|
||||
],
|
||||
"scripts": {
|
||||
"build": "node ./build/build.js",
|
||||
"dev": "./node_modules/http-server/bin/http-server/",
|
||||
"dev": "./node_modules/http-server/bin/http-server",
|
||||
"test": "./node_modules/.bin/cypress open"
|
||||
},
|
||||
"main": "dist/color-thief.min.js",
|
||||
"devDependencies": {
|
||||
"@node-minify/core": "^4.0.5",
|
||||
"@node-minify/uglify-es": "^4.0.5",
|
||||
"cypress": "^3.2.0",
|
||||
"cypress": "^3.3.1",
|
||||
"http-server": "^0.11.1"
|
||||
},
|
||||
"engines": {
|
||||
|
||||
Reference in New Issue
Block a user