Skip to content

Commit f5fac66

Browse files
authored
Merge pull request #116 from nestdotland/dev
0.3.5
2 parents 113aa52 + 42708f4 commit f5fac66

File tree

7 files changed

+104
-87
lines changed

7 files changed

+104
-87
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
In the interest of fostering an open and welcoming environment, we as
66
contributors and maintainers pledge to making participation in our project and
77
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, gender identity and expression, level of experience,
9-
nationality, personal appearance, race, religion, or sexual identity and
10-
orientation.
8+
size, disability, ethnicity, gender identity and expression, level of
9+
experience, nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
1111

1212
### Our Standards
1313

@@ -37,11 +37,11 @@ Project maintainers are responsible for clarifying the standards of acceptable
3737
behaviour and are expected to take appropriate and fair corrective action in
3838
response to any instances of unacceptable behaviour.
3939

40-
Project maintainers have the right and responsibility to remove, edit, or
41-
reject comments, commits, code, wiki edits, issues, and other contributions
42-
that are not aligned to this Code of Conduct, or to ban temporarily or
43-
permanently any contributor for other behaviors that they deem inappropriate,
44-
threatening, offensive, or harmful.
40+
Project maintainers have the right and responsibility to remove, edit, or reject
41+
comments, commits, code, wiki edits, issues, and other contributions that are
42+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
43+
contributor for other behaviors that they deem inappropriate, threatening,
44+
offensive, or harmful.
4545

4646
### Scope
4747

@@ -55,20 +55,20 @@ further defined and clarified by project maintainers.
5555
### Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behaviour may be
58-
reported by contacting the project team at support@nest.land. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
58+
reported by contacting the project team at support@nest.land. All complaints
59+
will be reviewed and investigated and will result in a response that is deemed
60+
necessary and appropriate to the circumstances. The project team is obligated to
61+
maintain confidentiality with regard to the reporter of an incident. Further
62+
details of specific enforcement policies may be posted separately.
6363

6464
Project maintainers who do not follow or enforce the Code of Conduct in good
6565
faith may face temporary or permanent repercussions as determined by other
6666
members of the project's leadership.
6767

6868
### Attribution
6969

