Skip to content

Commit b3ca88a

Browse files
authored
Merge pull request #97 from drashland/minor-chores
chore: Remove bloat
2 parents b463221 + a2545e8 commit b3ca88a

File tree

6 files changed

+58
-199
lines changed

6 files changed

+58
-199
lines changed

.github/workflows/master.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ jobs:
1010
strategy:
1111
matrix:
1212
os: [ubuntu-latest, macos-latest, windows-latest]
13-
deno: ["1.5.3"]
1413
runs-on: ${{ matrix.os }}
1514

1615
steps:
1716
- uses: actions/checkout@v2
1817

1918
- name: Install Deno
2019
uses: denolib/setup-deno@master
21-
with:
22-
deno-version: ${{ matrix.deno }}
2320

2421
- name: Integration
2522
run: |
@@ -31,9 +28,6 @@ jobs:
3128
cd tests/integration/out-of-date-deps
3229
deno run --allow-read='.' --allow-write='deps.ts' --allow-net='x.nest.land,cdn.deno.land,api.deno.land,raw.githubusercontent.com,github.com,api.github.com' ../../../mod.ts update
3330
linting:
34-
strategy:
35-
matrix:
36-
deno: ["1.5.3"]
3731
# Doesn't need to be checked in all OS
3832
runs-on: ubuntu-latest
3933

@@ -42,8 +36,6 @@ jobs:
4236

4337
- name: Install Deno
4438
uses: denolib/setup-deno@master
45-
with:
46-
deno-version: ${{ matrix.deno }}
4739

4840
- name: Check Code FMT
4941
run: deno fmt --check

README.md

Lines changed: 7 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,9 @@
1919

2020
---
2121

22-
`dmm` (pronounced "dim") is a Deno module manager. It can update your `deps.ts` file, check if any of your dependencies are out of date, and give you information about any module in the Deno world. Managing your dependencies hasn't been easier.
22+
`dmm` is a Deno module manager. It can update your `deps.ts` file, check if any of your dependencies are out of date, and give you information about any module in the Deno world. Managing your dependencies hasn't been easier.
2323

