Commit Graph

130 Commits

Author SHA1 Message Date
greenkeeper[bot] 957ce52595 chore(package): update jest-watch-typeahead to version 0.3.0 2019-04-02 15:24:31 +00:00
David Diaz 2610ce5a0d 0.10.0 2019-03-12 15:33:02 -06:00
David Diaz 7854333a50 Run tests in band. 2019-03-12 11:21:11 -06:00
Sergio Díaz f7cb19276b
Updating circleci config to version 2. (#59) 2019-03-12 11:14:23 -06:00
Sergio Díaz b4e27b179b
Updated jest. (#56) 2019-03-11 22:23:12 -06:00
Sergio Díaz fea72dde2a
Allow urls as endpoints (#55)
* Added support for multiple request configurations.

This allows multiple requests to hit the same verb+path combination.
This was previously impossible, to address it, it's now possible to pass
an array of request settings as the body of a request each request will
be added to the request list individually.

Example:
```
GET /some/path:
  - alias: first
    headers:
      request: first
  - alias: second
    headers:
      request: second
```

* Allows using full urls in the request key

This allows you to break out of the top-level endpoint. If you send a
full url instead of a path it'll be used instead of the top level
endpoint.

Example:
```
endpoint: http://example.com
GET /posts: get-posts
POST http://api.example.com/posts: post-post
```
2019-03-11 22:04:20 -06:00
Sergio Díaz 94332bd125
Added support for multiple request configurations. (#54)
This allows multiple requests to hit the same verb+path combination.
This was previously impossible, to address it, it's now possible to pass
an array of request settings as the body of a request each request will
be added to the request list individually.

Example:
```
GET /some/path:
  - alias: first
    headers:
      request: first
  - alias: second
    headers:
      request: second
```
2019-03-11 21:14:34 -06:00
greenkeeper[bot] 8a1ecc67bd Update strip-ansi to the latest version 🚀 (#53)
* chore(package): update strip-ansi to version 5.1.0

* chore(package): update lockfile package-lock.json
2019-03-11 17:35:31 -06:00
greenkeeper[bot] 2961b1ea54 Update globby to the latest version 🚀 (#51)
* fix(package): update globby to version 9.1.0

* chore(package): update lockfile package-lock.json
2019-03-06 11:19:35 -06:00
Sergio Díaz 8b6bbfd77b
Greenkeeper/@oclif/config 1.12.9 (#52)
* chore(package): update @oclif/config to version 1.12.9

* chore(package): update lockfile package-lock.json
2019-03-06 11:16:46 -06:00
Sergio Díaz f0298a973b
Updated all dependencies. (#50)
I also used this opportunity to pin dependencies to specific package versions instead of ranges. Should be nicer in the long run.
2018-12-13 14:19:18 -06:00
greenkeeper[bot] 8c453e6974 Update deepmerge to the latest version 🚀 (#49)
* fix(package): update deepmerge to version 3.0.0

* chore(package): update lockfile package-lock.json
2018-12-07 09:58:46 -06:00
greenkeeper[bot] 865d7976fe Update joi to the latest version 🚀 (#47)
* fix(package): update joi to version 14.0.0

* chore(package): update lockfile package-lock.json
2018-12-07 09:43:02 -06:00
greenkeeper[bot] 379395bcbd Update strip-ansi to the latest version 🚀 (#46)
* chore(package): update strip-ansi to version 5.0.0

* chore(package): update lockfile package-lock.json
2018-12-07 09:36:34 -06:00
greenkeeper[bot] d517d4055e fix(package): update requireg to version 0.2.0 (#45) 2018-12-07 09:33:35 -06:00
Sergio Díaz d5da7d87e2
Small refactoring. (#44)
Basically I like how when using Object.entries you can destructure and
name the value. It feels a lot more explicit to give the value a name
rather than refer to it as obj[k]. The syntax is not super pretty though.
2018-08-05 00:00:54 -06:00
Sergio Díaz f2b9cad662
Updated Readme. (#43) 2018-08-01 11:14:20 -06:00
David Diaz cc805d4adb 0.9.5 2018-08-01 00:35:51 -06:00
Sergio Díaz 1814a00835
Updated package.json (#42) 2018-08-01 00:27:09 -06:00
Sergio Díaz 24c0bfb04f
Added np for automating releases. (#41) 2018-08-01 00:04:10 -06:00
Sergio Díaz 52e88a3703
This allows extra documents in a yaml config file to be embeded as hosts.(#40)
This allows extra documents in a yaml config file to be embeded as hosts.
2018-07-31 23:23:32 -06:00
Sergio Díaz 8849fe1e90
Updated dependencies. (#39) 2018-07-18 15:00:14 -06:00
David Diaz 6be3ce05c2 0.9.4 2018-06-19 11:37:26 -06:00
David Diaz b6c5a0b01e Added beau-std as a direct dependency of Beau. 2018-06-19 11:29:41 -06:00
Sergio Díaz 14704c09d1
Added a version mismatch warning. (#37)
* I need to stop rewriting builtin methods with reduce.

* Removed redundant fields from the config class.

* Added a warning when module version and beau.yml version differ.
2018-06-14 23:12:16 -06:00
Sergio Díaz 450d53e9f9
I need to stop rewriting builtin methods with reduce. (#36) 2018-06-14 19:27:03 -06:00
Sergio Díaz ef34ea04aa
Adding basic tests to shared utilities. (#35) 2018-06-06 16:56:12 -06:00
Sergio Díaz cc7245b501
Cleaning up tests. (#34) 2018-06-02 23:47:03 -06:00
Sergio Díaz 8e961211a5
Updated dependencies. (#32) 2018-05-29 15:34:37 -06:00
Sergio Díaz c8ff4945d6
Updated tests. (#30)
With the introduction of data-driven tests in Jest 23 CLI tests could be made significantly smaller and easier to keep updated.
2018-05-29 15:23:58 -06:00
David Diaz 8fcd8b9fd3 Updated README. 2018-05-24 00:20:51 -06:00
Sergio Díaz 26b33fbf00
Added tests to all CLI commands. (#28)
* Moved the spinner initialization to the base class.

* Got rid of the base class, it complicated testing.

Now it lives on as a utils file. Should make it easier to test the CLI.

* Added a spec file for the ListCommand.

* Added tests for all CLI commands.

* Update some old tests.

Added missing cases and tests.

Most of these are kind useless but I hope I won't have to touch them
again.
2018-05-22 21:42:52 -06:00
Sergio Díaz 23064040df
Stopped iterating over keys and started assigning instead. (#27)
I don't actually remember why I did it this way. I probably wanted to be
a lot more strict with the keys originally which seems silly in
retrospective.
2018-05-22 12:55:58 -06:00
Sergio Díaz dbc7addb39
Added flags for quiet and as-json output. (#26)
--as-json outputs the response as json, this allows you to use tools
like jq on the output which is nice.

--quiet makes it so no output is printed. I added this in case you are
looping Beau and don't want to see the output of every single request.
Example: `seq 10 | xargs -I{} beau request hi --quiet`.
2018-05-22 12:08:32 -06:00
David Diaz 293dde59c4 0.9.3 2018-05-17 10:54:15 -06:00
Sergio Díaz a9ba5b0bb7
: is valid as a variable when talking about hosts. (#25) 2018-05-17 10:52:35 -06:00
David Diaz c0923dcce5 0.9.2 2018-05-17 10:02:16 -06:00
Sergio Díaz 29940d2a24
This fixes an issue where / and \ and : where considered valid names for (#24)
replacements.
2018-05-17 10:01:02 -06:00
Sergio Díaz aba33e7fc3
Fix: Env variables (#23)
I am making a couple of small changes to how external environment
variables are used. From now own everything comming from the outside,
namely the .env file and the params flag are assigned to the '_'
variable within the internal environment. This is mostly to namespace
things and make it clear where they are coming from.
2018-05-17 09:58:44 -06:00
David Diaz d2eabfb19e 0.9.1 2018-05-16 23:13:42 -06:00
Sergio Díaz 0677497074
Making improvements to the plugins system. (#22)
This is mostly some clean up. Now plugins are checked for existence
before being required. The regex for dynamic values was improved a
little in an attemp to make it more reliable. Plugins are only required
once now.

The CLI's CWD is set to that of the config file. This makes relative
paths mentioned in the file more reliable.
2018-05-16 18:24:52 -06:00
David Diaz 9ba3027017 Added swp to gitignore. 2018-05-07 17:18:03 +00:00
David Diaz 0e5b427d24 0.9.0 2018-05-06 19:05:58 -06:00
Sergio Díaz 248f4a9223
Added params as a flag to request. (#20)
This allows the use to inject arbitrary values to Beau's environment.
2018-05-06 18:26:19 -06:00
Sergio Díaz 56d536a509
Re-indented some files I was missing. (#19)
I think that's it.
2018-05-04 22:00:54 -06:00
Sergio Díaz 4bf7a60e9c
Added beau-std as an auto-loaded plugin. (#18)
This means that beau-std will automatically be loaded if available in
the same space as Beau. beau-std is a set of commonly used plugins,
these map directly to nodejs features that are commonly needed within
Beau.
2018-05-04 13:08:55 -06:00
Sergio Díaz 59f85fac8c
Reindenting. (#17)
I normally prefer tabs for everything, it's nice to have the ability to
set to whatever your preferred width is. Since this project uses a lot
of yaml stuff I've had to indent those tests with spaces, for
consistency's sake I've decided to use spaces everywhere.
2018-05-04 11:47:28 -06:00
David Diaz 64de56d51c Added a .prettierrc config file. 2018-05-04 11:22:02 -06:00
David Diaz 3212403962 Changed the description on the package.json 2018-05-04 05:08:58 +00:00
Sergio Díaz 90761acaa4
Added a schema validator. (#13)
* Added a schema validator.

This allows you to check if the given beau config is valid. Will be used
to improve the CLI and remove schema validation-type errors from the
actual code.

* Added a validate command to the CLI.

This command is a way to test the config file. Eventually it'll probably
be removed and the schema validation will run on every other command. I
have to determine how useful this is and how performance might be
affected.
2018-05-01 22:20:14 -06:00