Skip to content

Commit

Permalink
insomnia-inso
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Apr 6, 2021
1 parent 505df7f commit ff92713
Show file tree
Hide file tree
Showing 129 changed files with 1,583 additions and 4,828 deletions.
16 changes: 0 additions & 16 deletions packages/insomnia-inso/.babelrc

This file was deleted.

13 changes: 13 additions & 0 deletions packages/insomnia-inso/.babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default = /** @type { import('@babel/core').TransformOptions } */ ({
presets: [
[
"@babel/preset-env",
{
"targets": {
"node": "12"
}
}
],
// "@babel/preset-typescript"
],
});
3 changes: 3 additions & 0 deletions packages/insomnia-inso/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
bin
coverage
14 changes: 0 additions & 14 deletions packages/insomnia-inso/.flowconfig

This file was deleted.

16 changes: 8 additions & 8 deletions packages/insomnia-inso/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<br />
</h1>
<h3>A CLI for <a href="https://insomnia.rest">Insomnia Designer</a></h3>
<pre>npm i -g <a href="https://www.npmjs.com/package/insomnia-inso">insomnia-inso</a></pre>
<pre>npm install --global <a href="https://www.npmjs.com/package/insomnia-inso">insomnia-inso</a></pre>
<img src="https://raw.githubusercontent.com/Kong/insomnia/develop/packages/insomnia-inso/assets/demo.gif" alt=""/>
<br />
</div>
Expand Down Expand Up @@ -74,7 +74,7 @@ Similar to the Kong [Kubernetes](https://insomnia.rest/plugins/insomnia-plugin-k

### Examples

When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/__fixtures__/git-repo">git-repo</a> directory
When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/fixtures/git-repo">git-repo</a> directory

Not specifying any arguments will prompt

Expand Down Expand Up @@ -114,7 +114,7 @@ Designer has the ability to lint and validate your OpenAPI specification as you

### Examples

When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/__fixtures__/git-repo">git-repo</a> directory
When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/fixtures/git-repo">git-repo</a> directory

Not specifying any arguments will prompt

Expand All @@ -140,14 +140,14 @@ The test runner is built on top of Mocha, thus many of the options behave as the
|Option|Alias|Description|
|- |- |- |
| `--env <identifier>` | `-e` |the environment to use - an environment name or id |
| `--reporter <value>` | `-r` |reporter to use, options are `dot, list, spec, min and progress` (default: `spec` )|
| `--reporter <value>` | `-r` |reporter to use, options are `dot, list, min, progress, spec` (default: `spec` )|
| `--testNamePattern <regex>` | `-t` | run tests that match the regex|
| `--bail` | `-b` | abort ("bail") after the first test failure|
| `--keepFile` | | do not delete the generated test file (useful for debugging)|

### Examples

When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/__fixtures__/git-repo">git-repo</a> directory
When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/fixtures/git-repo">git-repo</a> directory

Not specifying any arguments will prompt

Expand Down Expand Up @@ -190,7 +190,7 @@ This command will extract and export the raw OpenAPI specification from the data

### Examples

When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/__fixtures__/git-repo">git-repo</a> directory
When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/fixtures/git-repo">git-repo</a> directory

Not specifying any arguments will prompt

Expand Down Expand Up @@ -218,7 +218,7 @@ The `inso` [config file](#configuration) supports scripts, akin to NPM scripts d

### Examples

When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/__fixtures__/git-repo">git-repo</a> directory, with the following inso config file.
When running in the <a href="https://github.com/Kong/insomnia/tree/develop/packages/insomnia-inso/src/db/fixtures/git-repo">git-repo</a> directory, with the following inso config file.

``` yaml
# .insorc.yaml
Expand Down Expand Up @@ -326,7 +326,7 @@ jobs:
- name: Install NodeJS
uses: actions/setup-node@v1
- name: Install inso
run: npm install -g insomnia-inso
run: npm install --global insomnia-inso
- name: Lint
run: inso lint spec "Designer Demo" --ci
- name: Run test suites
Expand Down
27 changes: 0 additions & 27 deletions packages/insomnia-inso/__jest__/before.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/insomnia-inso/__mocks__/cosmiconfig.js

This file was deleted.

20 changes: 0 additions & 20 deletions packages/insomnia-inso/__mocks__/enquirer.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/insomnia-inso/__mocks__/insomnia-send-request.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/insomnia-inso/__mocks__/insomnia-testing.js

This file was deleted.

3 changes: 2 additions & 1 deletion packages/insomnia-inso/bin/inso
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node

global.require = require;
require('../dist').go();
const insomniacli = require('../dist/index.js');
insomniacli.go();
5 changes: 0 additions & 5 deletions packages/insomnia-inso/flow-typed/@stoplight/spectral.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/insomnia-inso/flow-typed/commander.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/insomnia-inso/flow-typed/consola.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/insomnia-inso/flow-typed/cosmiconfig.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/insomnia-inso/flow-typed/enquirer.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/insomnia-inso/flow-typed/execa.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/insomnia-inso/flow-typed/get-bin-path.js

This file was deleted.

11 changes: 0 additions & 11 deletions packages/insomnia-inso/flow-typed/insomnia-send-request.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/insomnia-inso/flow-typed/insomnia-testing.js

This file was deleted.

Loading

0 comments on commit ff92713

Please sign in to comment.