Skip to content

Commit 137f362

Browse files
committed
initlialize
0 parents  commit 137f362

35 files changed

+12375
-0
lines changed

.babel.cjs.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": [["@babel/transform-modules-commonjs"], ["annotate-pure-calls"]]
3+
}

.babel.mjs.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": [["annotate-pure-calls"]]
3+
}

.changeset/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@1.6.4/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "Effect-TS/remix-plugin" }],
4+
"commit": false,
5+
"linked": [],
6+
"access": "restricted",
7+
"baseBranch": "main",
8+
"updateInternalDependencies": "patch",
9+
"ignore": []
10+
}

.changeset/hip-years-explain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/remix-plugin": patch
3+
---
4+
5+
First alpha release

.eslintrc.cjs

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/* eslint-disable no-undef */
2+
module.exports = {
3+
ignorePatterns: ["build", "examples", "dist", "dtslint", "*.mjs", "docs", "*.md"],
4+
parser: "@typescript-eslint/parser",
5+
parserOptions: {
6+
ecmaVersion: 2018,
7+
sourceType: "module"
8+
},
9+
settings: {
10+
"import/parsers": {
11+
"@typescript-eslint/parser": [".ts", ".tsx"]
12+
},
13+
"import/resolver": {
14+
typescript: {
15+
alwaysTryTypes: true
16+
}
17+
}
18+
},
19+
extends: [
20+
"eslint:recommended",
21+
"plugin:@typescript-eslint/eslint-recommended",
22+
"plugin:@typescript-eslint/recommended",
23+
"plugin:@repo-tooling/dprint/recommended"
24+
],
25+
plugins: ["deprecation", "import", "sort-destructure-keys", "simple-import-sort", "codegen"],
26+
rules: {
27+
"codegen/codegen": "error",
28+
"no-fallthrough": "off",
29+
"no-irregular-whitespace": "off",
30+
"object-shorthand": "error",
31+
"prefer-destructuring": "off",
32+
"sort-imports": "off",
33+
"no-unused-vars": "off",
34+
"prefer-rest-params": "off",
35+
"prefer-spread": "off",
36+
"import/first": "error",
37+
"import/no-cycle": "error",
38+
"import/newline-after-import": "error",
39+
"import/no-duplicates": "error",
40+
"import/no-unresolved": "off",
41+
"import/order": "off",
42+
"simple-import-sort/imports": "off",
43+
"sort-destructure-keys/sort-destructure-keys": "error",
44+
"deprecation/deprecation": "off",
45+
"@typescript-eslint/array-type": ["warn", { "default": "generic", "readonly": "generic" }],
46+
"@typescript-eslint/member-delimiter-style": 0,
47+
"@typescript-eslint/no-non-null-assertion": "off",
48+
"@typescript-eslint/ban-types": "off",
49+
"@typescript-eslint/no-explicit-any": "off",
50+
"@typescript-eslint/no-empty-interface": "off",
51+
"@typescript-eslint/consistent-type-imports": "warn",
52+
"@typescript-eslint/no-unused-vars": ["error", {
53+
"argsIgnorePattern": "^_",
54+
"varsIgnorePattern": "^_"
55+
}],
56+
"@typescript-eslint/ban-ts-comment": "off",
57+
"@typescript-eslint/camelcase": "off",
58+
"@typescript-eslint/explicit-function-return-type": "off",
59+
"@typescript-eslint/explicit-module-boundary-types": "off",
60+
"@typescript-eslint/interface-name-prefix": "off",
61+
"@typescript-eslint/no-array-constructor": "off",
62+
"@typescript-eslint/no-use-before-define": "off",
63+
"@typescript-eslint/no-namespace": "off",
64+
"@repo-tooling/dprint/dprint": [
65+
"error",
66+
{
67+
config: {
68+
"indentWidth": 2,
69+
"lineWidth": 120,
70+
"semiColons": "asi",
71+
"quoteStyle": "alwaysDouble",
72+
"trailingCommas": "never",
73+
"operatorPosition": "maintain",
74+
"arrowFunction.useParentheses": "force"
75+
}
76+
}
77+
]
78+
}
79+
}

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [mikearnaldi]

.github/workflows/main.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Main Flow
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [16.17.1]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- uses: pnpm/action-setup@v2.0.1
27+
name: Install pnpm
28+
id: pnpm-install
29+
with:
30+
version: 7
31+
run_install: false
32+
- name: Get pnpm store directory
33+
id: pnpm-cache
34+
run: |
35+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
36+
- uses: actions/cache@v3
37+
name: Setup pnpm cache
38+
with:
39+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
40+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41+
restore-keys: |
42+
${{ runner.os }}-pnpm-store-
43+
- run: pnpm install
44+
- run: pnpm run build
45+
- run: pnpm run circular
46+
- run: pnpm run lint
47+
- name: Create Release Pull Request or Publish
48+
id: changesets
49+
uses: changesets/action@v1
50+
with:
51+
version: pnpm run version
52+
publish: pnpm exec changeset publish
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/pr.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: PR Flow
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "main"
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [16.17.1]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- uses: pnpm/action-setup@v2.0.1
28+
name: Install pnpm
29+
id: pnpm-install
30+
with:
31+
version: 7
32+
run_install: false
33+
- name: Get pnpm store directory
34+
id: pnpm-cache
35+
run: |
36+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
37+
- uses: actions/cache@v3
38+
name: Setup pnpm cache
39+
with:
40+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
41+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42+
restore-keys: |
43+
${{ runner.os }}-pnpm-store-
44+
- run: pnpm install
45+
- run: pnpm run build
46+
- run: pnpm run circular
47+
- run: pnpm run lint

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
coverage/
2+
*.tsbuildinfo
3+
node_modules/
4+
yarn-error.log
5+
.ultra.cache.json
6+
.DS_Store
7+
tmp/
8+
build/
9+
dist/
10+
docs/modules

.gitpod.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tasks:
2+
- init: npm install -g pnpm && pnpm install && pnpm build
3+
github:
4+
prebuilds:
5+
addCheck: true
6+
vscode:
7+
extensions:
8+
- dbaeumer.vscode-eslint

0 commit comments

Comments
 (0)