Skip to content

Commit

Permalink
feature: initial implementation of yeetus
Browse files Browse the repository at this point in the history
  • Loading branch information
adammy committed Dec 20, 2020
0 parents commit 2285d51
Show file tree
Hide file tree
Showing 14 changed files with 4,554 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[[{src}/**.{ts,json,js}]]
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
19 changes: 19 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12
},
"plugins": [
"@typescript-eslint"
],
"rules": { }
}
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 15

- name: Install Dependencies
run: npm install

- name: Lint
run: npm run lint

- name: Test
run: npm run test

- name: Build
run: npm run build
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
release:
types: [created]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 15
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: npm install

- name: Lint
run: npm run lint

- name: Test
run: npm run test

- name: Build
run: npm run build

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tsconfig.json
src
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Yeetus
[![Status](https://github.com/adammy/yeetus/workflows/CI/badge.svg)](https://github.com/adammy/yeetus/actions)

For those moments when throwing an error isn't good enough.

## Usage
1. Install this life-changing software
```shell
npm install --save yeetus
```
2. Use it
```typescript
import { yeet } from 'yeetus';

function failsMostEverytime() {
yeet("Faaaaaaack");
}
```

3. Profit
Loading

0 comments on commit 2285d51

Please sign in to comment.