Skip to content

Commit

Permalink
feat: 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorten committed Jun 25, 2021
1 parent 44cb671 commit 13a121e
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 39 deletions.
6 changes: 6 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# ChangeLog

## [1.3.0] - 25-05-2021

- feat: support Deno 1.11.2
- feat: upgrade std to 0.99.0
- feat: upgrade opine to 1.5.3

## [1.2.0] - 02-05-2021

- feat: support Deno 1.9.2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: make deps
- uses: denolib/setup-deno@v2
with:
deno-version: 1.9.2
deno-version: 1.11.2
- run: make typedoc
- run: make ci
- uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-egg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
with:
deno-version: 1.8.3
- run: deno install -A -f --unstable -n eggs https://x.nest.land/eggs@0.3.5/eggs.ts
deno-version: 1.11.2
- run: deno install -A -f --unstable -n eggs https://x.nest.land/eggs@0.3.8/eggs.ts
- run: |
export PATH="/home/runner/.deno/bin:$PATH"
eggs link ${NEST_LAND_KEY}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
deno-version: [1.9.2]
deno-version: [1.11.2]

runs-on: ${{ matrix.os }}

Expand All @@ -25,7 +25,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
deno-version: [1.9.2]
deno-version: [1.11.2]

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"deno.enable": true,
"deno.unstable": true,
"deno.import_intellisense_autodiscovery": true,
"deno.lint": true,
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"[typescriptreact]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "denoland.vscode-deno"
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</p>
<p align="center">
<a href="https://deno.land/x/opinecli"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Flatest-version%2Fx%2Fopinecli%2Fopine-cli.ts" alt="opine-cli latest /x/ version" /></a>
<a href="https://github.com/denoland/deno/blob/main/Releases.md"><img src="https://img.shields.io/badge/deno-^1.9.2-brightgreen?logo=deno" alt="Minimum supported Deno version" /></a>
<a href="https://github.com/denoland/deno/blob/main/Releases.md"><img src="https://img.shields.io/badge/deno-^1.11.2-brightgreen?logo=deno" alt="Minimum supported Deno version" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/opinecli/opine-cli.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fdep-count%2Fx%2Fopinecli%2Fopine-cli.ts" alt="opine-cli dependency count" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/opinecli/opine-cli.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fupdates%2Fx%2Fopinecli%2Fopine-cli.ts" alt="opine-cli dependency outdatedness" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/opinecli/opine-cli.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fcache-size%2Fx%2Fopinecli%2Fopine-cli.ts" alt="opine-cli cached size" /></a>
Expand All @@ -37,7 +37,7 @@
## Installation

```console
$ deno install -f -q --allow-read --allow-write --allow-net --unstable https://deno.land/x/opinecli@1.2.0/opine-cli.ts
$ deno install -f -q --allow-read --allow-write --allow-net --unstable https://deno.land/x/opinecli@1.3.0/opine-cli.ts
```

And follow any suggestions to update your `PATH` environment variable.
Expand Down
6 changes: 3 additions & 3 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export {
fromFileUrl,
join,
sep,
} from "https://deno.land/std@0.95.0/path/mod.ts";
export { Command } from "https://deno.land/x/cliffy@v0.18.2/command/mod.ts";
export { Confirm } from "https://deno.land/x/cliffy@v0.18.2/prompt/mod.ts";
} from "https://deno.land/std@0.99.0/path/mod.ts";
export { Command } from "https://deno.land/x/cliffy@v0.19.2/command/mod.ts";
export { Confirm } from "https://deno.land/x/cliffy@v0.19.2/prompt/mod.ts";
export { renderToString } from "https://deno.land/x/dejs@0.9.3/mod.ts";
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h1 align="center">Opine CLI</h1>
</p>
<p align="center">
<a href="https://deno.land/x/opinecli"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Flatest-version%2Fx%2Fopinecli%2Fopine-cli.ts" alt="opine-cli latest /x/ version" /></a>
<a href="https://github.com/denoland/deno/blob/main/Releases.md"><img src="https://img.shields.io/badge/deno-^1.9.2-brightgreen?logo=deno" alt="Minimum supported Deno version" /></a>
<a href="https://github.com/denoland/deno/blob/main/Releases.md"><img src="https://img.shields.io/badge/deno-^1.11.2-brightgreen?logo=deno" alt="Minimum supported Deno version" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/opinecli/opine-cli.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fdep-count%2Fx%2Fopinecli%2Fopine-cli.ts" alt="opine-cli dependency count" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/opinecli/opine-cli.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fupdates%2Fx%2Fopinecli%2Fopine-cli.ts" alt="opine-cli dependency outdatedness" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/opinecli/opine-cli.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fcache-size%2Fx%2Fopinecli%2Fopine-cli.ts" alt="opine-cli cached size" /></a>
Expand All @@ -101,7 +101,7 @@ <h2>Table of Contents</h2>
<a href="#installation" id="installation" style="color: inherit; text-decoration: none;">
<h2>Installation</h2>
</a>
<pre><code class="language-console"><span class="hljs-meta">$</span><span class="bash"> deno install -f -q --allow-read --allow-write --allow-net --unstable https://deno.land/x/opinecli@1.2.0/opine-cli.ts</span>
<pre><code class="language-console"><span class="hljs-meta">$</span><span class="bash"> deno install -f -q --allow-read --allow-write --allow-net --unstable https://deno.land/x/opinecli@1.3.0/opine-cli.ts</span>
</code></pre>
<p>And follow any suggestions to update your <code>PATH</code> environment variable.</p>
<a href="#quick-start" id="quick-start" style="color: inherit; text-decoration: none;">
Expand Down
2 changes: 1 addition & 1 deletion egg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opinecli",
"description": "Opine's application generator.",
"version": "1.2.0",
"version": "1.3.0",
"repository": "https://github.com/cmorten/opine-cli",
"stable": true,
"entry": "./opine-cli.ts",
Expand Down
24 changes: 12 additions & 12 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ main();

