Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
khrj committed Feb 17, 2021
0 parents commit ede4a9d
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .dprintrc.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
31 changes: 31 additions & 0 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
@@ -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

6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"deno.enable": true,
"deno.import_intellisense_origins": {
"https://deno.land": true
}
}
18 changes: 18 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Copyright 2021 Khushraj Rathod ([email protected]) <https://www.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.
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<div align="center">
<img src="assets/logo.svg" width="400" height="400" alt="blueprint illustration">
<h1>Blueprint</h1>
<p>
<b>Starter for Deno Modules</b>
</p>
<p>
<img alt="build status" src="https://img.shields.io/github/workflow/status/KhushrajRathod/Blueprint/Deno?label=checks" >
<img alt="language" src="https://img.shields.io/github/languages/top/KhushrajRathod/Blueprint" >
<img alt="code size" src="https://img.shields.io/github/languages/code-size/KhushrajRathod/Blueprint">
<img alt="issues" src="https://img.shields.io/github/issues/KhushrajRathod/Blueprint" >
<img alt="license" src="https://img.shields.io/github/license/KhushrajRathod/Blueprint">
<img alt="version" src="https://img.shields.io/github/v/release/KhushrajRathod/Blueprint">
</p>
<p>
<b><a href="https://deno.land/x/blueprint">View on deno.land</a></b>
</p>
<br>
<br>
<br>
</div>

## Usage

```ts
import {} from 'https://deno.land/x/[email protected]/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)
1 change: 1 addition & 0 deletions assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"
2 changes: 2 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import {} from "./deps.ts"
console.log("Hello world")
17 changes: 17 additions & 0 deletions test.ts
Original file line number Diff line number Diff line change
@@ -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)
})

0 comments on commit ede4a9d

Please sign in to comment.