70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at [http://contributor-covenant.org/version/1/4][version]
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71+
version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
7272

7373
[homepage]: http://contributor-covenant.org
7474
[version]: http://contributor-covenant.org/version/1/4/

.github/CONTRIBUTING.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@
1010

1111
# Contributing / Developing
1212

13-
Contributions are welcome. Fork this repository and issue a pull request with your changes.
13+
Contributions are welcome. Fork this repository and issue a pull request with
14+
your changes.
1415

15-
Please add new tests for new functionality, adapt the existing ones if needed, and make sure that `deno test` succeeds.
16+
Please add new tests for new functionality, adapt the existing ones if needed,
17+
and make sure that `deno test` succeeds.
1618

1719
### Prerequisites
18-
You need to have [Git](https://git-scm.com/downloads) and [deno](https://deno.land) installed on your system.
20+
21+
You need to have [Git](https://git-scm.com/downloads) and
22+
[deno](https://deno.land) installed on your system.
1923

2024
### Setting up Dev
25+
2126
Just execute these commands:
2227

2328
```shell
@@ -26,6 +31,7 @@ cd eggs/
2631
```
2732

2833
This project uses drake to manage project scripts. Run it with Deno:
34+
2935
```sh
3036
deno run -A Drakefile.ts
3137
# A shell alias shortcut can be set to run the default drakefile:
@@ -34,7 +40,8 @@ alias drake="deno run -A Drakefile.ts"
3440

3541
### Versioning
3642

37-
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [link to tags on this repository](/tags).
43+
We use [SemVer](http://semver.org/) for versioning. For the versions available,
44+
see the [link to tags on this repository](/tags).
3845

3946
### Tests
4047

@@ -49,14 +56,16 @@ drake format
4956
drake lint
5057
```
5158

52-
Make sure to use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
59+
Make sure to use
60+
[Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
5361

5462
### Pull request
5563

56-
**Please PR to the `dev` branch!**
57-
Then follow the [pull request template](.github/PULL_REQUEST_TEMPLATE/pull_request.md).
64+
**Please PR to the `dev` branch!** Then follow the
65+
[pull request template](.github/PULL_REQUEST_TEMPLATE/pull_request.md).
5866

5967
### Deploying / Publishing
6068

61-
Submit a pull request after running `drake dev` to ensure it runs correctly.
62-
The module is automatically published to nest.land when a new release is published on github.
69+
Submit a pull request after running `drake dev` to ensure it runs correctly. The
70+
module is automatically published to nest.land when a new release is published
71+
on github.

.github/PULL_REQUEST_TEMPLATE/pull_request.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
<!-- Make sure you have read the contribution guide!
1+
<!-- Make sure you have read the contribution guide!
22
https://github.com/nestdotland/template/tree/master/.github/CONTRIBUTING.md
33
-->
44

55
# Description
66

7-
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
7+
Please include a summary of the change and which issue is fixed. Please also
8+
include relevant motivation and context. List any dependencies that are required
9+
for this change.
810

911
Fixes # (issue)
1012

@@ -14,19 +16,23 @@ Please delete options that are not relevant.
1416

1517
- [ ] Bug fix (non-breaking change which fixes an issue)
1618
- [ ] New feature (non-breaking change which adds functionality)
17-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
19+
- [ ] Breaking change (fix or feature that would cause existing functionality to
20+
not work as expected)
1821
- [ ] This change requires a documentation update
1922

2023
# How Has This Been Tested?
2124

22-
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
25+
Please describe the tests that you ran to verify your changes. Provide
26+
instructions so we can reproduce. Please also list any relevant details for your
27+
test configuration
2328

2429
- [ ] Test A
2530
- [ ] Test B
2631

2732
**Test Configuration**:
28-
* OS:
29-
* Version:
33+
34+
- OS:
35+
- Version:
3036

3137
# Checklist:
3238

README.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
>
99
</a>
1010

11-
<h3 align="center">Eggs CLI</h3>
11+
<h3 align="center">Eggs CLI</h3>
1212
<p align="center">
1313
The CLI used to publish and update modules in nest.land.
1414
</p>
@@ -55,7 +55,7 @@
5555
**Note: You need to upgrade to Deno v1.6.0 or newer in order to use our CLI.**
5656

5757
```shell script
58-
deno install -Afq --unstable https://x.nest.land/eggs@0.3.4/eggs.ts
58+
deno install -Afq --unstable https://x.nest.land/eggs@0.3.5/eggs.ts
5959
```
6060

6161
For more information, see the [documentation](https://docs.nest.land/).
@@ -73,8 +73,8 @@ Then, use `link` to add it to the CLI:
7373
eggs link <key>
7474
```
7575

76-
Alternatively, you can manually create a `.nest-api-key` file at your user
77-
home directory.
76+
Alternatively, you can manually create a `.nest-api-key` file at your user home
77+
directory.
7878

7979
### Init
8080

@@ -85,8 +85,8 @@ project as well. To do this easily, type:
8585
eggs init
8686
```
8787

88-
Note: If you'd like to specify a version that you'll publish to, you can
89-
include a `version` variable in `egg.json`.
88+
Note: If you'd like to specify a version that you'll publish to, you can include
89+
a `version` variable in `egg.json`.
9090

9191
### Publish
9292

@@ -97,39 +97,39 @@ your package to our registry with this command:
9797
eggs publish
9898
```
9999

100-
You'll receive a link to your package on our registry, along with an import
101-
URL for others to import your package from the Arweave blockchain!
100+
You'll receive a link to your package on our registry, along with an import URL
101+
for others to import your package from the Arweave blockchain!
102102

103-
Note: It may take some time for the transaction to process in Arweave.
104-
Until then, we upload your files to our server, where they are served for
105-
20 minutes to give the transaction time to process.
103+
Note: It may take some time for the transaction to process in Arweave. Until
104+
then, we upload your files to our server, where they are served for 20 minutes
105+
to give the transaction time to process.
106106

107107
### Update
108108

109-
You can easily update your dependencies and global scripts with
110-
the `update` command.
109+
You can easily update your dependencies and global scripts with the `update`
110+
command.
111111

112112
```shell script
113113
eggs update [deps] <options>
114114
```
115115

116-
Your dependencies are by default checked in the `deps.ts` file
117-
(current working directory). You can change this with `--file`
116+
Your dependencies are by default checked in the `deps.ts` file (current working
117+
directory). You can change this with `--file`
118118

119119
```shell script
120120
eggs update # default to deps.ts
121121
eggs update --file dependencies.ts
122122
```
123123

124-
In regular mode, all your dependencies are updated. You can choose which
125-
ones will be modified by adding them as arguments.
124+
In regular mode, all your dependencies are updated. You can choose which ones
125+
will be modified by adding them as arguments.
126126

127127
```shell script
128128
eggs update # Updates everything
129129
eggs update http fs eggs # Updates only http, fs, eggs
130130
```
131131

132-
Scripts installed with `eggs install` can also be updated with the `-g`
132+
Scripts installed with `eggs install` can also be updated with the `-g`
133133
parameter.
134134

135135
```shell script
@@ -139,41 +139,41 @@ eggs update eggs denon -g # Updates only eggs, denon
139139

140140
Several registries are supported. The current ones are:
141141

142-
* x.nest.land
143-
* deno.land/x
144-
* deno.land/std
145-
* raw.githubusercontent.com
146-
* denopkg.com
142+
- x.nest.land
143+
- deno.land/x
144+
- deno.land/std
145+
- raw.githubusercontent.com
146+
- denopkg.com
147147

148-
If you want to add a registry, open an issue by specifying the registry
149-
url and we'll add it.
148+
If you want to add a registry, open an issue by specifying the registry url and
149+
we'll add it.
150150

151151
An example of updated file:
152152

153153
```ts
154154
import * as colors from "https://deno.land/std@v0.55.0/fmt/colors.ts";
155-
import * as bcrypt from "https://deno.land/x/bcrypt@v0.2.0/mod.ts"
156-
import * as eggs from "https://x.nest.land/eggs@v0.1.0/mod.ts"
157-
import * as http from "https://deno.land/std/http/mod.ts"
155+
import * as bcrypt from "https://deno.land/x/bcrypt@v0.2.0/mod.ts";
156+
import * as eggs from "https://x.nest.land/eggs@v0.1.0/mod.ts";
157+
import * as http from "https://deno.land/std/http/mod.ts";
158158
```
159159

160160
After `eggs update`:
161161

162162
```ts
163163
import * as colors from "https://deno.land/std@0.58.0/fmt/colors.ts";
164-
import * as bcrypt from "https://deno.land/x/bcrypt@v0.2.1/mod.ts"
165-
import * as eggs from "https://x.nest.land/eggs@0.3.0/mod.ts"
166-
import * as http from "https://deno.land/std/http/mod.ts"
164+
import * as bcrypt from "https://deno.land/x/bcrypt@v0.2.1/mod.ts";
165+
import * as eggs from "https://x.nest.land/eggs@0.3.0/mod.ts";
166+
import * as http from "https://deno.land/std/http/mod.ts";
167167
```
168168

169169
### Install
170170

171-
Just like `deno install`, you can install scripts globally with eggs.
172-
By installing it this way, you will be notified if an update is available
173-
for your script.
171+
Just like `deno install`, you can install scripts globally with eggs. By
172+
installing it this way, you will be notified if an update is available for your
173+
script.
174174

175-
The verification is smart, it can't be done more than once a day. To install
176-
a script, simply replace `deno` with `eggs`.
175+
The verification is smart, it can't be done more than once a day. To install a
176+
script, simply replace `deno` with `eggs`.
177177

178178
```shell script
179179
deno install --allow-write --allow-read -n [NAME] https://x.nest.land/[MODULE]@[VERSION]/cli.ts
@@ -198,8 +198,8 @@ eggs upgrade
198198
## Contributing
199199

200200
All contributions are welcome! If you can think of a command or feature that
201-
might benefit nest.land, fork this repository and make a pull request from
202-
your branch with the additions. Make sure to use [Conventional
203-
Commits](https://www.conventionalcommits.org/en/v1.0.0/)
201+
might benefit nest.land, fork this repository and make a pull request from your
202+
branch with the additions. Make sure to use
203+
[Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
204204

205-
[Contribution guide](.github/CONTRIBUTING.md)
205+
[Contribution guide](.github/CONTRIBUTING.md)

benchmarks/README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,34 @@
33
Documentation for benchmarks of CLI commands.
44

55
# Contents
6-
* [Commands](#commands)
7-
* [Update](#update)
6+
7+
- [Commands](#commands)
8+
- [Update](#update)
89

910
# Commands
1011

1112
## Update
1213

1314
**Cautions**
1415

15-
* There may be a time where the deps are too out of date. They need to be out of date for `update` to update them,
16-
so just bump them up to the release before the latest std
16+
- There may be a time where the deps are too out of date. They need to be out of
17+
date for `update` to update them, so just bump them up to the release before
18+
the latest std
1719

1820
**How it Works**
1921

20-
* This benchmark uses a separate `deps.ts` file. The reason for this is so we can have a 'realworld' example, where many dependencies are used, and from various registries
22+
- This benchmark uses a separate `deps.ts` file. The reason for this is so we
23+
can have a 'realworld' example, where many dependencies are used, and from
24+
various registries
2125

22-
* All but 1 dependency are out of date, to fully represent the test, as the `update` would update all the out of date dependencies
26+
- All but 1 dependency are out of date, to fully represent the test, as the
27+
`update` would update all the out of date dependencies
2328

24-
* This benchmark shows the execution time for running `update` against 14 separate dependencies, all varying from:
25-
* deno.land/std/
26-
* deno.land/x/
27-
* x.nest.land
29+
- This benchmark shows the execution time for running `update` against 14
30+
separate dependencies, all varying from:
31+
- deno.land/std/
32+
- deno.land/x/
33+
- x.nest.land
2834

2935
**How to Run**
3036

@@ -46,4 +52,4 @@ running 1 benchmark ...
4652
benchmark updateCommand ...
4753
3968ms
4854
benchmark result: DONE. 1 measured; 0 filtered
49-
```
55+
```

0 commit comments

Comments
 (0)