Redocly Developer Portal
npm install @redocly/developer-portal```
$: npm install
``
$: npm start
- modify package.json by adding to scripts -> test -> PERCY_TOKEN=\
- run server npm run start-test-servernpm run test
- run tests
Add label run_tests_cypress to the PR. It starts running cypress tests.
---
- ### To publish stage verdaccio on EC2 (for dependency testing)
1. Change version in package.json to something meaningful and unique, like 1.1.0-beta.94-verify-fixnpm i
2. npm run build
3. [Optional] Run to verify that your Portal version is workingnpm run prepublishOnly
4. npm publish --registry http://[registry address]
5.
- ### To publish local verdaccio
1. Install local verdaccio. docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
It has an official docker image you can use, and in most cases, the default configuration is good enough:package.json
2. Change version in to something meaningful and unique, like 1.1.0-beta.94-verify-fixnpm i
3. npm run build
4. [Optional] Run to verify that your Portal version is workingnpm run prepublishOnly
5. npm publish --registry http://0.0.0.0:4873
6.
- ### Usage of published Portal version (starter, marketing, ....)
1. Update dependencies in package.json with your published @redocly/developer-portal versionyarn install --registry http://[registry address]
2. for staging or yarn install --registry http://0.0.0.0:4873` for local env
---