Skip to content

Commit

Permalink
Add a command to generate reference screenshot images
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhry committed Nov 12, 2017
1 parent cd8fc17 commit 426a0e3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
13 changes: 7 additions & 6 deletions README.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ import CircleType from `circletype`;

## Development Commands

| Command | Description |
|:-------------------|:------------------------------|
| `npm run dev` | Start dev server |
| `npm start` | Build for release |
| `npm test` | Run unit and screenshot tests |
| `npm run docs` | Generate documentation |
| Command | Description |
|:------------------------|:----------------------------------|
| `npm run dev` | Start dev server |
| `npm start` | Build for release |
| `npm test` | Run unit and screenshot tests |
| `npm run docs` | Generate documentation |
| `npm run reference` | Generate reference screenshots |
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ circleType.destroy();

## Development Commands

| Command | Description |
|:-------------------|:------------------------------|
| `npm run dev` | Start dev server |
| `npm start` | Build for release |
| `npm test` | Run unit and screenshot tests |
| `npm run docs` | Generate documentation |
| Command | Description |
|:------------------------|:----------------------------------|
| `npm run dev` | Start dev server |
| `npm start` | Build for release |
| `npm test` | Run unit and screenshot tests |
| `npm run docs` | Generate documentation |
| `npm run reference` | Generate reference screenshots |
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"scripts": {
"dev": "webpack-dev-server --open",
"start": "eslint src && npm t && npm run docs && webpack -p",
"test": "jest src --notify && docker run -w /usr/data -v \"$PWD\":/usr/data tenjaa/java-chrome-nodejs npm run backstop",
"backstop": "backstop test",
"test": "jest src --notify && docker run -w /usr/data -v \"$PWD\":/usr/data tenjaa/java-chrome-nodejs npm run backstop-test",
"reference": "docker run -w /usr/data -v \"$PWD\":/usr/data tenjaa/java-chrome-nodejs npm run backstop-reference",
"backstop-test": "backstop test",
"backstop-reference": "backstop reference",
"docs": "jsdoc2md --template README.hbs --files src/class.js > README.md"
},
"keywords": [
Expand Down

0 comments on commit 426a0e3

Please sign in to comment.