/**
* Prompt for confirmation on STDOUT / STDIN
*
*
* @param {string} msg
* @returns {Promise<boolean>}
* @private
Expand All @@ -43,8 +43,8 @@ async function confirm(message: string): Promise<boolean> {

/**
* Read a remote file.
*
* @param {string} from
*
* @param {string} from
* @returns {Promise<string>}
* @private
*/
Expand All @@ -56,8 +56,8 @@ async function readRemote(from: string): Promise<string> {

/**
* Reads a file.
*
* @param {string} from
*
* @param {string} from
* @returns {string|Promise<string>}
* @private
*/
Expand All @@ -72,7 +72,7 @@ function read(from: string): string | Promise<string> {
/**
* Copy file from template directory.
*
* @param {string} from
* @param {string} from
* @param {string} to
* @private
*/
Expand All @@ -82,7 +82,7 @@ async function copyTemplate(from: string, to: string): Promise<void> {

/**
* Copy multiple files from template directory.
*
*
* @param {string} fromDir
* @param {string} toDir
* @param {string} nameGlob
Expand Down Expand Up @@ -146,7 +146,7 @@ async function createApplication(
};
deps.locals.view = {
render:
`export { renderFile } from "https://deno.land/x/eta@v1.12.1/mod.ts";`,
`export { renderFile } from "https://deno.land/x/eta@v1.12.2/mod.ts";`,
};

flags += " --unstable";
Expand Down Expand Up @@ -229,7 +229,7 @@ function emptyDirectory(directory: string): boolean {

/**
* Determine the OS type.
*
*
* @returns {string}
* @private
*/
Expand All @@ -249,7 +249,7 @@ function osType(): "darwin" | "linux" | "windows" {

/**
* Determine if launched from cmd.exe
*
*
* @returns {boolean}
* @private
*/
Expand All @@ -259,7 +259,7 @@ function launchedFromCmd(): boolean {

/**
* Load template file.
*
*
* @param {string} name
* @returns {object}
* @private
Expand Down Expand Up @@ -335,7 +335,7 @@ function write(file: string, str: string, mode?: number): void {

/**
* Get the template directory
*
*
* @returns {string}
* @private
*/
Expand Down
6 changes: 3 additions & 3 deletions src/templates/js/deps.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ export {
dirname,
fromFileUrl,
join,
} from "https://deno.land/std@0.95.0/path/mod.ts";
} from "https://deno.land/std@0.99.0/path/mod.ts";
export {
json,
opine,
Router,
serveStatic,
urlencoded,
} from "https://deno.land/x/opine@1.3.3/mod.ts";
<% if (view) { %>export type { ErrorRequestHandler } from "https://deno.land/x/opine@1.3.3/mod.ts";
} from "https://deno.land/x/opine@1.5.3/mod.ts";
<% if (view) { %>export type { ErrorRequestHandler } from "https://deno.land/x/opine@1.5.3/mod.ts";
export { createError } from "https://deno.land/x/http_errors@2.1.0/mod.ts";<% } %>
<% if (view) { %><% if (view.render) { %><%- view.render %><% } %><% } %>
2 changes: 1 addition & 1 deletion test/deps.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { expect } from "https://deno.land/x/expect@v0.2.6/mod.ts";
export { expect } from "https://deno.land/x/expect@v0.2.9/mod.ts";
12 changes: 6 additions & 6 deletions test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ export const TEST_TIMEOUT = 10000;

/**
* A no-op _describe_ method.
*
* @param name
* @param fn
*
* @param name
* @param fn
*/
export function describe(_name: string, fn: () => void | Promise<void>) {
fn();
Expand All @@ -17,9 +17,9 @@ export type Done = (err?: Error) => void;

/**
* An _it_ wrapper around `Deno.test`.
*
* @param name
* @param fn
*
* @param name
* @param fn
*/
export function it(
name: string,
Expand Down
4 changes: 2 additions & 2 deletions version.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Version of Opine CLI.
*/
export const VERSION = "1.2.0";
export const VERSION = "1.3.0";

/**
* Supported version of Deno.
*/
export const DENO_SUPPORTED_VERSIONS = ["1.9.2"];
export const DENO_SUPPORTED_VERSIONS = ["1.11.2"];

0 comments on commit 13a121e

Please sign in to comment.