@icebreakers/monorepo 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/copy.js +2 -0
- package/dist/assets/.editorconfig +12 -0
- package/dist/assets/.gitattributes +218 -0
- package/dist/assets/.github/FUNDING.yml +4 -0
- package/dist/assets/.github/ISSUE_TEMPLATE/bug_report.yml +71 -0
- package/dist/assets/.github/ISSUE_TEMPLATE/config.yml +17 -0
- package/dist/assets/.github/workflows/ci.yml +51 -0
- package/dist/assets/.github/workflows/release.yml +50 -0
- package/dist/assets/.husky/commit-msg +1 -0
- package/dist/assets/.husky/pre-commit +1 -0
- package/dist/assets/.vscode/settings.json +76 -0
- package/dist/assets/CODE_OF_CONDUCT.md +128 -0
- package/dist/assets/CONTRIBUTING.md +1 -0
- package/dist/assets/LICENSE +21 -0
- package/dist/assets/SECURITY.md +21 -0
- package/dist/assets/commitlint.config.ts +6 -0
- package/dist/assets/eslint.config.js +8 -0
- package/dist/assets/lint-staged.config.js +11 -0
- package/dist/assets/package.json +69 -0
- package/dist/assets/pnpm-workspace.yaml +3 -0
- package/dist/assets/renovate.json +6 -0
- package/dist/assets/tsconfig.json +13 -0
- package/dist/assets/turbo.json +26 -0
- package/dist/assets/vitest.workspace.ts +7 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +0 -0
- package/package.json +39 -0
package/bin/copy.js
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# From https://github.com/gitattributes/gitattributes/blob/master/Web.gitattributes
|
|
2
|
+
## GITATTRIBUTES FOR WEB PROJECTS
|
|
3
|
+
#
|
|
4
|
+
# These settings are for any web project.
|
|
5
|
+
#
|
|
6
|
+
# Details per file setting:
|
|
7
|
+
# text These files should be normalized (i.e. convert CRLF to LF).
|
|
8
|
+
# binary These files are binary and should be left untouched.
|
|
9
|
+
#
|
|
10
|
+
# Note that binary is a macro for -text -diff.
|
|
11
|
+
######################################################################
|
|
12
|
+
|
|
13
|
+
# Auto detect
|
|
14
|
+
## Handle line endings automatically for files detected as
|
|
15
|
+
## text and leave all files detected as binary untouched.
|
|
16
|
+
## This will handle all files NOT defined below.
|
|
17
|
+
* text=auto
|
|
18
|
+
|
|
19
|
+
# Source code
|
|
20
|
+
*.bash text eol=lf
|
|
21
|
+
*.bat text eol=crlf
|
|
22
|
+
*.cmd text eol=crlf
|
|
23
|
+
*.coffee text
|
|
24
|
+
*.css text diff=css
|
|
25
|
+
*.htm text diff=html
|
|
26
|
+
*.html text diff=html
|
|
27
|
+
*.inc text
|
|
28
|
+
*.ini text
|
|
29
|
+
*.js text
|
|
30
|
+
*.mjs text
|
|
31
|
+
*.cjs text
|
|
32
|
+
*.json text
|
|
33
|
+
*.jsx text
|
|
34
|
+
*.less text
|
|
35
|
+
*.ls text
|
|
36
|
+
*.map text -diff
|
|
37
|
+
*.od text
|
|
38
|
+
*.onlydata text
|
|
39
|
+
*.php text diff=php
|
|
40
|
+
*.pl text
|
|
41
|
+
*.ps1 text eol=crlf
|
|
42
|
+
*.py text diff=python
|
|
43
|
+
*.rb text diff=ruby
|
|
44
|
+
*.sass text
|
|
45
|
+
*.scm text
|
|
46
|
+
*.scss text diff=css
|
|
47
|
+
*.sh text eol=lf
|
|
48
|
+
.husky/* text eol=lf
|
|
49
|
+
*.sql text
|
|
50
|
+
*.styl text
|
|
51
|
+
*.tag text
|
|
52
|
+
*.ts text
|
|
53
|
+
*.tsx text
|
|
54
|
+
*.xml text
|
|
55
|
+
*.xhtml text diff=html
|
|
56
|
+
|
|
57
|
+
# Docker
|
|
58
|
+
Dockerfile text
|
|
59
|
+
|
|
60
|
+
# Documentation
|
|
61
|
+
*.ipynb text eol=lf
|
|
62
|
+
*.markdown text diff=markdown
|
|
63
|
+
*.md text diff=markdown
|
|
64
|
+
*.mdwn text diff=markdown
|
|
65
|
+
*.mdown text diff=markdown
|
|
66
|
+
*.mkd text diff=markdown
|
|
67
|
+
*.mkdn text diff=markdown
|
|
68
|
+
*.mdtxt text
|
|
69
|
+
*.mdtext text
|
|
70
|
+
*.txt text
|
|
71
|
+
AUTHORS text
|
|
72
|
+
CHANGELOG text
|
|
73
|
+
CHANGES text
|
|
74
|
+
CONTRIBUTING text
|
|
75
|
+
COPYING text
|
|
76
|
+
copyright text
|
|
77
|
+
*COPYRIGHT* text
|
|
78
|
+
INSTALL text
|
|
79
|
+
license text
|
|
80
|
+
LICENSE text
|
|
81
|
+
NEWS text
|
|
82
|
+
readme text
|
|
83
|
+
*README* text
|
|
84
|
+
TODO text
|
|
85
|
+
|
|
86
|
+
# Templates
|
|
87
|
+
*.dot text
|
|
88
|
+
*.ejs text
|
|
89
|
+
*.erb text
|
|
90
|
+
*.haml text
|
|
91
|
+
*.handlebars text
|
|
92
|
+
*.hbs text
|
|
93
|
+
*.hbt text
|
|
94
|
+
*.jade text
|
|
95
|
+
*.latte text
|
|
96
|
+
*.mustache text
|
|
97
|
+
*.njk text
|
|
98
|
+
*.phtml text
|
|
99
|
+
*.svelte text
|
|
100
|
+
*.tmpl text
|
|
101
|
+
*.tpl text
|
|
102
|
+
*.twig text
|
|
103
|
+
*.vue text
|
|
104
|
+
|
|
105
|
+
# Configs
|
|
106
|
+
*.cnf text
|
|
107
|
+
*.conf text
|
|
108
|
+
*.config text
|
|
109
|
+
.editorconfig text
|
|
110
|
+
.env text
|
|
111
|
+
.gitattributes text
|
|
112
|
+
.gitconfig text
|
|
113
|
+
.htaccess text
|
|
114
|
+
*.lock text -diff
|
|
115
|
+
package.json text eol=lf
|
|
116
|
+
package-lock.json text eol=lf -diff
|
|
117
|
+
pnpm-lock.yaml text eol=lf -diff
|
|
118
|
+
.prettierrc text
|
|
119
|
+
yarn.lock text -diff
|
|
120
|
+
*.toml text
|
|
121
|
+
*.yaml text
|
|
122
|
+
*.yml text
|
|
123
|
+
browserslist text
|
|
124
|
+
Makefile text
|
|
125
|
+
makefile text
|
|
126
|
+
# Fixes syntax highlighting on GitHub to allow comments
|
|
127
|
+
tsconfig.json linguist-language=JSON-with-Comments
|
|
128
|
+
|
|
129
|
+
# Heroku
|
|
130
|
+
Procfile text
|
|
131
|
+
|
|
132
|
+
# Graphics
|
|
133
|
+
*.ai binary
|
|
134
|
+
*.bmp binary
|
|
135
|
+
*.eps binary
|
|
136
|
+
*.gif binary
|
|
137
|
+
*.gifv binary
|
|
138
|
+
*.ico binary
|
|
139
|
+
*.jng binary
|
|
140
|
+
*.jp2 binary
|
|
141
|
+
*.jpg binary
|
|
142
|
+
*.jpeg binary
|
|
143
|
+
*.jpx binary
|
|
144
|
+
*.jxr binary
|
|
145
|
+
*.pdf binary
|
|
146
|
+
*.png binary
|
|
147
|
+
*.psb binary
|
|
148
|
+
*.psd binary
|
|
149
|
+
# SVG treated as an asset (binary) by default.
|
|
150
|
+
*.svg text
|
|
151
|
+
# If you want to treat it as binary,
|
|
152
|
+
# use the following line instead.
|
|
153
|
+
# *.svg binary
|
|
154
|
+
*.svgz binary
|
|
155
|
+
*.tif binary
|
|
156
|
+
*.tiff binary
|
|
157
|
+
*.wbmp binary
|
|
158
|
+
*.webp binary
|
|
159
|
+
|
|
160
|
+
# Audio
|
|
161
|
+
*.kar binary
|
|
162
|
+
*.m4a binary
|
|
163
|
+
*.mid binary
|
|
164
|
+
*.midi binary
|
|
165
|
+
*.mp3 binary
|
|
166
|
+
*.ogg binary
|
|
167
|
+
*.ra binary
|
|
168
|
+
|
|
169
|
+
# Video
|
|
170
|
+
*.3gpp binary
|
|
171
|
+
*.3gp binary
|
|
172
|
+
*.as binary
|
|
173
|
+
*.asf binary
|
|
174
|
+
*.asx binary
|
|
175
|
+
*.avi binary
|
|
176
|
+
*.fla binary
|
|
177
|
+
*.flv binary
|
|
178
|
+
*.m4v binary
|
|
179
|
+
*.mng binary
|
|
180
|
+
*.mov binary
|
|
181
|
+
*.mp4 binary
|
|
182
|
+
*.mpeg binary
|
|
183
|
+
*.mpg binary
|
|
184
|
+
*.ogv binary
|
|
185
|
+
*.swc binary
|
|
186
|
+
*.swf binary
|
|
187
|
+
*.webm binary
|
|
188
|
+
|
|
189
|
+
# Archives
|
|
190
|
+
*.7z binary
|
|
191
|
+
*.gz binary
|
|
192
|
+
*.jar binary
|
|
193
|
+
*.rar binary
|
|
194
|
+
*.tar binary
|
|
195
|
+
*.zip binary
|
|
196
|
+
|
|
197
|
+
# Fonts
|
|
198
|
+
*.ttf binary
|
|
199
|
+
*.eot binary
|
|
200
|
+
*.otf binary
|
|
201
|
+
*.woff binary
|
|
202
|
+
*.woff2 binary
|
|
203
|
+
|
|
204
|
+
# Executables
|
|
205
|
+
*.exe binary
|
|
206
|
+
*.pyc binary
|
|
207
|
+
# Prevents massive diffs caused by vendored, minified files
|
|
208
|
+
**/.yarn/releases/** binary
|
|
209
|
+
**/.yarn/plugins/** binary
|
|
210
|
+
|
|
211
|
+
# RC files (like .babelrc or .eslintrc)
|
|
212
|
+
*.*rc text
|
|
213
|
+
|
|
214
|
+
# Ignore files (like .npmignore or .gitignore)
|
|
215
|
+
*.*ignore text
|
|
216
|
+
|
|
217
|
+
# Prevents massive diffs from built files
|
|
218
|
+
dist/* binary
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
name: 🐞 Bug report
|
|
2
|
+
description: Create a report to help us improve
|
|
3
|
+
title: '[Bug]: '
|
|
4
|
+
labels: [bug]
|
|
5
|
+
assignees:
|
|
6
|
+
- sonofmagic
|
|
7
|
+
body:
|
|
8
|
+
- type: markdown
|
|
9
|
+
attributes:
|
|
10
|
+
value: |
|
|
11
|
+
**Before You Start...**
|
|
12
|
+
|
|
13
|
+
This form is only for submitting bug reports. If you have a usage question
|
|
14
|
+
or are unsure if this is really a bug, make sure to:
|
|
15
|
+
|
|
16
|
+
Also try to search for your issue - it may have already been answered or even fixed in the development branch.
|
|
17
|
+
However, if you find that an old, closed issue still persists in the latest version,
|
|
18
|
+
you should open a new issue using the form below instead of commenting on the old issue.
|
|
19
|
+
- type: input
|
|
20
|
+
id: version
|
|
21
|
+
attributes:
|
|
22
|
+
label: version
|
|
23
|
+
validations:
|
|
24
|
+
required: true
|
|
25
|
+
- type: input
|
|
26
|
+
id: reproduction-link
|
|
27
|
+
attributes:
|
|
28
|
+
label: Link to minimal reproduction
|
|
29
|
+
description: |
|
|
30
|
+
You can always provide a GitHub repository.
|
|
31
|
+
|
|
32
|
+
The reproduction should be **minimal** - i.e. it should contain only the bare minimum amount of code needed
|
|
33
|
+
to show the bug.
|
|
34
|
+
|
|
35
|
+
Please do not just fill in a random link. The issue will be closed if no valid reproduction is provided.
|
|
36
|
+
placeholder: Reproduction Link
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
- type: textarea
|
|
40
|
+
id: steps-to-reproduce
|
|
41
|
+
attributes:
|
|
42
|
+
label: Steps to reproduce
|
|
43
|
+
description: |
|
|
44
|
+
What do we need to do after opening your repro in order to make the bug happen? Clear and concise reproduction instructions are important for us to be able to triage your issue in a timely manner. Note that you can use [Markdown](https://guides.github.com/features/mastering-markdown/) to format lists and code.
|
|
45
|
+
placeholder: Steps to reproduce
|
|
46
|
+
validations:
|
|
47
|
+
required: true
|
|
48
|
+
- type: textarea
|
|
49
|
+
id: expected
|
|
50
|
+
attributes:
|
|
51
|
+
label: What is expected?
|
|
52
|
+
validations:
|
|
53
|
+
required: true
|
|
54
|
+
- type: textarea
|
|
55
|
+
id: actually-happening
|
|
56
|
+
attributes:
|
|
57
|
+
label: What is actually happening?
|
|
58
|
+
validations:
|
|
59
|
+
required: true
|
|
60
|
+
- type: textarea
|
|
61
|
+
id: system-info
|
|
62
|
+
attributes:
|
|
63
|
+
label: System Info
|
|
64
|
+
description: Output of `npx envinfo --system --npmPackages --binaries`
|
|
65
|
+
render: shell
|
|
66
|
+
placeholder: System, Binaries
|
|
67
|
+
- type: textarea
|
|
68
|
+
id: additional-comments
|
|
69
|
+
attributes:
|
|
70
|
+
label: Any additional comments?
|
|
71
|
+
description: e.g. some background/context of how you ran into this bug.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Feature Request
|
|
4
|
+
url: https://github.com/sonofmagic/monorepo-template/discussions
|
|
5
|
+
about: Suggest new features for consideration
|
|
6
|
+
# - name: Discord Chat
|
|
7
|
+
# url: https://chat.vuejs.org
|
|
8
|
+
# about: Ask questions and discuss with other Vue users in real time.
|
|
9
|
+
# - name: Questions & Discussions
|
|
10
|
+
# url: https://github.com/vuejs/core/discussions
|
|
11
|
+
# about: Use GitHub discussions for message-board style questions and discussions.
|
|
12
|
+
# - name: Patreon
|
|
13
|
+
# url: https://www.patreon.com/evanyou
|
|
14
|
+
# about: Love Vue.js? Please consider supporting us via Patreon.
|
|
15
|
+
# - name: Open Collective
|
|
16
|
+
# url: https://opencollective.com/vuejs/donate
|
|
17
|
+
# about: Love Vue.js? Please consider supporting us via Open Collective.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
# push:
|
|
5
|
+
# branches: ['main']
|
|
6
|
+
pull_request:
|
|
7
|
+
types: [opened, synchronize]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
name: Build and Test
|
|
13
|
+
timeout-minutes: 15
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
18
|
+
node-version: [18, 20]
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
# To use Remote Caching, uncomment the next lines and follow the steps below.
|
|
21
|
+
# env:
|
|
22
|
+
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
23
|
+
# TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- name: Check out code
|
|
27
|
+
uses: actions/checkout@v4
|
|
28
|
+
with:
|
|
29
|
+
fetch-depth: 2
|
|
30
|
+
|
|
31
|
+
- uses: pnpm/action-setup@v4
|
|
32
|
+
|
|
33
|
+
- name: Setup Node.js environment
|
|
34
|
+
uses: actions/setup-node@v4
|
|
35
|
+
with:
|
|
36
|
+
node-version: ${{ matrix.node-version }}
|
|
37
|
+
cache: 'pnpm'
|
|
38
|
+
|
|
39
|
+
- name: Install dependencies
|
|
40
|
+
run: pnpm install
|
|
41
|
+
|
|
42
|
+
- name: Build
|
|
43
|
+
run: pnpm build
|
|
44
|
+
|
|
45
|
+
- name: Test
|
|
46
|
+
run: pnpm test
|
|
47
|
+
|
|
48
|
+
- name: Upload coverage reports to Codecov
|
|
49
|
+
uses: codecov/codecov-action@v4
|
|
50
|
+
env:
|
|
51
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
10
|
+
env:
|
|
11
|
+
HUSKY: 0
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
release:
|
|
15
|
+
name: Release
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout Repo
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- uses: pnpm/action-setup@v4
|
|
22
|
+
|
|
23
|
+
- name: Setup Node.js environment
|
|
24
|
+
uses: actions/setup-node@v4
|
|
25
|
+
with:
|
|
26
|
+
node-version: 20
|
|
27
|
+
cache: 'pnpm'
|
|
28
|
+
|
|
29
|
+
- name: Install Dependencies
|
|
30
|
+
run: pnpm i
|
|
31
|
+
|
|
32
|
+
- name: Create Release Pull Request or Publish to npm
|
|
33
|
+
id: changesets
|
|
34
|
+
uses: changesets/action@v1
|
|
35
|
+
with:
|
|
36
|
+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
|
|
37
|
+
publish: pnpm publish-packages
|
|
38
|
+
env:
|
|
39
|
+
# this doesn't work but semantic-release works
|
|
40
|
+
# see https://github.com/sonofmagic/npm-lib-rollup-template/blob/main/.github/workflows/release.yml#L46
|
|
41
|
+
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
42
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
43
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
44
|
+
npm_config_registry: https://registry.npmjs.org
|
|
45
|
+
|
|
46
|
+
- name: Upload coverage reports to Codecov
|
|
47
|
+
uses: codecov/codecov-action@v4
|
|
48
|
+
env:
|
|
49
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
50
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pnpm dlx commitlint --edit $1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# pnpm lint-staged
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Disable the default formatter, use eslint instead
|
|
3
|
+
"prettier.enable": false,
|
|
4
|
+
"editor.formatOnSave": false,
|
|
5
|
+
// Auto fix
|
|
6
|
+
"editor.codeActionsOnSave": {
|
|
7
|
+
"source.fixAll.eslint": "explicit",
|
|
8
|
+
"source.organizeImports": "never"
|
|
9
|
+
},
|
|
10
|
+
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
11
|
+
"eslint.rules.customizations": [
|
|
12
|
+
{
|
|
13
|
+
"rule": "style/*",
|
|
14
|
+
"severity": "off"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"rule": "format/*",
|
|
18
|
+
"severity": "off"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"rule": "*-indent",
|
|
22
|
+
"severity": "off"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"rule": "*-spacing",
|
|
26
|
+
"severity": "off"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"rule": "*-spaces",
|
|
30
|
+
"severity": "off"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"rule": "*-order",
|
|
34
|
+
"severity": "off"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"rule": "*-dangle",
|
|
38
|
+
"severity": "off"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"rule": "*-newline",
|
|
42
|
+
"severity": "off"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"rule": "*quotes",
|
|
46
|
+
"severity": "off"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"rule": "*semi",
|
|
50
|
+
"severity": "off"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
// Enable eslint for all supported languages
|
|
54
|
+
"eslint.validate": [
|
|
55
|
+
"javascript",
|
|
56
|
+
"javascriptreact",
|
|
57
|
+
"typescript",
|
|
58
|
+
"typescriptreact",
|
|
59
|
+
"vue",
|
|
60
|
+
"html",
|
|
61
|
+
"markdown",
|
|
62
|
+
"json",
|
|
63
|
+
"jsonc",
|
|
64
|
+
"yaml",
|
|
65
|
+
"toml",
|
|
66
|
+
"xml",
|
|
67
|
+
"gql",
|
|
68
|
+
"graphql",
|
|
69
|
+
"astro",
|
|
70
|
+
"css",
|
|
71
|
+
"less",
|
|
72
|
+
"scss",
|
|
73
|
+
"pcss",
|
|
74
|
+
"postcss"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity
|
|
10
|
+
and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the
|
|
26
|
+
overall community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or
|
|
31
|
+
advances of any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email
|
|
35
|
+
address, without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official e-mail address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
1324318532@qq.com.
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series
|
|
86
|
+
of actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or
|
|
93
|
+
permanent ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
|
113
|
+
the community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.0, available at
|
|
119
|
+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
122
|
+
enforcement ladder](https://github.com/mozilla/diversity).
|
|
123
|
+
|
|
124
|
+
[homepage]: https://www.contributor-covenant.org
|
|
125
|
+
|
|
126
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
127
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
|
128
|
+
https://www.contributor-covenant.org/translations.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 ice breaker
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Use this section to tell people about which versions of your project are
|
|
6
|
+
currently being supported with security updates.
|
|
7
|
+
|
|
8
|
+
| Version | Supported |
|
|
9
|
+
| ------- | ------------------ |
|
|
10
|
+
| 5.1.x | :white_check_mark: |
|
|
11
|
+
| 5.0.x | :x: |
|
|
12
|
+
| 4.0.x | :white_check_mark: |
|
|
13
|
+
| < 4.0 | :x: |
|
|
14
|
+
|
|
15
|
+
## Reporting a Vulnerability
|
|
16
|
+
|
|
17
|
+
Use this section to tell people how to report a vulnerability.
|
|
18
|
+
|
|
19
|
+
Tell them where to go, how often they can expect to get an update on a
|
|
20
|
+
reported vulnerability, what to expect if the vulnerability is accepted or
|
|
21
|
+
declined, etc.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
'*.{js,jsx,mjs,ts,tsx,mts}': [
|
|
3
|
+
'eslint --fix',
|
|
4
|
+
],
|
|
5
|
+
'*.{json,md,mdx,css,html,yml,yaml,scss}': [
|
|
6
|
+
// 'prettier --with-node-modules --ignore-path .prettierignore --write',
|
|
7
|
+
'eslint --fix',
|
|
8
|
+
],
|
|
9
|
+
// for rust
|
|
10
|
+
// '*.rs': ['cargo fmt --'],
|
|
11
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "monorepo-template",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"private": true,
|
|
6
|
+
"workspaces": [
|
|
7
|
+
"apps/*",
|
|
8
|
+
"packages/*"
|
|
9
|
+
],
|
|
10
|
+
"packageManager": "pnpm@9.7.1",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=20.0.0"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "turbo run build",
|
|
16
|
+
"dev": "turbo run dev --parallel",
|
|
17
|
+
"test": "vitest run --coverage.enabled",
|
|
18
|
+
"test:dev": "vitest",
|
|
19
|
+
"lint": "turbo run lint",
|
|
20
|
+
"release": "changeset",
|
|
21
|
+
"publish-packages": "turbo run build lint test && changeset version && changeset publish",
|
|
22
|
+
"preinstall": "npx only-allow pnpm",
|
|
23
|
+
"prepare": "husky",
|
|
24
|
+
"commit": "commit"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@changesets/changelog-github": "^0.5.0",
|
|
28
|
+
"@changesets/cli": "^2.27.7",
|
|
29
|
+
"@commitlint/cli": "^19.4.0",
|
|
30
|
+
"@commitlint/config-conventional": "^19.2.2",
|
|
31
|
+
"@commitlint/prompt-cli": "^19.4.0",
|
|
32
|
+
"@commitlint/types": "^19.0.3",
|
|
33
|
+
"@icebreakers/eslint-config": "^0.3.20",
|
|
34
|
+
"@types/fs-extra": "^11.0.4",
|
|
35
|
+
"@types/get-value": "^3.0.5",
|
|
36
|
+
"@types/lint-staged": "^13.3.0",
|
|
37
|
+
"@types/lodash": "^4.17.7",
|
|
38
|
+
"@types/lodash-es": "^4.17.12",
|
|
39
|
+
"@types/node": "^22.4.0",
|
|
40
|
+
"@types/set-value": "^4.0.3",
|
|
41
|
+
"@vitest/coverage-v8": "^2.0.5",
|
|
42
|
+
"ci-info": "^4.0.0",
|
|
43
|
+
"defu": "^6.1.4",
|
|
44
|
+
"eslint": "^9.9.0",
|
|
45
|
+
"eslint-plugin-react": "^7.35.0",
|
|
46
|
+
"fs-extra": "^11.2.0",
|
|
47
|
+
"get-value": "^3.0.1",
|
|
48
|
+
"husky": "^9.1.4",
|
|
49
|
+
"lint-staged": "^15.2.8",
|
|
50
|
+
"lodash": "^4.17.21",
|
|
51
|
+
"lodash-es": "^4.17.21",
|
|
52
|
+
"only-allow": "^1.2.1",
|
|
53
|
+
"pathe": "^1.1.2",
|
|
54
|
+
"pkg-types": "^1.1.3",
|
|
55
|
+
"set-value": "^4.1.0",
|
|
56
|
+
"tslib": "^2.6.3",
|
|
57
|
+
"tsup": "^8.2.4",
|
|
58
|
+
"tsx": "^4.17.0",
|
|
59
|
+
"turbo": "^2.0.14",
|
|
60
|
+
"typescript": "^5.5.4",
|
|
61
|
+
"unbuild": "^2.0.0",
|
|
62
|
+
"vite-tsconfig-paths": "^5.0.1",
|
|
63
|
+
"vitest": "^2.0.5"
|
|
64
|
+
},
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"access": "public",
|
|
67
|
+
"registry": "https://registry.npmjs.org"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://turbo.build/schema.json",
|
|
3
|
+
"tasks": {
|
|
4
|
+
"build": {
|
|
5
|
+
"dependsOn": [
|
|
6
|
+
"^build"
|
|
7
|
+
],
|
|
8
|
+
"outputs": [
|
|
9
|
+
"dist/**"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"lint": {
|
|
13
|
+
"outputs": []
|
|
14
|
+
},
|
|
15
|
+
"dev": {
|
|
16
|
+
"cache": false
|
|
17
|
+
},
|
|
18
|
+
"test": {
|
|
19
|
+
"dependsOn": [
|
|
20
|
+
"^build"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"release": {},
|
|
24
|
+
"start": {}
|
|
25
|
+
}
|
|
26
|
+
}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/index.d.cts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@icebreakers/monorepo",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"description": "my monorepo config copyer",
|
|
6
|
+
"author": "",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"bin": "bin/copy.js",
|
|
18
|
+
"files": [
|
|
19
|
+
"bin",
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"fs-extra": "^11.2.0",
|
|
24
|
+
"pathe": "^1.1.2"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "tsup --watch --sourcemap",
|
|
28
|
+
"build": "tsup",
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"test:dev": "vitest",
|
|
31
|
+
"release": "pnpm publish",
|
|
32
|
+
"lint": "eslint .",
|
|
33
|
+
"lint:fix": "eslint . --fix",
|
|
34
|
+
"prepublish": "tsx scripts/prepublish.ts"
|
|
35
|
+
},
|
|
36
|
+
"main": "./dist/index.cjs",
|
|
37
|
+
"module": "./dist/index.js",
|
|
38
|
+
"types": "./dist/index.d.ts"
|
|
39
|
+
}
|