Skip to content

Commit

Permalink
fix: support remote installation
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorten committed Dec 23, 2020
1 parent 577b44d commit 23f89ae
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

## [0.1.1] - 23-12-2020

- fix: support remote installation

## [0.1.0] - 23-12-2020

- Initial creation of Opine's application generator.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ fmt-check:
@deno fmt --check $(FILES_TO_FORMAT)

install:
@deno install -f -q --allow-read=./ --allow-write --unstable ./opine-cli.ts
@deno install -f -q --allow-read --allow-write --unstable ./opine-cli.ts

lint:
@deno lint --unstable $(FILES_TO_FORMAT)

test:
@deno test --allow-run --allow-read=./ --allow-write ./test/
@deno test --allow-run --allow-read --allow-write ./test/

typedoc:
@rm -rf docs
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
## Installation

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

And follow any suggestions to update your `PATH` environment variable.
Expand Down
8 changes: 1 addition & 7 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
export {
dirname,
fromFileUrl,
join,
resolve,
sep,
} from "https://deno.land/std@0.82.0/path/mod.ts";
export { join, resolve, sep } from "https://deno.land/std@0.82.0/path/mod.ts";
export { Command } from "https://deno.land/x/cliffy@v0.16.0/command/mod.ts";
export { Confirm } from "https://deno.land/x/cliffy@v0.16.0/prompt/mod.ts";
export { renderFileToString } from "https://deno.land/x/dejs@0.9.3/mod.ts";
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,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 --unstable https://deno.land/x/opinecli@0.1.0/opine-cli.ts</span></code></pre>
<pre><code class="language-console"><span class="hljs-meta">$</span><span class="bash"> deno install -f -q --allow-read --allow-write --unstable https://deno.land/x/opinecli@0.1.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;">
<h2>Quick Start</h2>
Expand Down
4 changes: 1 addition & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {
Command,
Confirm,
dirname,
fromFileUrl,
join,
minimatch,
renderFileToString,
Expand All @@ -13,7 +11,7 @@ import { VERSION } from "../version.ts";

const MODE_0666 = parseInt("0666", 8);
const MODE_0755 = parseInt("0755", 8);
const __dirname = fromFileUrl(dirname(import.meta.url));
const __dirname = new URL(".", import.meta.url).pathname;
const TEMPLATE_DIR = join(__dirname, "templates");

const program = await new Command()
Expand Down

0 comments on commit 23f89ae

Please sign in to comment.