diff --git a/.dprintrc.json b/.dprintrc.json new file mode 100644 index 0000000..10a0640 --- /dev/null +++ b/.dprintrc.json @@ -0,0 +1,26 @@ +{ + "$schema": "https://dprint.dev/schemas/v0.json", + "projectType": "openSource", + "incremental": true, + "typescript": { + "semiColons": "asi" + }, + "json": {}, + "markdown": {}, + "useTabs": false, + "indentWidth": 4, + "includes": [ + "**/*.{ts,tsx,js,jsx,json,md,rs}" + ], + "excludes": [ + "**/node_modules", + "**/*-lock.json", + "**/target", + "**/examples" + ], + "plugins": [ + "https://plugins.dprint.dev/typescript-0.40.1.wasm", + "https://plugins.dprint.dev/json-0.8.0.wasm", + "https://plugins.dprint.dev/markdown-0.5.1.wasm" + ] +} diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml new file mode 100644 index 0000000..7e57452 --- /dev/null +++ b/.github/workflows/deno.yml @@ -0,0 +1,31 @@ +# This workflow will install Deno and run `deno lint` on a stable Ubuntu build. + +name: Deno + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v2 + + - uses: denolib/setup-deno@v2 + with: + deno-version: v1.x + + - name: Cache Dependencies + run: deno cache --unstable deps.ts + + - name: Lint + run: deno lint --unstable + + - name: Test + run: deno test --unstable + diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4c304f7 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "deno.enable": true, + "deno.import_intellisense_origins": { + "https://deno.land": true + } +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..774dd6d --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ +Copyright 2021 Khushraj Rathod (me@khushrajrathod.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..060a077 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +
+ blueprint illustration +

Blueprint

+

+ Starter for Deno Modules +

+

+ build status + language + code size + issues + license + version +

+

+ View on deno.land +

+
+
+
+
+ +## Usage + +```ts +import {} from 'https://deno.land/x/blueprint@1.0.0/mod.ts +``` + +## Supporters + +[![Stargazers repo roster for @KhushrajRathod/Blueprint](https://reporoster.com/stars/KhushrajRathod/Blueprint)](https://github.com/KhushrajRathod/Blueprint/stargazers) + +[![Forkers repo roster for @KhushrajRathod/Blueprint](https://reporoster.com/forks/KhushrajRathod/Blueprint)](https://github.com/KhushrajRathod/Blueprint/network/members) + +## Related + +- [Deno modules](https://github.com/KhushrajRathod/DenoModules) diff --git a/assets/logo.svg b/assets/logo.svg new file mode 100644 index 0000000..1a8d902 --- /dev/null +++ b/assets/logo.svg @@ -0,0 +1 @@ +design_science \ No newline at end of file diff --git a/deps.ts b/deps.ts new file mode 100644 index 0000000..c6f5d70 --- /dev/null +++ b/deps.ts @@ -0,0 +1 @@ +export { assertEquals } from "https://deno.land/std@0.87.0/testing/asserts.ts" diff --git a/mod.ts b/mod.ts new file mode 100644 index 0000000..f32f8c5 --- /dev/null +++ b/mod.ts @@ -0,0 +1,2 @@ +import {} from "./deps.ts" +console.log("Hello world") \ No newline at end of file diff --git a/test.ts b/test.ts new file mode 100644 index 0000000..314086d --- /dev/null +++ b/test.ts @@ -0,0 +1,17 @@ +// See https://deno.land/manual/testing +import { assertEquals } from "./deps.ts" + +Deno.test("hello world #1", () => { + const x = 1 + 2 + assertEquals(x, 3) +}) + +Deno.test("hello world #2", () => { + const x = 2 + 2 + assertEquals(x, 4) +}) + +Deno.test("hello world #3", () => { + const x = 3 + 2 + assertEquals(x, 5) +})