Skip to content

Commit

Permalink
fix: Typos in README, proper env variables for prePublish command.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjdestigter committed Oct 9, 2020
1 parent 9d87473 commit ab7d198
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ Clone or fork this repository and run:
#: npm test
```

Running `npm install` will install both the dependencies in of project as well as those of the example project in `./examples`.
Running `npm install` will install both the dependencies of this project as well as those of the example project in `./examples`.

Running `npm test` will:
Running `CI=true && NODE_ENV=production npm test` will:

1. Build the project
2. `cd` into the project folder and
3. `run`npm run e2e` in the example project which will
4. Build the project (`npm run build`)
5. Perform the example end-to-end test.

You can also start up the example ReactJS project in development mode running at localhost:3000 and just run `npm test` in the root of the project.

The example test configuration can be found in [`./examples/xstate-marionettist-example/src/apps/auth/auth.e2e.ts`](examples/xstate-marionettist-example/src/apps/auth/auth.e2e.ts)

## Installation and project implementation
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"test": "npm run build && cd examples/xstate-marionettist-example && npm run e2e",
"build:declaration": "tsc --build ./tsconfig.dec.json",
"prepare": "cd examples/xstate-marionettist-example && npm install",
"prepublishOnly": "npm test"
"prepublishOnly": "CI=true NODE_ENV=production npm test"
},
"files": [
"dist"
Expand Down

0 comments on commit ab7d198

Please sign in to comment.