Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinitializing the project #3

Merged
merged 5 commits into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

31 changes: 14 additions & 17 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{
"extends": [
"@aero"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"rules": {
"no-unused-expressions": [
1,
{
"allowTernary": true
}
],
"curly": 0
}
}
"extends": [
"airbnb-base",
"plugin:prettier/recommended"
],
"plugins": [
"prettier"
],
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"prettier/prettier": "error"
}
}
28 changes: 0 additions & 28 deletions .github/workflows/eslint.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

name: Generate docs

on:
release:
types:
- created

jobs:
gh-pages:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
env:
NODE_ENV: development
- run: npm run generate-docs
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: docs
folder: docs
43 changes: 43 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
on:
pull_request:
branches:
- master

name: Pull request checks

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 14

- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: npm run lint

compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 14

- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: npm run build
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

name: GH-Pages

on:
release:
types:
- created

jobs:
gh-pages:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
env:
NODE_ENV: production
- run: npm run build
# TODO: implement npm login
- run: npm publish
28 changes: 0 additions & 28 deletions .github/workflows/testing.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
node_modules/
dist
node_modules
docs
.eslintcache
.idea
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "all"
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

6 changes: 0 additions & 6 deletions README.md

This file was deleted.

48 changes: 0 additions & 48 deletions http.js

This file was deleted.

Loading