24-
# Table of Contents
25-
26-
* [Documentation](#documentation)
27-
* [Features](#features)
28-
* [Quick Start](#quick-start)
29-
* [How it Works](#how-it-works)
30-
* [Mirrors](#mirrors)
31-
* [Contributing](#contributing)
32-
* [License](#license)
33-
34-
# Documentation
35-
36-
* [Full Documentation](https://drash.land/dmm/)
37-
38-
# Features
24+
### Features
3925

4026
* Zero dependencies
4127
* Easy and simple to use
@@ -47,47 +33,16 @@
4733
* No variants of `node_modules` and `package.json`
4834
* No extra configuration around import maps
4935

50-
# Quick Start
51-
52-
There are two ways you can use this module:
53-
54-
1. You can install it through the `deno` command.
55-
```sh
56-
$ deno install \
57-
--allow-net='cdn.deno.land,api.deno.land,x.nest.land,raw.githubusercontent.com,github.com,api.github.com' \
58-
--allow-read='.' \
59-
--allow-write='deps.ts' \
60-
https://deno.land/x/[email protected]/mod.ts
61-
62-
$ dmm help
63-
````
36+
### Getting Started
6437

65-
2. Run it through a URL.
66-
```sh
67-
$ deno run \
68-
--allow-net='cdn.deno.land,api.deno.land,x.nest.land,raw.githubusercontent.com,github.com,api.github.com' \
69-
--allow-read='.' \
70-
--allow-write='deps.ts' \
71-
https://deno.land/x/[email protected]/mod.ts \
72-
help
73-
```
38+
Get started [here](https://drash.land/dmm/#/#quickstart) with a basic example.
7439

75-
# How It Works
40+
### How It Works
7641

7742
dmm reads the `deps.ts` file at the current working directory -- checking versioned `import` and `export` statements and checking to see if they can be updated. If any dependency can be updated, it lets you know which ones can be updated; and if you want to update them, dmm will rewrite your `deps.ts` file so that your dependencies reflect their latest versions.
7843

7944
_Note: nest.land may not reflect the latest Deno Standard Modules version immediately after Deno releases a new version. Please keep this in mind when importing your modules via nest.land._
8045

81-
## Mirrors
82-
83-
* https://nest.land/package/dmm
84-
85-
## Contributing
86-
87-
Contributors are welcomed!
88-
89-
Please read through our [contributing guidelines](./.github/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
90-
91-
## License
46+
---
9247

93-
By contributing your code, you agree to license your contribution under the [MIT License](./LICENSE).
48+
Want to contribute? Follow the Contributing Guidelines [here](https://github.com/drashland/.github/blob/master/CONTRIBUTING.md). All code is released under the [MIT License](./LICENSE).

console/bumper_ci_service_files.ts

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { version } from "../src/commands/version.ts";
2-
31
export const regexes = {
42
const_statements: /version = ".+"/g,
53
deps_drash: /drash@v[0-9.]+[0-9.]+[0-9]/g,
@@ -16,59 +14,11 @@ export const preReleaseFiles = [
1614
replaceTheRegex: regexes.egg_json,
1715
replaceWith: `"version": "{{ thisModulesLatestVersion }}"`,
1816
},
19-
{
20-
filename: "./README.md",
21-
replaceTheRegex: regexes.urls,
22-
replaceWith: `dmm@v{{ thisModulesLatestVersion }}`,
23-
},
2417
{
2518
filename: "./src/commands/version.ts",
2619
replaceTheRegex: regexes.const_statements,
2720
replaceWith: `version = "{{ thisModulesLatestVersion }}"`,
2821
},
29-
{
30-
filename: "./tests/integration/error_test.ts",
31-
replaceTheRegex: regexes.urls,
32-
replaceWith: "dmm@v{{ thisModulesLatestVersion }}",
33-
},
34-
{
35-
filename: "./tests/integration/help_test.ts",
36-
replaceTheRegex: regexes.urls,
37-
replaceWith: "dmm@v{{ thisModulesLatestVersion }}",
38-
},
39-
{
40-
filename: "./tests/integration/info_test.ts",
41-
replaceTheRegex: regexes.urls,
42-
replaceWith: "dmm@v{{ thisModulesLatestVersion }}",
43-
},
44-
{
45-
filename: "./tests/integration/info_test.ts",
46-
replaceTheRegex: regexes.deps_drash,
47-
replaceWith: "drash@v{{ latestDrashVersion }}",
48-
},
4922
];
5023

51-
export const bumperFiles = [
52-
{
53-
filename: "./tests/integration/up-to-date-deps/original_deps.ts",
54-
replaceTheRegex: regexes.deps_std,
55-
replaceWith: "std@{{ latestStdVersion }}",
56-
},
57-
// Yes... this is NOT a deno version file, but we're trying to keep the tests
58-
// up to date and it has a Drash version... so gtfo... leave this alone kthx.
59-
{
60-
filename: "./tests/integration/up-to-date-deps/original_deps.ts",
61-
replaceTheRegex: regexes.deps_drash,
62-
replaceWith: "drash@v{{ latestDrashVersion }}",
63-
},
64-
{
65-
filename: "./.github/workflows/master.yml",
66-
replaceTheRegex: regexes.yml_deno,
67-
replaceWith: `deno: ["{{ latestDenoVersion }}"]`,
68-
},
69-
{
70-
filename: "./tests/integration/info_test.ts",
71-
replaceTheRegex: regexes.deps_drash,
72-
replaceWith: "drash@v{{ latestDrashVersion }}",
73-
},
74-
];
24+
export const bumperFiles = [];

tests/data/expected_help_message.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { version } from "../../src/commands/version.ts";
2+
3+
export const expectedHelpMessage = `
4+
A module manager for Deno.
5+
6+
USAGE
7+
8+
deno install --allow-net='x.nest.land,cdn.deno.land,api.deno.land,raw.githubusercontent.com,github.com,api.github.com' --allow-read='.' --allow-write='deps.ts' https://deno.land/x/dmm@v${version}/mod.ts
9+
dmm [SUBCOMMAND]
10+
11+
SUBCOMMANDS
12+
13+
check [modules]
14+
Checks the specified modules for newer version. Will check all if modules are
15+
omitted.
16+
17+
update [modules]
18+
Updates the specified modules to the newest version. Will update all if modules
19+
are omitted.
20+
21+
info [modules]
22+
Displays information about the given modules, be it std or 3rd party. The 3rd
23+
party module must be referenced at https://deno.land/x/
24+
25+
help, --help
26+
Prints the help message
27+
28+
version, --version
29+
Prints the current dmm version
30+
31+
32+
EXAMPLE USAGE
33+
34+
Install dmm
35+
deno install --allow-net='x.nest.land,cdn.deno.land,api.deno.land,raw.githubusercontent.com,github.com,api.github.com' --allow-read='.' --allow-write='deps.ts' https://deno.land/x/dmm@v${version}/mod.ts
36+
37+
Check a single module
38+
dmm check fs
39+
40+
Update a single module
41+
dmm update fs
42+
43+
Get information about a module
44+
dmm info http
45+
46+
`;

tests/integration/error_test.ts

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { assertEquals, colours } from "../../deps.ts";
22
import { outOfDateDepsDir, upToDateDepsDir } from "./test_constants.ts";
3+
import { expectedHelpMessage } from "../data/expected_help_message.ts";
34

45
Deno.test({
56
name: "No Purpose",
@@ -18,50 +19,7 @@ Deno.test({
1819
const stderr = new TextDecoder("utf-8").decode(error);
1920
assertEquals(
2021
stdout,
21-
`
22-
A module manager for Deno.
23-
24-
USAGE
25-
26-
deno install --allow-net='x.nest.land,cdn.deno.land,api.deno.land,raw.githubusercontent.com,github.com,api.github.com' --allow-read='.' --allow-write='deps.ts' https://deno.land/x/[email protected]/mod.ts
27-
dmm [SUBCOMMAND]
28-
29-
SUBCOMMANDS
30-
31-
check [modules]
32-
Checks the specified modules for newer version. Will check all if modules are
33-
omitted.
34-
35-
update [modules]
36-
Updates the specified modules to the newest version. Will update all if modules
37-
are omitted.
38-
39-
info [modules]
40-
Displays information about the given modules, be it std or 3rd party. The 3rd
41-
party module must be referenced at https://deno.land/x/
42-
43-
help, --help
44-
Prints the help message
45-
46-
version, --version
47-
Prints the current dmm version
48-
49-
50-
EXAMPLE USAGE
51-
52-
Install dmm
53-
deno install --allow-net='x.nest.land,cdn.deno.land,api.deno.land,raw.githubusercontent.com,github.com,api.github.com' --allow-read='.' --allow-write='deps.ts' https://deno.land/x/[email protected]/mod.ts
54-
55-
Check a single module
56-
dmm check fs
57-
58-
Update a single module
59-
dmm update fs
60-
61-
Get information about a module
62-
dmm info http
63-
64-
`,
22+
expectedHelpMessage,
6523
);
6624
assertEquals(stderr, "");
6725
assertEquals(status.code, 0);

tests/integration/help_test.ts

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { assertEquals, colours } from "../../deps.ts";
22
import { version } from "../../src/commands/version.ts";
33
import { outOfDateDepsDir, upToDateDepsDir } from "./test_constants.ts";
4+
import { expectedHelpMessage } from "../data/expected_help_message.ts";
45

56
Deno.test({
67
name: "Help",
@@ -20,50 +21,7 @@ Deno.test({
2021
assertEquals(stderr, "");
2122
assertEquals(
2223
stdout,
23-
`
24-
A module manager for Deno.
25-
26-
USAGE
27-
28-
deno install --allow-net='x.nest.land,cdn.deno.land,api.deno.land,raw.githubusercontent.com,github.com,api.github.com' --allow-read='.' --allow-write='deps.ts' https://deno.land/x/[email protected]/mod.ts
29-
dmm [SUBCOMMAND]
30-
31-
SUBCOMMANDS
32-
33-
check [modules]
34-
Checks the specified modules for newer version. Will check all if modules are
35-
omitted.
36-
37-
update [modules]
38-
Updates the specified modules to the newest version. Will update all if modules
39-
are omitted.
40-
41-
info [modules]
42-
Displays information about the given modules, be it std or 3rd party. The 3rd
43-
party module must be referenced at https://deno.land/x/
44-
45-
help, --help
46-
Prints the help message
47-
48-
version, --version
49-
Prints the current dmm version
50-
51-
52-
EXAMPLE USAGE
53-
54-
Install dmm
55-
deno install --allow-net='x.nest.land,cdn.deno.land,api.deno.land,raw.githubusercontent.com,github.com,api.github.com' --allow-read='.' --allow-write='deps.ts' https://deno.land/x/[email protected]/mod.ts
56-
57-
Check a single module
58-
dmm check fs
59-
60-
Update a single module
61-
dmm update fs
62-
63-
Get information about a module
64-
dmm info http
65-
66-
`,
24+
expectedHelpMessage,
6725
);
6826
assertEquals(status.code, 0);
6927
assertEquals(status.success, true);

0 commit comments

Comments
 (0)