mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-06 23:10:22 -05:00
updating the scripts for reacts package.json
This commit is contained in:
+1
-10
@@ -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,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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user