-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from drashland/issue-#3-update-tests
Issue #3 update tests
- Loading branch information
Showing
11 changed files
with
555 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,15 +50,15 @@ As dmm only needs to read and write to your `deps.ts`, as well as requiring netw | |
|
||
*Install* | ||
``` | ||
$ deno install --allow-net --allow-read --allow-write https://deno.land/x/[email protected].0/mod.ts | ||
$ deno install --allow-net --allow-read --allow-write https://deno.land/x/[email protected].1/mod.ts | ||
$ dmm ... | ||
``` | ||
|
||
*Through the URL* | ||
|
||
If you are using this method, be sure to use the latest version of dmm in the command below | ||
``` | ||
$ deno run <permissions> https://deno.land/x/[email protected].0/mod.ts ... | ||
$ deno run <permissions> https://deno.land/x/[email protected].1/mod.ts ... | ||
``` | ||
|
||
In the examples below, dmm is installed and we will be using it that way to make the commands easier to read. | ||
|
@@ -78,10 +78,10 @@ Information on fmt | |
- Name: fmt | ||
- Description: Cannot retrieve descriptions for std modules | ||
- deno.land Link: https://deno.land/std@0.57.0/fmt | ||
- deno.land Link: https://deno.land/std@0.58.0/fmt | ||
- GitHub Repository: https://github.com/denoland/deno/tree/master/std/fmt | ||
- Import Statement: import * as fmt from "https://deno.land/std@0.57.0/fmt"; | ||
- Latest Version: 0.57.0 | ||
- Import Statement: import * as fmt from "https://deno.land/std@0.58.0/fmt"; | ||
- Latest Version: 0.58.0 | ||
``` | ||
|
||
|
@@ -94,7 +94,7 @@ export { Drash } from "https://deno.land/x/[email protected]/mod.ts"; // out of date | |
|
||
import * as fs from "https://deno.land/[email protected]/fs/mod.ts"; // out of date | ||
|
||
import * as colors from "https://deno.land/std@0.57.0/fmt/colors.ts"; // up to date | ||
import * as colors from "https://deno.land/std@0.58.0/fmt/colors.ts"; // up to date | ||
|
||
export { fs, colors } | ||
``` | ||
|
@@ -109,7 +109,7 @@ Now we want to check if any of our dependencies need updating, but we don't want | |
$ dmm check | ||
... | ||
drash can be updated from v1.0.0 to v1.0.5 | ||
fs can be updated from 0.53.0 to 0.57.0 | ||
fs can be updated from 0.53.0 to 0.58.0 | ||
... | ||
``` | ||
|
||
|
@@ -121,7 +121,7 @@ Lets update our dependencies as some are out of date: | |
$ dmm update | ||
... | ||
drash was updated from v1.0.0 to v1.0.5 | ||
fs was updated from 0.53.0 to 0.57.0 | ||
fs was updated from 0.53.0 to 0.58.0 | ||
... | ||
``` | ||
|
||
|
@@ -130,9 +130,9 @@ Now lets check the `deps.ts` file, and you will notice the versions have been mo | |
```typescript | ||
export { Drash } from "https://deno.land/x/[email protected]/mod.ts"; // was out of date | ||
|
||
import * as fs from "https://deno.land/std@0.57.0/fs/mod.ts"; // was out of date | ||
import * as fs from "https://deno.land/std@0.58.0/fs/mod.ts"; // was out of date | ||
|
||
import * as colors from "https://deno.land/std@0.57.0/fmt/colors.ts"; | ||
import * as colors from "https://deno.land/std@0.58.0/fmt/colors.ts"; | ||
|
||
export { fs, colors } | ||
``` | ||
|
@@ -147,7 +147,7 @@ $ dmm --help | |
A module manager for Deno. | ||
USAGE: | ||
deno run --allow-read --allow-net [--allow-write] https://deno.land/x/[email protected].0/mod.ts [ARGS] [MODULES] | ||
deno run --allow-read --allow-net [--allow-write] https://deno.land/x/[email protected].1/mod.ts [ARGS] [MODULES] | ||
dmm [ARGS] [MODULES] | ||
|
@@ -171,9 +171,9 @@ OPTIONS: | |
EXAMPLE USAGE: | ||
Assume you are importing an out of date version of `fs` from `std`. | ||
deno run --allow-net --allow-read https://deno.land/x/[email protected].0/mod.ts check fs | ||
deno run --allow-net --allow-read --allow-write https://deno.land/x/[email protected].0/mod.ts update fs | ||
deno run --allow-net https://deno.land/x/[email protected].0/mod.ts info http | ||
deno run --allow-net --allow-read https://deno.land/x/[email protected].1/mod.ts check fs | ||
deno run --allow-net --allow-read --allow-write https://deno.land/x/[email protected].1/mod.ts update fs | ||
deno run --allow-net https://deno.land/x/[email protected].1/mod.ts info http | ||
dmm info http | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ export const helpMessage: string = "\n" + | |
"\n" + | ||
"USAGE:" + | ||
"\n" + | ||
" deno run --allow-read --allow-net [--allow-write] https://deno.land/x/[email protected].0/mod.ts [ARGS] [MODULES]" + | ||
" deno run --allow-read --allow-net [--allow-write] https://deno.land/x/[email protected].1/mod.ts [ARGS] [MODULES]" + | ||
"\n" + | ||
"\n" + | ||
" dmm [ARGS] [MODULES]" + | ||
|
@@ -45,11 +45,11 @@ export const helpMessage: string = "\n" + | |
"\n" + | ||
" Assume you are importing an out of date version of `fs` from `std`." + | ||
"\n" + | ||
" deno run --allow-net --allow-read https://deno.land/x/[email protected].0/mod.ts check fs" + | ||
" deno run --allow-net --allow-read https://deno.land/x/[email protected].1/mod.ts check fs" + | ||
"\n" + | ||
" deno run --allow-net --allow-read --allow-write https://deno.land/x/[email protected].0/mod.ts update fs" + | ||
" deno run --allow-net --allow-read --allow-write https://deno.land/x/[email protected].1/mod.ts update fs" + | ||
"\n" + | ||
" deno run --allow-net https://deno.land/x/[email protected].0/mod.ts info http" + | ||
" deno run --allow-net https://deno.land/x/[email protected].1/mod.ts info http" + | ||
"\n" + | ||
" dmm info http" + | ||
"\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const version = "1.1.0"; | ||
const version = "1.1.1"; | ||
export const versionMessage = `dmm ${version}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ Deno.test({ | |
"A module manager for Deno.\n" + | ||
"\n" + | ||
"USAGE:\n" + | ||
" deno run --allow-read --allow-net [--allow-write] https://deno.land/x/[email protected].0/mod.ts [ARGS] [MODULES]\n" + | ||
" deno run --allow-read --allow-net [--allow-write] https://deno.land/x/[email protected].1/mod.ts [ARGS] [MODULES]\n" + | ||
"\n" + | ||
" dmm [ARGS] [MODULES]\n" + | ||
"\n" + | ||
|
@@ -51,9 +51,9 @@ Deno.test({ | |
"\n" + | ||
"EXAMPLE USAGE:\n" + | ||
" Assume you are importing an out of date version of `fs` from `std`.\n" + | ||
" deno run --allow-net --allow-read https://deno.land/x/[email protected].0/mod.ts check fs\n" + | ||
" deno run --allow-net --allow-read --allow-write https://deno.land/x/[email protected].0/mod.ts update fs\n" + | ||
" deno run --allow-net https://deno.land/x/[email protected].0/mod.ts info http\n" + | ||
" deno run --allow-net --allow-read https://deno.land/x/[email protected].1/mod.ts check fs\n" + | ||
" deno run --allow-net --allow-read --allow-write https://deno.land/x/[email protected].1/mod.ts update fs\n" + | ||
" deno run --allow-net https://deno.land/x/[email protected].1/mod.ts info http\n" + | ||
" dmm info http\n" + | ||
"\n", | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,4 @@ import * as fs from "https://deno.land/[email protected]/fs/mod.ts"; // out of date | |
|
||
import * as colors from "https://deno.land/[email protected]/fmt/colors.ts"; // out to date | ||
|
||
import { Drash as drash } from "https://deno.land/x/[email protected]/mod.ts"; // up to date | ||
|
||
export { Drash, fs, colors }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; // out of date | ||
|
||
import * as fs from "https://deno.land/[email protected]/fs/mod.ts"; // out of date | ||
|
||
import * as colors from "https://deno.land/[email protected]/fmt/colors.ts"; // out to date | ||
|
||
export { Drash, fs, colors }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; // up to date | ||
|
||
import * as fs from "https://deno.land/std@0.58.0/fs/mod.ts"; // up to date | ||
import * as fs from "https://deno.land/std@0.59.0/fs/mod.ts"; // up to date | ||
|
||
import * as colors from "https://deno.land/[email protected]/fmt/colors.ts"; // up to date | ||
|
||
import { Drash as drash } from "https://deno.land/x/[email protected]/mod.ts"; // up to date | ||
import * as colors from "https://deno.land/[email protected]/fmt/colors.ts"; // up to date | ||
|
||
export { Drash, fs, colors }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Drash } from "https://deno.land/x/[email protected]/mod.ts"; // up to date | ||
|
||
import * as fs from "https://deno.land/[email protected]/fs/mod.ts"; // up to date | ||
|
||
import * as colors from "https://deno.land/[email protected]/fmt/colors.ts"; // up to date | ||
|
||
export { Drash, fs, colors }; |
Oops, something went wrong.