Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 0e6350d

Browse files
committed
chore: initial commit
0 parents  commit 0e6350d

8 files changed

+406
-0
lines changed

.eslintrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"plugins": ["@typescript-eslint"],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended"
12+
]
13+
}

.gitignore

Lines changed: 286 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,286 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/macos,node,visualstudiocode,intellij+all
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,node,visualstudiocode,intellij+all
3+
4+
### Intellij+all ###
5+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
6+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
7+
8+
# User-specific stuff
9+
.idea/**/workspace.xml
10+
.idea/**/tasks.xml
11+
.idea/**/usage.statistics.xml
12+
.idea/**/dictionaries
13+
.idea/**/shelf
14+
15+
# AWS User-specific
16+
.idea/**/aws.xml
17+
18+
# Generated files
19+
.idea/**/contentModel.xml
20+
21+
# Sensitive or high-churn files
22+
.idea/**/dataSources/
23+
.idea/**/dataSources.ids
24+
.idea/**/dataSources.local.xml
25+
.idea/**/sqlDataSources.xml
26+
.idea/**/dynamic.xml
27+
.idea/**/uiDesigner.xml
28+
.idea/**/dbnavigator.xml
29+
30+
# Gradle
31+
.idea/**/gradle.xml
32+
.idea/**/libraries
33+
34+
# Gradle and Maven with auto-import
35+
# When using Gradle or Maven with auto-import, you should exclude module files,
36+
# since they will be recreated, and may cause churn. Uncomment if using
37+
# auto-import.
38+
# .idea/artifacts
39+
# .idea/compiler.xml
40+
# .idea/jarRepositories.xml
41+
# .idea/modules.xml
42+
# .idea/*.iml
43+
# .idea/modules
44+
# *.iml
45+
# *.ipr
46+
47+
# CMake
48+
cmake-build-*/
49+
50+
# Mongo Explorer plugin
51+
.idea/**/mongoSettings.xml
52+
53+
# File-based project format
54+
*.iws
55+
56+
# IntelliJ
57+
out/
58+
59+
# mpeltonen/sbt-idea plugin
60+
.idea_modules/
61+
62+
# JIRA plugin
63+
atlassian-ide-plugin.xml
64+
65+
# Cursive Clojure plugin
66+
.idea/replstate.xml
67+
68+
# SonarLint plugin
69+
.idea/sonarlint/
70+
71+
# Crashlytics plugin (for Android Studio and IntelliJ)
72+
com_crashlytics_export_strings.xml
73+
crashlytics.properties
74+
crashlytics-build.properties
75+
fabric.properties
76+
77+
# Editor-based Rest Client
78+
.idea/httpRequests
79+
80+
# Android studio 3.1+ serialized cache file
81+
.idea/caches/build_file_checksums.ser
82+
83+
### Intellij+all Patch ###
84+
# Ignore everything but code style settings and run configurations
85+
# that are supposed to be shared within teams.
86+
87+
.idea/*
88+
89+
!.idea/codeStyles
90+
!.idea/runConfigurations
91+
92+
### macOS ###
93+
# General
94+
.DS_Store
95+
.AppleDouble
96+
.LSOverride
97+
98+
# Icon must end with two \r
99+
Icon
100+
101+
102+
# Thumbnails
103+
._*
104+
105+
# Files that might appear in the root of a volume
106+
.DocumentRevisions-V100
107+
.fseventsd
108+
.Spotlight-V100
109+
.TemporaryItems
110+
.Trashes
111+
.VolumeIcon.icns
112+
.com.apple.timemachine.donotpresent
113+
114+
# Directories potentially created on remote AFP share
115+
.AppleDB
116+
.AppleDesktop
117+
Network Trash Folder
118+
Temporary Items
119+
.apdisk
120+
121+
### macOS Patch ###
122+
# iCloud generated files
123+
*.icloud
124+
125+
### Node ###
126+
# Logs
127+
logs
128+
*.log
129+
npm-debug.log*
130+
yarn-debug.log*
131+
yarn-error.log*
132+
lerna-debug.log*
133+
.pnpm-debug.log*
134+
135+
# Diagnostic reports (https://nodejs.org/api/report.html)
136+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
137+
138+
# Runtime data
139+
pids
140+
*.pid
141+
*.seed
142+
*.pid.lock
143+
144+
# Directory for instrumented libs generated by jscoverage/JSCover
145+
lib-cov
146+
147+
# Coverage directory used by tools like istanbul
148+
coverage
149+
*.lcov
150+
151+
# nyc test coverage
152+
.nyc_output
153+
154+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
155+
.grunt
156+
157+
# Bower dependency directory (https://bower.io/)
158+
bower_components
159+
160+
# node-waf configuration
161+
.lock-wscript
162+
163+
# Compiled binary addons (https://nodejs.org/api/addons.html)
164+
build/Release
165+
166+
# Dependency directories
167+
node_modules/
168+
jspm_packages/
169+
170+
# Snowpack dependency directory (https://snowpack.dev/)
171+
web_modules/
172+
173+
# TypeScript cache
174+
*.tsbuildinfo
175+
176+
# Optional npm cache directory
177+
.npm
178+
179+
# Optional eslint cache
180+
.eslintcache
181+
182+
# Optional stylelint cache
183+
.stylelintcache
184+
185+
# Microbundle cache
186+
.rpt2_cache/
187+
.rts2_cache_cjs/
188+
.rts2_cache_es/
189+
.rts2_cache_umd/
190+
191+
# Optional REPL history
192+
.node_repl_history
193+
194+
# Output of 'npm pack'
195+
*.tgz
196+
197+
# Yarn Integrity file
198+
.yarn-integrity
199+
200+
# dotenv environment variable files
201+
.env
202+
.env.development.local
203+
.env.test.local
204+
.env.production.local
205+
.env.local
206+
207+
# parcel-bundler cache (https://parceljs.org/)
208+
.cache
209+
.parcel-cache
210+
211+
# Next.js build output
212+
.next
213+
out
214+
215+
# Nuxt.js build / generate output
216+
.nuxt
217+
dist
218+
219+
# Gatsby files
220+
.cache/
221+
# Comment in the public line in if your project uses Gatsby and not Next.js
222+
# https://nextjs.org/blog/next-9-1#public-directory-support
223+
# public
224+
225+
# vuepress build output
226+
.vuepress/dist
227+
228+
# vuepress v2.x temp and cache directory
229+
.temp
230+
231+
# Docusaurus cache and generated files
232+
.docusaurus
233+
234+
# Serverless directories
235+
.serverless/
236+
237+
# FuseBox cache
238+
.fusebox/
239+
240+
# DynamoDB Local files
241+
.dynamodb/
242+
243+
# TernJS port file
244+
.tern-port
245+
246+
# Stores VSCode versions used for testing VSCode extensions
247+
.vscode-test
248+
249+
# yarn v2
250+
.yarn/cache
251+
.yarn/unplugged
252+
.yarn/build-state.yml
253+
.yarn/install-state.gz
254+
.pnp.*
255+
256+
### Node Patch ###
257+
# Serverless Webpack directories
258+
.webpack/
259+
260+
# Optional stylelint cache
261+
262+
# SvelteKit build / generate output
263+
.svelte-kit
264+
265+
### VisualStudioCode ###
266+
.vscode/*
267+
!.vscode/settings.json
268+
!.vscode/tasks.json
269+
!.vscode/launch.json
270+
!.vscode/extensions.json
271+
!.vscode/*.code-snippets
272+
273+
# Local History for Visual Studio Code
274+
.history/
275+
276+
# Built Visual Studio Code Extensions
277+
*.vsix
278+
279+
### VisualStudioCode Patch ###
280+
# Ignore all local history of files
281+
.history
282+
.ionide
283+
284+
# End of https://www.toptal.com/developers/gitignore/api/macos,node,visualstudiocode,intellij+all
285+
286+
.turbo

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"arrowParens": "always",
6+
"semi": false
7+
}

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# @polymorphic
2+
3+
## What's inside?
4+
5+
This turborepo uses [pnpm](https://pnpm.io) as a package manager. It includes the following packages:
6+
7+
### Packages
8+
9+
### Build
10+
11+
To build all apps and packages, run the following command:
12+
13+
```
14+
pnpm run build
15+
```
16+
17+
## Useful Links
18+
19+
Learn more about the power of Turborepo:
20+
21+
- [Pipelines](https://turborepo.org/docs/core-concepts/pipelines)
22+
- [Caching](https://turborepo.org/docs/core-concepts/caching)
23+
- [Remote Caching](https://turborepo.org/docs/core-concepts/remote-caching)
24+
- [Scoped Tasks](https://turborepo.org/docs/core-concepts/scopes)
25+
- [Configuration Options](https://turborepo.org/docs/reference/configuration)
26+
- [CLI Usage](https://turborepo.org/docs/reference/command-line-reference)

package.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "polymorphic",
3+
"version": "0.0.0",
4+
"private": true,
5+
"workspaces": [
6+
"packages/*"
7+
],
8+
"scripts": {
9+
"prepare": "husky install",
10+
"lint": "turbo run lint",
11+
"test": "turbo run test",
12+
"typecheck": "turbo run typecheck",
13+
"react": "pnpm --filter=@polymorphic/react-factory"
14+
},
15+
"devDependencies": {
16+
"@commitlint/cli": "17.1.2",
17+
"@commitlint/config-conventional": "17.1.0",
18+
"@typescript-eslint/eslint-plugin": "5.41.0",
19+
"@typescript-eslint/parser": "5.41.0",
20+
"@types/node": "18.11.7",
21+
"eslint": "8.26.0",
22+
"husky": "8.0.1",
23+
"lint-staged": "13.0.3",
24+
"prettier": "2.7.1",
25+
"turbo": "1.6.1",
26+
"typescript": "4.8.4"
27+
},
28+
"commitlint": {
29+
"extends": [
30+
"@commitlint/config-conventional"
31+
]
32+
},
33+
"lint-staged": {
34+
"**/*.{js,jsx,ts,tsx,json}": [
35+
"prettier --write"
36+
]
37+
},
38+
"engines": {
39+
"node": ">=18.0.0"
40+
},
41+
"packageManager": "[email protected]"
42+
}

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- 'packages/*'

tsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"module": "esnext",
5+
"lib": ["dom", "esnext"],
6+
"declaration": true,
7+
"sourceMap": true,
8+
"moduleResolution": "node",
9+
"skipLibCheck": true,
10+
"strict": true,
11+
"isolatedModules": true,
12+
"esModuleInterop": true,
13+
"allowSyntheticDefaultImports": true,
14+
"noEmit": false
15+
}
16+
}

0 commit comments

Comments
 (0)