Skip to content

Commit

Permalink
BREAKING: Remove check and info subcommands (#117)
Browse files Browse the repository at this point in the history
* BREAKING: Remove check and info subcommands

* fix: fixing tests; removing bumperFiles since we don't use it anymore

* fix: tests based on use-console-logger-branch

Co-authored-by: Eric Crooks <eric.crooks@gmail.com>
  • Loading branch information
ebebbington and crookse authored Dec 14, 2021
1 parent e38af7c commit c40a579
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 958 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v2

- name: Install Deno
uses: denolib/setup-deno@master
uses: denoland/setup-deno@v1

- name: Integration
run: |
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@

---

`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.
`dmm` is a simple CLI tool to bump your dependencies from your `deps.ts` to
their latest versions.

### Features

- Zero 3rd party dependencies
- Easy and simple to use
- Checks dependencies for newer versions
- Will update your dependencies for you
- Gives information on modules
- Accounts for 3rd party and Deno Standard modules
- Installation is optional
- No variants of `node_modules` and `package.json`
Expand Down
4 changes: 1 addition & 3 deletions console/bumper_ci_service.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { BumperService } from "https://raw.githubusercontent.com/drashland/services/master/ci/bumper_service.ts";
import { bumperFiles, preReleaseFiles } from "./bumper_ci_service_files.ts";
import { preReleaseFiles } from "./bumper_ci_service_files.ts";

const b = new BumperService("dmm", Deno.args);

if (b.isForPreRelease()) {
b.bump(preReleaseFiles);
} else {
b.bump(bumperFiles);
}

// As dmm was used to update the deps, coy the file over so we dont need to include this in bumper files
Expand Down
8 changes: 5 additions & 3 deletions console/bumper_ci_service_files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export const regexes = {
dmm_raw_github: /dmm\/v[0-9\.]+[0-9\.]+[0-9\.]/g,
};

export const preReleaseFiles = [
export const preReleaseFiles: {
filename: string;
replaceTheRegex: RegExp;
replaceWith: string;
}[] = [
{
filename: "./egg.json",
replaceTheRegex: regexes.egg_json,
Expand All @@ -26,5 +30,3 @@ export const preReleaseFiles = [
replaceWith: `version = "{{ thisModulesLatestVersion }}"`,
},
];

export const bumperFiles = [];
4 changes: 0 additions & 4 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Line } from "./deps.ts";
import { version } from "./src/commands/version.ts";
import { UpdateSubcommand } from "./src/commands/update.ts";
import { InfoSubcommand } from "./src/commands/info.ts";
import { CheckSubcommand } from "./src/commands/check.ts";

const c = new Line({
command: "dmm",
Expand All @@ -11,8 +9,6 @@ const c = new Line({
version: `v${version}`,
subcommands: [
UpdateSubcommand,
InfoSubcommand,
CheckSubcommand,
],
});

Expand Down
55 changes: 0 additions & 55 deletions src/commands/check.ts

This file was deleted.

59 changes: 0 additions & 59 deletions src/commands/info.ts

This file was deleted.

4 changes: 0 additions & 4 deletions tests/data/expected_help_message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@ SUBCOMMANDS
update
Update all dependencies in the \`deps.ts\` file in your CWD, or specify certain modules to update or a location to a dependency file.
info
Get information about any number of given dependencies.
check
Check if the given dependencies you hold are outdated. Will check all if modules are omitted. Ex: dmm info; dmm info drash fs
`;
Loading

0 comments on commit c40a579

Please sign in to comment.