Skip to content

Commit 14e8bce

Browse files
committed
initial
0 parents  commit 14e8bce

File tree

124 files changed

+12026
-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.

124 files changed

+12026
-0
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{
6+
"repo": "Effect-TS/core"
7+
}
8+
],
9+
"commit": false,
10+
"linked": [],
11+
"access": "restricted",
12+
"baseBranch": "main",
13+
"updateInternalDependencies": "patch",
14+
"ignore": []
15+
}

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf

.eslintrc.cjs

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/* eslint-disable no-undef */
2+
module.exports = {
3+
ignorePatterns: ["build", "dist"],
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: ["import", "sort-destructure-keys", "simple-import-sort", "codegen"],
26+
rules: {
27+
"@repo-tooling/dprint/dprint": [
28+
"error",
29+
{
30+
config: {
31+
// The TypeScript configuration of dprint
32+
// See also https://dprint.dev/plugins/typescript/config/,
33+
"indentWidth": 2,
34+
"semiColons": "asi",
35+
"quoteStyle": "alwaysDouble",
36+
"trailingCommas": "never",
37+
"operatorPosition": "maintain",
38+
"useParentheses": "preferNone"
39+
}
40+
}
41+
],
42+
"codegen/codegen": "error",
43+
"no-fallthrough": "off",
44+
"no-irregular-whitespace": "off",
45+
"object-shorthand": "error",
46+
"prefer-destructuring": "off",
47+
"sort-imports": "off",
48+
"@typescript-eslint/ban-ts-comment": "off",
49+
"@typescript-eslint/ban-types": "off",
50+
"@typescript-eslint/camelcase": "off",
51+
"@typescript-eslint/consistent-type-imports": "error",
52+
"@typescript-eslint/explicit-function-return-type": "off",
53+
"@typescript-eslint/explicit-module-boundary-types": "off",
54+
"@typescript-eslint/interface-name-prefix": "off",
55+
"@typescript-eslint/no-empty-interface": "off",
56+
"@typescript-eslint/no-array-constructor": "off",
57+
"@typescript-eslint/no-explicit-any": "off",
58+
"@typescript-eslint/no-unused-vars": "off",
59+
"@typescript-eslint/no-use-before-define": "off",
60+
"@typescript-eslint/no-namespace": "off",
61+
"@typescript-eslint/no-non-null-assertion": "off",
62+
"import/first": "error",
63+
"import/no-cycle": "error",
64+
"import/newline-after-import": "error",
65+
"import/no-duplicates": "error",
66+
"import/no-unresolved": "off",
67+
"import/order": "off",
68+
"simple-import-sort/imports": "off",
69+
"sort-destructure-keys/sort-destructure-keys": "error"
70+
}
71+
}

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: Matechs-Garage
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/changeset-version.cjs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const { execSync } = require("node:child_process");
2+
3+
execSync("npx changeset version");
4+
execSync("YARN_ENABLE_IMMUTABLE_INSTALLS=false node .yarn/releases/yarn-3.2.1.cjs");

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/.yarn/*
2+
!/.yarn/releases
3+
!/.yarn/plugins
4+
!/.yarn/sdks
5+
!/.yarn/patches
6+
7+
coverage/
8+
*.tsbuildinfo
9+
node_modules/
10+
yarn-error.log
11+
.ultra.cache.json
12+
.DS_Store
13+
tmp/
14+
build/
15+
dist/

.gitpod.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
tasks:
2+
- init: yarn && yarn build
3+
github:
4+
prebuilds:
5+
addCheck: true
6+
vscode:
7+
extensions:
8+
- dbaeumer.vscode-eslint

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
sh pre-commit.sh

.vscode/launch.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "pwa-node",
9+
"request": "launch",
10+
"name": "Launch Program",
11+
"skipFiles": [
12+
"<node_internals>/**"
13+
],
14+
"program": "${workspaceFolder}/packages/core/build/examples/repro.js",
15+
"outFiles": [
16+
"${workspaceFolder}/**/*.js"
17+
]
18+
}
19+
]
20+
}

