-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(all): Add CI and Misti 0.3.1 support
Closes #5
- Loading branch information
Showing
8 changed files
with
1,372 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
"project": true | ||
}, | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", | ||
], | ||
ignorePatterns: ["src/detectors/templates"], | ||
plugins: [ | ||
"@typescript-eslint", | ||
], | ||
rules: { | ||
"@typescript-eslint/switch-exhaustiveness-check": "error", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^_", | ||
}, | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [22] | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout Blueprint Misti | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "yarn" | ||
|
||
- name: Install npm dependencies | ||
run: yarn install | ||
|
||
- name: Build | ||
run: | | ||
yarn build | ||
- name: Spellcheck code base | ||
run: | | ||
yarn spell | ||
- name: Run knip | ||
run: yarn knip | ||
|
||
- name: Check formatting with Prettier | ||
run: yarn fmt | ||
|
||
- name: Run ESLint | ||
run: yarn lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", | ||
"version": "0.2", | ||
"language": "en", | ||
"words": [ | ||
"nowarp", | ||
"Georgiy", | ||
"Komarov" | ||
], | ||
"flagWords": [], | ||
"ignorePaths": [ | ||
"tags", | ||
"*.fif", | ||
"node_modules", | ||
"dist" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"$schema": "https://unpkg.com/knip@5/schema.json", | ||
"entry": [ | ||
"src/index.ts", | ||
"" | ||
], | ||
"project": [ | ||
"src/**/*.ts" | ||
], | ||
"ignoreExportsUsedInFile": true, | ||
"ignoreDependencies": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@nowarp/blueprint-misti", | ||
"version": "0.3.1", | ||
"description": "Bluerpint Misti Plugin", | ||
"description": "Blueprint Misti Plugin", | ||
"bugs": "https://github.com/nowarp/blueprint-misti/issues", | ||
"main": "dist/index.js", | ||
"author": "Georgiy Komarov <[email protected]>", | ||
|
@@ -21,7 +21,11 @@ | |
"scripts": { | ||
"build": "tsc", | ||
"clean": "rm -rf dist", | ||
"fmt": "prettier --write src", | ||
"fmt": "prettier --check src", | ||
"lint": "eslint src", | ||
"spell": "cspell \"**\" --no-progress --exclude \"dist/**\" --exclude \"node_modules/**\" --exclude \"tags/**\" --exclude \"docs/**\"", | ||
"fix-all": "yarn fmt --write && yarn lint --fix", | ||
"test-all": "yarn spell && yarn knip && yarn fmt && yarn lint", | ||
"release": "yarn release-it" | ||
}, | ||
"devDependencies": { | ||
|
@@ -30,10 +34,13 @@ | |
"@ton/core": "^0.53.0", | ||
"@ton/crypto": "^3.2.0", | ||
"@ton/ton": "^13.9.0", | ||
"@types/babel__generator": "^7.6.8", | ||
"@types/babel__traverse": "^7.20.4", | ||
"@types/node": "^20.2.5", | ||
"prettier": "^3.2.5", | ||
"@typescript-eslint/eslint-plugin": "^7.0.4", | ||
"@typescript-eslint/parser": "^7.0.4", | ||
"cspell": "^8.14.4", | ||
"eslint": "^8.57.0", | ||
"knip": "^5.30.5", | ||
"prettier": "^3.3.3", | ||
"release-it": "^17.6.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
|
@@ -44,14 +51,7 @@ | |
"@ton/ton": ">=13.4.1" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "^7.23.6", | ||
"@babel/generator": "^7.23.6", | ||
"@babel/parser": "^7.23.6", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@babel/traverse": "^7.23.6", | ||
"@babel/types": "^7.23.6", | ||
"@nowarp/misti": "^0.3.0", | ||
"arg": "^5.0.2" | ||
"@nowarp/misti": "^0.3.1" | ||
}, | ||
"prettier": { | ||
"semi": true, | ||
|
@@ -66,7 +66,7 @@ | |
}, | ||
"release-it": { | ||
"hooks": { | ||
"before:release": "yarn clean && yarn build", | ||
"before:release": "yarn clean && yarn test-all && yarn build", | ||
"after:bump": "yarn build" | ||
}, | ||
"github": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.