Skip to content

Commit 413bfb8

Browse files
committed
feat: initial commit
0 parents  commit 413bfb8

36 files changed

+6801
-0
lines changed

.eslintrc.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:import/recommended",
7+
"plugin:import/typescript"
8+
],
9+
"ignorePatterns": ["**/dist/**", "**/node_modules/**", "**/rollup.config.ts"],
10+
"settings": {
11+
"import/parsers": {
12+
"@typescript-eslint/parser": [".ts", ".tsx"]
13+
},
14+
"import/resolver": {
15+
"typescript": {
16+
"alwaysTryTypes": true,
17+
"project": [
18+
"tsconfig.json",
19+
"packages/*/tsconfig.json",
20+
"packages/*/tsconfig.*.json"
21+
]
22+
}
23+
}
24+
},
25+
"rules": {
26+
"import/no-named-as-default": "off",
27+
"import/no-named-as-default-member": "off"
28+
}
29+
}

.gitignore

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variable files
76+
.env
77+
.env.development.local
78+
.env.test.local
79+
.env.production.local
80+
.env.local
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
88+
out
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# Gatsby files
95+
.cache/
96+
# Comment in the public line in if your project uses Gatsby and not Next.js
97+
# https://nextjs.org/blog/next-9-1#public-directory-support
98+
# public
99+
100+
# vuepress build output
101+
.vuepress/dist
102+
103+
# vuepress v2.x temp and cache directory
104+
.temp
105+
.cache
106+
107+
# Serverless directories
108+
.serverless/
109+
110+
# FuseBox cache
111+
.fusebox/
112+
113+
# DynamoDB Local files
114+
.dynamodb/
115+
116+
# TernJS port file
117+
.tern-port
118+
119+
# Stores VSCode versions used for testing VSCode extensions
120+
.vscode-test
121+
122+
123+
pnpm-global
124+
packages/app/.env
125+
126+
.vercel
127+
.DS_Store
128+
#node-gyp builds
129+
packages/core/build
130+
# moon
131+
.moon/cache
132+
.moon/docker
133+
.rollup.cache

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpm commitlint --edit ${1}

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpm moon run :lint :format :typecheck --affected --status=staged
5+

.moon/project.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# https://moonrepo.dev/docs/config/global-project
2+
$schema: "https://moonrepo.dev/schemas/global-project.json"
3+
4+
fileGroups:
5+
configs:
6+
- "*.config.{js,cjs,mjs,ts}"
7+
- "*.json"
8+
sources:
9+
- "src/**/*"
10+
- "types/**/*"
11+
tests:
12+
- "tests/**/*.test.*"
13+
- "**/__tests__/**/*"
14+
dist:
15+
- "dist/**/*"
16+
17+
tasks:
18+
format:
19+
command: "prettier --config @in(0) --ignore-path @in(1) --check ."
20+
inputs:
21+
- "/.prettierrc.js"
22+
- "/.prettierignore"
23+
- "@globs(sources)"
24+
- "@globs(tests)"
25+
- "@globs(configs)"
26+
lint:
27+
command: "eslint ."
28+
inputs:
29+
- "@globs(sources)"
30+
- "@globs(tests)"
31+
- ".eslintignore"
32+
- ".eslintrc.js"
33+
- "/.eslintrc.js"
34+
- "tsconfig.json"
35+
- "tsconfig.*.json"
36+
37+
typecheck:
38+
command: "tsc --noEmit --pretty"
39+
inputs:
40+
- "@globs(sources)"
41+
- "@globs(tests)"
42+
- "tsconfig.json"
43+
- "/tsconfig.json"
44+
- "/tsconfig.base.json"
45+
46+
build:
47+
command: "rollup -c rollup.config.ts --configPlugin typescript"
48+
inputs:
49+
- "@globs(sources)"
50+
- "rollup.config.ts"
51+
outputs:
52+
- "dist/"
53+
deps:
54+
- "clean"
55+
- "typecheck"
56+
57+
clean:
58+
command: "rm -rf"
59+
args:
60+
- dist
61+
options:
62+
cache: false
63+
platform: system

.moon/toolchain.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# https://moonrepo.dev/docs/config/toolchain
2+
$schema: 'https://moonrepo.dev/schemas/toolchain.json'
3+
4+
node:
5+
version: 16.17.0
6+
syncVersionManagerConfig: 'nvm'
7+
addEnginesConstraint: true
8+
9+
packageManager: 'pnpm'
10+
pnpm:
11+
version: '7.18.2'
12+
13+
aliasPackageNames: 'name-only'
14+
15+
dedupeOnLockfileChange: false
16+
dependencyVersionFormat: 'workspace'
17+
18+
inferTasksFromScripts: true
19+
20+
syncProjectWorkspaceDependencies: true
21+
22+
typescript:
23+
createMissingConfig: false
24+
rootConfigFileName: 'tsconfig.json'
25+
rootOptionsConfigFileName: 'tsconfig.base.json'
26+
27+
routeOutDirToCache: false
28+
syncProjectReferences: true
29+
syncProjectReferencesToPaths: true

.moon/workspace.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# https://moonrepo.dev/docs/config/workspace
2+
$schema: 'https://moonrepo.dev/schemas/workspace.json'
3+
4+
projects:
5+
- 'packages/*'
6+
7+
vcs:
8+
manager: 'git'
9+
defaultBranch: 'main'

.nvmrc

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

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.rollup.cache
3+
dist
4+
tsconfig.json

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: [
3+
require("prettier-plugin-organize-imports"),
4+
],
5+
};

0 commit comments

Comments
 (0)