.vscode/settings.json

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"typescript.preferences.importModuleSpecifier": "non-relative",
4+
"typescript.enablePromptUseWorkspaceTsdk": true,
5+
"editor.formatOnSave": true,
6+
"eslint.format.enable": true,
7+
"explorer.sortOrder": "mixed",
8+
"[javascript]": {
9+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
10+
},
11+
"[javascriptreact]": {
12+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
13+
},
14+
"[typescript]": {
15+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
16+
},
17+
"[typescriptreact]": {
18+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
19+
},
20+
"files.exclude": {
21+
//"**/.yarn*": true,
22+
//"**/.*.js": true,
23+
//"**/.swc": true,
24+
//"**/.changeset": true,
25+
//"**/yarn.lock": true,
26+
//"**/.*rc": true,
27+
//"**/.*config": true,
28+
//"**/.git*": true,
29+
//"**/.npmignore*": true,
30+
//"**/.husky": true,
31+
//"**/LICENSE.*": true,
32+
//"**/lerna.json": true,
33+
//"**/jest.config.js": true,
34+
},
35+
"prettier.disableLanguages": [
36+
"javascript",
37+
"javascriptreact",
38+
"typescript",
39+
"typescriptreact"
40+
],
41+
"eslint.validate": [
42+
"markdown",
43+
"javascript",
44+
"typescript"
45+
],
46+
"editor.codeActionsOnSave": {
47+
"source.fixAll.eslint": true
48+
},
49+
"editor.quickSuggestions": {
50+
"other": true,
51+
"comments": false,
52+
"strings": false
53+
},
54+
"editor.acceptSuggestionOnCommitCharacter": true,
55+
"editor.acceptSuggestionOnEnter": "on",
56+
"editor.quickSuggestionsDelay": 10,
57+
"editor.suggestOnTriggerCharacters": true,
58+
"editor.tabCompletion": "off",
59+
"editor.suggest.localityBonus": true,
60+
"editor.suggestSelection": "recentlyUsed",
61+
"editor.wordBasedSuggestions": true,
62+
"editor.parameterHints.enabled": true,
63+
"files.watcherExclude": {
64+
"**/target": true
65+
},
66+
"files.insertFinalNewline": true
67+
}

.vscode/tasks.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "clean",
6+
"type": "shell",
7+
"command": "yarn clean",
8+
"isBackground": false,
9+
"problemMatcher": []
10+
},
11+
{
12+
"label": "build-watch",
13+
"type": "shell",
14+
"command": "yarn build-watch",
15+
"problemMatcher": [
16+
"$tsc-watch"
17+
],
18+
"isBackground": true,
19+
"presentation": {
20+
"focus": false,
21+
"panel": "shared",
22+
"group": "dev",
23+
"showReuseMessage": true,
24+
"clear": false
25+
}
26+
},
27+
{
28+
"label": "build",
29+
"type": "shell",
30+
"command": "yarn build",
31+
"problemMatcher": [],
32+
"isBackground": false
33+
},
34+
{
35+
"label": "test-watch",
36+
"dependsOn": [
37+
"build-watch"
38+
],
39+
"type": "shell",
40+
"command": "yarn test",
41+
"problemMatcher": []
42+
}
43+
]
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff --git a/dist/presets/barrel.js b/dist/presets/barrel.js
2+
index 713ce15ee45a50f8dc0ba40457526dfaf597afca..bf045c3752b9a8cf66a7cd5c76573956ab2e57aa 100644
3+
--- a/dist/presets/barrel.js
4+
+++ b/dist/presets/barrel.js
5+
@@ -62,7 +62,12 @@ const barrel = ({ meta, options: opts }) => {
6+
.filter(f => path.resolve(cwd, f) !== path.resolve(meta.filename))
7+
.map(f => `./${f}`.replace(/(\.\/)+\./g, '.'))
8+
.filter(file => ['.js', '.mjs', '.ts', '.tsx'].includes(path.extname(file)))
9+
- .map(f => f.replace(/\.\w+$/, ''));
10+
+ .map(f => {
11+
+ if (!opts.prefix) {
12+
+ return f.replace(/\.\w+$/, '') + ".js";
13+
+ }
14+
+ return f.replace(/\.\w+$/, '').replace(/^\.(.*)$/, `${opts.prefix}$1`);
15+
+ });
16+
const expectedContent = io_ts_extra_1.match(opts.import)
17+
.case(undefined, () => {
18+
return relativeFiles.map(f => `export * from '${f}'`).join('\n');

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

+363
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

+9
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)