updating the scripts for reacts package.json

This commit is contained in:
Jessica Sachs
2021-02-11 12:39:04 -05:00
parent 075c50eff8
commit 7ca3ac8e61
3 changed files with 6 additions and 21 deletions
+1 -10
View File
@@ -11,23 +11,14 @@ workflows:
- cypress/install:
name: Install
executor: cypress/base-12
build: npm run transpile
build: yarn build
post-steps:
- run:
name: Show info 📺
command: npx cypress info
- run:
name: Linting code 🧹
command: npm run lint
- run:
name: Stop exclusive tests 1️⃣
command: npm run stop-only
- run:
name: Build folder 🏗
command: npm run build
- run:
name: Run unit tests 👷
command: npm run test:unit
- cypress/run:
name: Example A11y
+3 -8
View File
@@ -3,13 +3,8 @@
To get started with this repo, compile the plugin's code and the examples code
```shell
npm run transpile
npm run build
npm run cy:open
yarn build
yarn cy:open
```
- run TypeScript compiler in watch mode with `npx tsc -w`
- run Cypress with `npx cypress open` and select the spec you want to work with
- run Cypress with `yarn cy:open` and select the spec you want to work with
- edit `lib/index.ts` where all the magic happens
This library is published by CI automatically following semantic versioning
+2 -3
View File
@@ -10,10 +10,9 @@
"cy:open:debug": "NODE_OPTIONS=--max-http-header-size=1048576 node --inspect-brk ../../scripts/start.js --component-testing --project ${PWD}",
"cy:run": "node ../../scripts/cypress.js run-ct --project ${PWD}",
"cy:run:debug": "NODE_OPTIONS=--max-http-header-size=1048576 node --inspect-brk ../../scripts/start.js --component-testing --run-project ${PWD}",
"pretest": "yarn transpile",
"pretest": "yarn build",
"test": "yarn cy:run",
"transpile": "tsc",
"watch": "tsc -w"
"watch": "yarn build --watch"
},
"dependencies": {
"@babel/plugin-transform-modules-commonjs": "7.12.1",