Skip to content

Commit 53b1eb0

Browse files
committed
initial commit
0 parents  commit 53b1eb0

File tree

100 files changed

+102584
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+102584
-0
lines changed

.c8rc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"reporter": ["html", "text"],
3+
"exclude": ["**/node_modules/**", "**/test/**", "**/*.d.ts"]
4+
}

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_size = 4
7+
8+
[*.{js,yml}]
9+
charset = utf-8
10+
indent_style = space
11+
indent_size = 2

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.yarn/** linguist-vendored
2+
/.yarn/releases/* binary
3+
/.yarn/plugins/**/* binary
4+
/.pnp.* binary linguist-generated

.github/workflows/linter.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Linter & Formatter
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
env:
12+
HUSKY: 0
13+
14+
jobs:
15+
linter:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Fetch Sources
19+
uses: actions/checkout@v4
20+
21+
- name: Enable Corepack
22+
run: corepack enable
23+
24+
- name: Setup Node.js 22.x
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 22.x
28+
cache: "yarn"
29+
30+
- name: Install dependencies
31+
run: yarn install --immutable --check-cache --check-resolutions
32+
33+
- name: Check yarn dedupe
34+
run: yarn dedupe --check
35+
36+
- name: Run prettier
37+
run: yarn run fmt:check
38+
39+
- name: Run eslint
40+
run: yarn run lint

.github/workflows/tests.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
env:
12+
HUSKY: 0
13+
14+
jobs:
15+
tests:
16+
name: Test (${{ matrix.os }})
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os:
22+
- windows-latest
23+
- ubuntu-latest
24+
- macos-latest
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
30+
- name: Enable Corepack
31+
if: matrix.os == 'windows-latest'
32+
run: corepack enable --install-directory 'C:\npm\prefix'
33+
34+
- name: Enable Corepack
35+
if: matrix.os != 'windows-latest'
36+
run: corepack enable
37+
38+
- name: Setup Node.js 22.x
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: 22.x
42+
cache: "yarn"
43+
44+
- name: Install dependencies
45+
env:
46+
YARN_ENABLE_HARDENED_MODE: false
47+
run: yarn install --immutable
48+
49+
- name: Build
50+
run: yarn build
51+
52+
- name: Run Tests
53+
run: yarn test

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.yarn/*
2+
!.yarn/patches
3+
!.yarn/plugins
4+
!.yarn/releases
5+
!.yarn/sdks
6+
!.yarn/versions
7+
8+
# Swap the comments on the following lines if you wish to use zero-installs
9+
# In that case, don't forget to run `yarn config set enableGlobalCache false`!
10+
# Documentation here: https://yarnpkg.com/features/caching#zero-installs
11+
12+
#!.yarn/cache
13+
.pnp.*
14+
node_modules
15+
16+
src/testing/out/
17+
18+
dist/
19+
output/

.husky/install.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Makes all husky runs silent when it shouldn't have run
2+
// And non-silent otherwise (direct installation of dependencies inside Tact repo)
3+
//
4+
// Taken from:
5+
// https://typicode.github.io/husky/how-to.html#ci-server-and-docker
6+
7+
const husky = (await import("husky")).default
8+
console.log(husky())

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
echo "Running pre-commit tasks" >&2
2+
yarn run fmt:check || (echo 'Please run `yarn run fmt` to autofix.' >&2 && exit 1)
3+
yarn run lint || (echo 'Please run `yarn run lint` to show the errors.' >&2 && exit 1)

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
src/instructions/asm.ts
2+
src/generator/instructions.ts
3+
examples/
4+
output/
5+
dist/
6+
coverage/
7+
scripts/

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

0 commit comments

Comments
 (0)