Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v4.0 #276

Merged
merged 77 commits into from
Jul 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
104c899
chore: Bump @types/lodash from 4.14.133 to 4.14.134
dependabot-preview[bot] Jun 17, 2019
07cf1fc
chore: Bump ts-node from 8.1.0 to 8.3.0
dependabot-preview[bot] Jun 17, 2019
eef7a8c
chore: Bump tslint from 5.16.0 to 5.17.0
dependabot-preview[bot] Jun 17, 2019
abe76ba
chore: Bump @oclif/plugin-help from 2.1.6 to 2.2.0
dependabot-preview[bot] Jun 17, 2019
d1b90c1
fix: Bump @stoplight/types from 5.1.2 to 7.0.1 (#224)
dependabot-preview[bot] May 23, 2019
90364c1
fix: upgrade ref resolver (#225)
XVincentX May 23, 2019
b208dfc
chore: Bump yaml from 1.5.1 to 1.6.0
dependabot-support May 24, 2019
69a5341
fix: invalid-ref error (#228)
P0lip May 24, 2019
f0e11ff
chore: [Security] Bump tar from 2.2.1 to 2.2.2
dependabot-preview[bot] May 24, 2019
a5eb169
chore: Bump @types/node from 12.0.2 to 12.0.3
dependabot-preview[bot] May 29, 2019
d993a8e
chore: Bump typescript from 3.4.5 to 3.5.1
dependabot-preview[bot] May 30, 2019
1f32217
chore: Bump @stoplight/types from 7.0.1 to 7.1.0
dependabot-preview[bot] May 30, 2019
bb98384
fix: escape dot in example.com match pattern (#246)
P0lip Jun 4, 2019
713dc28
docs: update readme file SO-250
Jun 7, 2019
8c74ff3
chore: bump fs-extra (#252)
P0lip Jun 10, 2019
0032dc5
chore: Bump @types/node from 12.0.3 to 12.0.7
dependabot-preview[bot] Jun 10, 2019
b1d49a7
fix(pattern.ts): enable use of regex flags for pattern in ruleset fil…
arno-di-loreto Jun 14, 2019
e7f1ae5
feat: implement quiet switch (#260)
P0lip Jun 17, 2019
c79691d
feat: switch to more lightweight jsonpath pkg
marbemac Jun 17, 2019
62e1fb1
chore: defensive try/catch just in case
marbemac Jun 17, 2019
a9d29eb
chore: update how deps are pegged
marbemac Jun 17, 2019
7fc2391
feat: remove maxResults flag
P0lip Jun 17, 2019
b5028a2
chore: avoid accidental majors
Jun 17, 2019
f041b20
chore: Bump @stoplight/types from 5.1.2 to 9.0.2
dependabot-preview[bot] Jun 17, 2019
c1e0840
feat: add default resolvers (#245)
Jun 18, 2019
7945deb
chore: Bump jest-when from 2.4.0 to 2.6.0
dependabot-preview[bot] Jun 24, 2019
4085542
chore: Bump @types/node from 12.0.8 to 12.0.10
dependabot-preview[bot] Jun 25, 2019
cd7ea1c
docs: config file (#270)
Jun 26, 2019
f7d8dc7
chore: Bump @oclif/command from 1.5.14 to 1.5.15
dependabot-preview[bot] Jun 25, 2019
bcc90c1
chore: Bump tslint from 5.17.0 to 5.18.0
dependabot-preview[bot] Jun 26, 2019
51ec77b
add quiet flag to readme (#273)
tbarn Jun 26, 2019
bed08cd
chore: Upload artifacts on release (#274)
XVincentX Jun 27, 2019
ecfe88c
feat: use latest openapi v3.0 metaschema (#275)
Jun 28, 2019
af12074
Release only when a tag is published (#277)
XVincentX Jun 28, 2019
4bf8e42
feat: incorporate better-ajv-errors (#265)
P0lip Jul 1, 2019
386adb8
chore: Bump @semantic-release/exec from 3.3.3 to 3.3.5
dependabot-preview[bot] Jul 1, 2019
27fe35c
chore: Bump @types/lodash from 4.14.134 to 4.14.135
dependabot-preview[bot] Jul 1, 2019
6e57ee2
chore: Bump @stoplight/json-ref-resolver from 2.0.0 to 2.0.1
dependabot-preview[bot] Jul 1, 2019
90a0864
feat: process referenced files (#271)
P0lip Jul 3, 2019
0cbcbb7
chore: Bump fs-extra from 8.0.1 to 8.1.0
dependabot-preview[bot] Jul 3, 2019
bf107ed
feat(rulesets): renamed enabled to recommended (#285)
Jul 3, 2019
46eedeb
release: fixes (#289)
XVincentX Jul 5, 2019
2a268e2
fix: detect version number before creating the binary (#290)
XVincentX Jul 5, 2019
b6134d4
feat: docker image publishing (#291)
XVincentX Jul 5, 2019
efaf712
feat: different ruleset extending (#232)
P0lip Jul 5, 2019
51067b7
fix: add bin directory (#292)
XVincentX Jul 5, 2019
64b1f33
fix: rename rules.json to index.json (#294)
P0lip Jul 5, 2019
9835303
test: nuke snapshots (#296)
P0lip Jul 5, 2019
3eb4809
Adding in templates for story and task (#293)
Jul 5, 2019
d4b2e75
feat: remove deprecated IRule & IRuleResult summary property (#297)
P0lip Jul 5, 2019
1a8a8b9
fix: rule with human-readable severity should be considered as valid …
P0lip Jul 5, 2019
6ba3217
refactor: unify config and ruleset naming (#300)
P0lip Jul 7, 2019
20530c3
Create azure-pipelines.yml (#334)
XVincentX Jul 7, 2019
170cc0e
fix: use our fork of better-ajv-errors (#336)
P0lip Jul 8, 2019
2d9d8fd
test: run tests on develop branch (#337)
XVincentX Jul 8, 2019
4307a0c
test: run Spectral tests in browser on CI (#284)
P0lip Jul 8, 2019
59d929b
test: skip (#338)
XVincentX Jul 8, 2019
57eccf1
chore: Bump ajv from 6.10.0 to 6.10.1 (#339)
dependabot-preview[bot] Jul 8, 2019
6a4cd7e
feat: offload docker image creation to dockerhub (#343)
XVincentX Jul 8, 2019
3ede247
feat(cli): remove --max-results flag (#345)
P0lip Jul 8, 2019
58a9674
test(lint): revert previous assertion (#346)
P0lip Jul 8, 2019
1317aed
chore: Bump @types/node from 12.0.10 to 12.6.0
dependabot-preview[bot] Jul 8, 2019
f49b183
chore: Bump lint-staged from 9.0.2 to 9.1.0
dependabot-preview[bot] Jul 8, 2019
8d1b4d1
feat: include recomended rules by default (#301)
P0lip Jul 9, 2019
fee9744
Merge branch 'master' into release/4.0
XVincentX Jul 9, 2019
cb04773
Merge latest master in develop (#348)
XVincentX Jul 9, 2019
72a598d
docs: SVG for the readme and a quick go at cli (#299)
Jul 9, 2019
05ce708
fix: copy rulesets to main directory (#352)
XVincentX Jul 9, 2019
0f1f547
Merge branch 'develop' into release/4.0
XVincentX Jul 9, 2019
92acf17
fix: remove file
XVincentX Jul 9, 2019
3b87820
build: inline pkg version (#353)
P0lip Jul 9, 2019
1ee8498
Merge branch 'develop' into release/4.0
XVincentX Jul 9, 2019
f58e395
refactor(severity): reduce complexity
P0lip Jul 9, 2019
a8c6014
refactor(finder): reduce complexity
P0lip Jul 9, 2019
3a2334f
refactor(severity): reduce complexity
P0lip Jul 9, 2019
3107860
refactor(finder): reduce complexity
P0lip Jul 9, 2019
e635382
Merge branch 'develop' into release/4.0
XVincentX Jul 9, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 56 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@ commands:
name: cc-before
command: |
./cc-test-reporter before-build
- run: yarn test.prod
- run:
name: Run browser tests
command: yarn test.karma
- run:
name: Build the code
command: yarn build
- run:
name: Run node tests
command: yarn test --coverage --maxWorkers=2
- run:
name: Lint the code
command: yarn lint
- run:
name: cc-after
command: |
Expand All @@ -41,39 +52,65 @@ commands:
jobs:
test-node-latest:
docker:
- image: circleci/node:latest
- image: circleci/node:latest-browsers
steps:
- install-and-test

test-node-12:
docker:
- image: circleci/node:12
- image: circleci/node:12-browsers
steps:
- install-and-test

test-node-10:
docker:
- image: circleci/node:10
- image: circleci/node:10-browsers
steps:
- install-and-test

test-node-8:
docker:
- image: circleci/node:8
- image: circleci/node:8-browsers
steps:
- install-and-test

release:
docker:
- image: circleci/node:8
- image: circleci/node:10
steps:
- checkout
- cached-dependencies
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm version from-git
- run: yarn inline-version
- run: yarn build
- run: yarn release
- run: |
if [[ "$CIRCLE_TAG" == *beta* ]] ; then
npm publish --tag beta
elif [[ "$CIRCLE_TAG" == *alpha* ]] ; then
npm publish --tag alpha
else
npm publish
fi
- run: yarn build.binary
- persist_to_workspace:
root: ./
paths:
- binaries
upload_artifacts:
docker:
- image: circleci/golang:1-stretch
steps:
- attach_workspace:
at: /tmp/
- run:
name: "Download GitHub Release Utility"
command: go get github.com/tcnksm/ghr
- run:
name: "Publish Release artifacts on GitHub"
command: ghr -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} /tmp/binaries

workflows:
version: 2
commit:
jobs:
- test-node-latest
Expand All @@ -85,4 +122,14 @@ workflows:
- release:
filters:
branches:
only: master
ignore: /.*/
tags:
only: /^v.*/
- upload_artifacts:
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/
requires:
- release
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
docs
img
.github
.circleci
__mocks__
__tests__
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug
---

> For support questions, please use the [Stoplight Community Forum](https://community.stoplight.io). This repository's issues are reserved for feature requests and bug reports. If you are unsure if you are experiencing a bug, the [Community Forum](https://community.stoplight.io) is a great place to start.
>
> **Please delete this section, any any sections below that you don't use, before creating the issue.**

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**

1. Given this OpenAPI document '...'
2. Run this CLI command '....'
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (remove any that are not applicable):**
- Library version: [e.g. 3.0.0]
- OS: [e.g. Windows 7]
- Browser: [e.g. Chrome 61]

**Additional context**
Add any other context about the problem here.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/chore_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Chore
about: Work that's not a new feature, and not a bug.
labels: chore
---

**Chore summary**
What is the goal of this chore.

**Tasks**
- [ ] Need to do this
- [ ] And do that

**Additional context**
Add any other context about the chore here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea
labels: feature request
---

**User story.**
As a {user_type}, I can do {some_user_action}, so that I can {some_user_value}.

**Is your feature request related to a problem?**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Additional context**
Add any other context or screenshots about the feature request here.
28 changes: 0 additions & 28 deletions .github/issue_template.md

This file was deleted.

27 changes: 15 additions & 12 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
### Please check if the PR fulfills these requirements
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
Fixes #[ISSUE_NUMBER].

### What kind of change does this PR introduce?
**Checklist**

Bug fix, feature, or docs update
- [ ] Tests added / updated
- [ ] Docs added / updated
- [ ] Check this off Breaking change?

### What is the current behavior?
**Does this PR introduce a breaking change?**

You can also link to an open issue here.
- [ ] Yes
- [ ] No

### If this is a feature change, what is the new behavior?
> If indicated yes above, please describe the breaking change(s).
>
> **Remove this quote before creating the PR.**

### Does this PR introduce a breaking change?
**Screenshots**

What changes might users need to make in their application due to this PR?
If applicable, add screenshots or gifs to help demonstrate the changes. If not applicable, remove this screenshots section before creating the PR.

### Other information
**Additional context**

(e.g. detailed explanation, related issues, links for us to have context, eg. stackoverflow, issues outside of the repo, forum, etc.)
Add any other context about the pull request here. Remove this section if there is no additional context.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@
*.log*
*-debug.log*
*-error.log*
oclif.manifest.json
/binaries
/rulesets
40 changes: 40 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
FROM node:12 as compiler

WORKDIR /usr/src/spectral

COPY package.json yarn.lock tsconfig.build.json tsconfig.json /usr/src/spectral/
COPY src/ /usr/src/spectral/src/

RUN yarn && yarn build

###############################################################
FROM node:12 as dependencies

WORKDIR /usr/src/spectral/

COPY package.json /usr/src/spectral/

ENV NODE_ENV production
RUN yarn --production

RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash
RUN ./bin/node-prune

###############################################################
FROM node:12-alpine

WORKDIR /usr/src/spectral
ENV NODE_ENV production

COPY package.json /usr/src/spectral/

COPY --from=compiler /usr/src/spectral/dist /usr/src/spectral/dist

COPY --from=compiler /usr/src/spectral/oclif.manifest.json /usr/src/spectral/oclif.manifest.json
COPY ./bin /usr/src/spectral/bin

COPY --from=dependencies /usr/src/spectral/node_modules/ /usr/src/spectral/node_modules/

WORKDIR /usr/src/spectral/

ENTRYPOINT [ "node", "bin/run" ]
Loading