-
-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from stoplightio/next
feat: api rewrite & community release
- Loading branch information
Showing
98 changed files
with
14,909 additions
and
4,989 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,46 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
test_node_8: | ||
docker: | ||
- image: circleci/node:8 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: dependency-cache-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Fetch dependencies | ||
command: yarn | ||
- save_cache: | ||
key: dependency-cache-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ./node_modules | ||
name: Download cc-test-reporter | ||
command: | | ||
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
chmod +x ./cc-test-reporter | ||
- run: yarn | ||
- run: | ||
name: Run tests | ||
command: yarn test | ||
name: cc-before | ||
command: | | ||
./cc-test-reporter before-build | ||
- run: yarn test.prod | ||
- run: | ||
name: Run build | ||
command: yarn build | ||
publish-npm: | ||
name: cc-after | ||
command: | | ||
./cc-test-reporter after-build --coverage-input-type lcov --exit-code $? | ||
release: | ||
docker: | ||
- image: circleci/node:8 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install publish dependencies | ||
command: | | ||
yarn global add semver | ||
- restore_cache: | ||
name: Restore Yarn Package Cache | ||
keys: | ||
- yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Install Dependencies | ||
command: yarn | ||
- save_cache: | ||
name: Save Yarn Package Cache | ||
key: yarn-packages-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules/ | ||
- run: | ||
name: Set NPM token | ||
command: | | ||
cat <<EOF>.npmrc | ||
@stoplight:registry=https://registry.npmjs.org/ | ||
//registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
EOF | ||
- run: | ||
name: Publish | ||
command: | | ||
export PATH=$PATH:/home/circleci/.yarn/bin | ||
scripts/publish.spectral.sh | ||
git remote remove origin | ||
git remote add origin https://stoplight-bot:[email protected]/stoplightio/spectral.git | ||
git config user.email "[email protected]" | ||
git config user.name "Stoplight Bot" | ||
git push origin --tags | ||
- run: yarn | ||
- run: yarn build | ||
- run: yarn build.docs | ||
- run: yarn release | ||
- run: yarn release.docs | ||
|
||
workflows: | ||
version: 2 | ||
build_and_publish: | ||
test_and_release: | ||
jobs: | ||
- build | ||
- publish-npm: | ||
requires: | ||
- build | ||
- test_node_8 | ||
- release: | ||
filters: | ||
branches: | ||
only: | ||
- develop | ||
- master | ||
only: master | ||
requires: | ||
- test_node_8 |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: "2" | ||
checks: | ||
argument-count: | ||
config: | ||
threshold: 6 | ||
complex-logic: | ||
config: | ||
threshold: 10 | ||
file-lines: | ||
config: | ||
threshold: 1000 | ||
method-complexity: | ||
config: | ||
threshold: 30 | ||
method-count: | ||
config: | ||
threshold: 30 | ||
method-lines: | ||
config: | ||
threshold: 200 | ||
nested-control-flow: | ||
config: | ||
threshold: 8 | ||
return-statements: | ||
config: | ||
threshold: 5 | ||
similar-code: | ||
config: | ||
threshold: 200 | ||
exclude_patterns: | ||
- "**/__tests__/" |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
**Note: 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. | ||
|
||
We realize there is a lot of data requested here. We ask only that you do your best to provide as much information as possible so we can better help you. | ||
|
||
_Feel free to delete this section above before creating the issue._ | ||
|
||
### **I'm submitting a...** | ||
- [ ] bug report | ||
- [ ] feature request | ||
|
||
### What is the current behavior? | ||
|
||
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. | ||
|
||
### What is the expected behavior? | ||
|
||
### What is the motivation / use case for changing the behavior? | ||
|
||
### Please tell us about your environment: | ||
|
||
- Version: 2.0.0-beta.X | ||
- Framework: [ ] | ||
- Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart] | ||
|
||
|
||
### Other information | ||
|
||
(e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, issues outside of the repo, forum, etc.) |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### 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) | ||
|
||
### What kind of change does this PR introduce? | ||
|
||
Bug fix, feature, or docs update | ||
|
||
### What is the current behavior? | ||
|
||
You can also link to an open issue here. | ||
|
||
### If this is a feature change, what is the new behavior? | ||
|
||
### Does this PR introduce a breaking change? | ||
|
||
What changes might users need to make in their application due to this PR? | ||
|
||
### Other information | ||
|
||
(e.g. detailed explanation, related issues, links for us to have context, eg. stackoverflow, issues outside of the repo, forum, etc.) |
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,3 +1,34 @@ | ||
node_modules/ | ||
lib/ | ||
coverage/ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
/dist | ||
/docs-auto | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.vscode | ||
.idea | ||
.nyc_output | ||
.DS_Store | ||
.awcache | ||
.cache-loader | ||
.cache | ||
.rpt2_cache | ||
|
||
# logs | ||
*.log* | ||
*-debug.log* | ||
*-error.log* |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Stoplight Community Code of Conduct | ||
|
||
The Stoplight Community is dedicated to providing a safe, inclusive, welcoming, and harassment-free space and experience for all community participants, regardless of gender identity and expression, sexual orientation, disability, physical appearance, socioeconomic status, body size, ethnicity, nationality, level of experience, age, religion (or lack thereof), or other identity markers. | ||
|
||
Our Code of Conduct exists because of that dedication, and we do not tolerate harassment in any form. See our reporting guidelines [here](https://github.com/stoplightio/code-of-conduct/blob/master/incident-reporting.md). Our full Code of Conduct can be found at this [link](https://github.com/stoplightio/code-of-conduct/blob/master/long-form-code-of-conduct.md#long-form-code-of-conduct). |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# How to contribute |
Oops, something went wrong.