Skip to content

Commit 65c0c35

Browse files
committed
init
0 parents  commit 65c0c35

File tree

13 files changed

+252
-0
lines changed

13 files changed

+252
-0
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
end_of_line = crlf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
charset = utf-8
10+
indent_style = tab
11+
indent_size = 4
12+
13+
[*.{json,yml,yaml,toml}]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[*.{sh}]
18+
end_of_line = lf
19+
20+
[.husky/*]
21+
end_of_line = lf

.gitattributes

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
###############################
2+
# Git Line Endings #
3+
###############################
4+
5+
# Set default behaviour to automatically normalize line endings.
6+
* text=auto eol=crlf
7+
8+
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
9+
# in Windows via a file share from Linux, the scripts will work.
10+
*.{cmd,[cC][mM][dD]} text eol=crlf
11+
*.{bat,[bB][aA][tT]} text eol=crlf
12+
13+
# Force bash scripts to always use LF line endings so that if a repo is accessed
14+
# in Unix via a file share from Windows, the scripts will work.
15+
*.sh text eol=lf
16+
.husky/* text eol=lf
17+
18+
# Isolate binary files in case the auto-detection algorithm fails and
19+
# marks them as text files (which could brick them).
20+
*.{png,jpg,jpeg,gif,webp,ttf,woff,woff2} binary

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Use Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: 20
17+
18+
- run: npm install
19+
20+
- run: npm run build
21+
22+
- run: |
23+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" > .npmrc
24+
npm pack
25+
npm publish

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
lib/

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
package.json

.prettierrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"endOfLine": "crlf",
3+
"printWidth": 120,
4+
"tabWidth": 4,
5+
"trailingComma": "none",
6+
"useTabs": true,
7+
"singleQuote": false,
8+
"bracketSpacing": true,
9+
"semi": true,
10+
"arrowParens": "avoid",
11+
"overrides": [
12+
{
13+
"files": ["*.json", "*.yml", "*.yaml", "*.toml"],
14+
"options": {
15+
"tabWidth": 2,
16+
"useTabs": false
17+
}
18+
}
19+
]
20+
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["editorconfig.editorconfig", "esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"editor.detectIndentation": false,
3+
"editor.tabSize": 4,
4+
"editor.insertSpaces": false,
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.formatOnPaste": true,
7+
"editor.formatOnSave": true,
8+
"editor.codeActionsOnSave": {
9+
"source.fixAll.eslint": "explicit"
10+
},
11+
"files.exclude": {
12+
"**/.git": true,
13+
"**/.svn": true,
14+
"**/.hg": true,
15+
"**/CVS": true,
16+
"**/.DS_Store": true
17+
},
18+
"eslint.validate": ["javascript", "typescript"]
19+
}

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# discit-types
2+
3+
Shared types package for the discit, discit-api, and discit-api-refresh projects.
4+
5+
```
6+
bun a -D discit-types
7+
```

package-lock.json

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)