-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 🧪 release (feat: wip, introduce "respect") (#1922)
* feat: add respect to cli * chore: prettier * chore: changes to e2e and rename to respect-core * feat: remove respect auth * fix: add ignored module * chore: add files * fix: type issue in utils * fix: update all e2e tests * chore: renaming * chore: fix and simplify go-to logic * chore: fix lint and unit tests * chore: fix e2e for new goto * chore: fix scripts to support respect-core * fix parser:generate * chore: rename ResultObject type * chore: remove todos * chore: sync package-lock * chore: fix some lint errors * chore: add secret * chore: prettier fix * chore: add abnf-parser to prettierignore * chore: publish respect-core snaphot to npm * chore: comment ignored e2e snapshot and update regexp * fix: update cert regexp * chore: try fixing publish and yarn smokes * chore: try fixing publish * chore: try fixing publish and remove smokes for node 14 and 16 * chore: fix docker smoke test * chore: improve README and CONTRIBUTING files * fix: cookies from workflows and step are not set to the request (#1918) * chore: update respect command handler (#1920) * fix: the $file decorator resolves wrong path to the file (#1921) --------- Co-authored-by: DmitryAnansky <[email protected]> Co-authored-by: Roman Hotsiy <[email protected]> Co-authored-by: Andrew Tatomyr <[email protected]>
- Loading branch information
1 parent
84a6252
commit 253cb84
Showing
313 changed files
with
122,191 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ output/ | |
*.tgz | ||
redoc-static.html | ||
packages/cli/README.md | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,20 @@ | ||
FROM node:alpine | ||
|
||
WORKDIR /build | ||
|
||
# Copy files required for npm install only | ||
COPY package.json package-lock.json /build/ | ||
COPY packages/cli/package.json /build/packages/cli/ | ||
COPY packages/core/package.json /build/packages/core/ | ||
COPY packages/cli/bin/ /build/packages/cli/bin/ | ||
|
||
RUN npm ci --no-optional --ignore-scripts | ||
|
||
# Copy rest of the files | ||
COPY . /build/ | ||
RUN npm run prepare | ||
|
||
# Install redocly-cli globally, similar to npm install --global @redocly/cli | ||
# but the local package is used here | ||
RUN apk update && apk add jq && \ | ||
apk add git && \ | ||
COPY . . | ||
RUN apk add --no-cache jq git && \ | ||
npm ci --no-optional --ignore-scripts && \ | ||
npm run prepare && \ | ||
npm run pack:prepare && \ | ||
npm install --global redocly-cli.tgz | ||
|
||
# npm pack in the previous RUN command does not include these assets | ||
RUN cp packages/cli/src/commands/preview-docs/preview-server/default.hbs /usr/local/lib/node_modules/@redocly/cli/lib/commands/preview-docs/preview-server/default.hbs && \ | ||
cp packages/cli/src/commands/preview-docs/preview-server/hot.js /usr/local/lib/node_modules/@redocly/cli/lib/commands/preview-docs/preview-server/hot.js && \ | ||
cp packages/cli/src/commands/build-docs/template.hbs /usr/local/lib/node_modules/@redocly/cli/lib/commands/build-docs/template.hbs | ||
|
||
# Clean up to reduce image size | ||
RUN npm cache clean --force && rm -rf /build | ||
npm install --global redocly-cli.tgz && \ | ||
cp packages/cli/src/commands/preview-docs/preview-server/default.hbs \ | ||
packages/cli/src/commands/preview-docs/preview-server/hot.js \ | ||
/usr/local/lib/node_modules/@redocly/cli/lib/commands/preview-docs/preview-server/ && \ | ||
cp packages/cli/src/commands/build-docs/template.hbs \ | ||
/usr/local/lib/node_modules/@redocly/cli/lib/commands/build-docs/ && \ | ||
# Clean up to reduce image size | ||
npm cache clean --force && rm -rf /build | ||
|
||
WORKDIR /spec | ||
|
||
ENTRYPOINT [ "redocly" ] | ||
|
||
ENTRYPOINT ["redocly"] | ||
ENV REDOCLY_ENVIRONMENT=docker |
Oops, something went wrong.