Skip to content

Commit

Permalink
Merge pull request #119 from ardriveapp/dev
Browse files Browse the repository at this point in the history
PE-305: Merge cli v1.0.0 to `master`
  • Loading branch information
fedellen authored Oct 27, 2021
2 parents c3a097c + 499a7cf commit 1985578
Show file tree
Hide file tree
Showing 366 changed files with 15,272 additions and 1,726 deletions.
25 changes: 12 additions & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier"
],
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"no-console": 1,
"prettier/prettier": 2
"rules": {
"no-console": 0,
"prettier/prettier": 2,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"]
}
}
}
27 changes: 27 additions & 0 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js CI

on: [ push ]
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Read .nvmrc
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)

- name: Set Up node
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
cache: 'yarn'

- name: Install dependencies
run: yarn --immutable --immutable-cache

- name: Test and Build Codebase
run: yarn ci

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down Expand Up @@ -54,6 +55,7 @@ Sync
#Yarn
#https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
#zero installs
package-lock.json
.yarn/*
!.yarn/cache
!.yarn/patches
Expand All @@ -65,3 +67,4 @@ Sync
# Misc
.idea
*.db

3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged

yarn lint-staged --verbose
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn tsc --noEmit --pretty
1 change: 0 additions & 1 deletion .lintstagedrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
src/**/*.{js,ts,json}:
- prettier --write
- eslint --cache --fix
- tsc-files --noEmit
14 changes: 14 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use-strict';

process.env.NODE_ENV = 'test';

// Mocha configuration file
// Reference for options: https://github.com/mochajs/mocha/blob/master/example/config/.mocharc.js
module.exports = {
extension: ['ts'],
spec: ['**/*.test.ts'],
require: ['ts-node/register/transpile-only', 'source-map-support/register', 'tests/testSetup.ts'],
timeout: '3000',
parallel: true,
recursive: true
};
Loading

0 comments on commit 1985578

Please sign in to comment.