Skip to content

Commit

Permalink
Add scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
gitzhou committed Jan 7, 2025
1 parent ad1cbf1 commit 7ee0bcf
Show file tree
Hide file tree
Showing 14 changed files with 4,592 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build

on:
push:
paths:
- 'l1/**'

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ '20.x', '22.x' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Run tests
run: |
cd l1
npm install
npm test
9 changes: 9 additions & 0 deletions l1/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules/
dist/
out/
artifacts/
**/.env
**/scrypt.index.json
.vscode/*
!.vscode/launch.json
!.vscode/tasks.json
14 changes: 14 additions & 0 deletions l1/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"prefer-rest-params": "off",
"@typescript-eslint/no-unused-vars": "error"
}
}
13 changes: 13 additions & 0 deletions l1/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules/
dist/
out/
artifacts/
!logs/.keep
**/.env
**/scrypt.index.json
tsconfig-scryptTS.json
.vscode/*
!.vscode/launch.json
!.vscode/tasks.json
!.vscode/settings.json
.eslintcache
12 changes: 12 additions & 0 deletions l1/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"diff": true,
"require": "ts-node/register",
"extensions": ["ts"],
"spec": ["./tests/**/*.test.ts"],
"package": "./package.json",
"reporter": "spec",
"slow": "75",
"timeout": "120000",
"ui": "bdd",
"watch-files": ["./tests/**/*.test.ts"]
}
19 changes: 19 additions & 0 deletions l1/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
tsconfig.json
src/
tests/
.vscode
.husky
.eslint*
*.js.map
.travis.yml
*.log
.gitignore
.env
.env.example
.idea
.github
.mocharc.json
.mocharc-testnet.json
*.md
.prettierrc
.prettierignore
9 changes: 9 additions & 0 deletions l1/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
**/node_modules/
**/dist/
**/out/
**/artifacts/
**/.env
**/scrypt.index.json
**/.vscode/*
!**/.vscode/launch.json
!**/.vscode/tasks.json
14 changes: 14 additions & 0 deletions l1/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"endOfLine": "auto",
"overrides": [
{
"files": "*.ts",
"options": {
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "all",
"semi": true
}
}
]
}
Loading

0 comments on commit 7ee0bcf

Please sign in to comment.