diff --git a/npm/react/circle.yml b/npm/react/circle.yml index 7c3c683094..ba1b33ff16 100644 --- a/npm/react/circle.yml +++ b/npm/react/circle.yml @@ -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 diff --git a/npm/react/docs/development.md b/npm/react/docs/development.md index b13aa607a3..1faabb91e0 100644 --- a/npm/react/docs/development.md +++ b/npm/react/docs/development.md @@ -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 diff --git a/npm/react/package.json b/npm/react/package.json index f7e313c989..a3b7638a0f 100644 --- a/npm/react/package.json +++ b/npm/react/package.json @@ -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",