Skip to content

Commit 82b8317

Browse files
author
devgioele
committed
initial commit
0 parents  commit 82b8317

9 files changed

Lines changed: 191 additions & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/workflows/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Create Relase & Publish Package
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
build:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/create-release@v1
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
with:
15+
tag_name: ${{ github.ref }}
16+
release_name: Release ${{ github.ref }}
17+
draft: false
18+
prerelease: false
19+
- uses: aboutbits/github-actions-node/setup-and-install@v2
20+
with:
21+
node-version: 16
22+
registry-url: 'https://registry.npmjs.org'
23+
- run: npm publish
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

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

license.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright About Bits GmbH
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

package-lock.json

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

package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "@aboutbits/ts-config",
3+
"version": "0.0.1",
4+
"description": "AboutBits' TypeScript configs",
5+
"private": false,
6+
"publishConfig": {
7+
"access": "public"
8+
},
9+
"files": [
10+
"readme.md",
11+
"tsconfig.json"
12+
],
13+
"exports": {
14+
".": "./tsconfig.json",
15+
"./react": "./tsconfig.react.json"
16+
},
17+
"engines": {
18+
"npm": ">=8",
19+
"node": ">=16"
20+
},
21+
"scripts": {
22+
"postversion": "git push && git push --tags"
23+
},
24+
"repository": {
25+
"type": "git",
26+
"url": "git+https://github.com/aboutbits/ts-config"
27+
},
28+
"keywords": [
29+
"ts-config",
30+
"tsconfig",
31+
"typescript"
32+
],
33+
"author": "AboutBits",
34+
"license": "MIT",
35+
"bugs": {
36+
"url": "https://github.com/aboutbits/ts-config/issues"
37+
},
38+
"homepage": "https://github.com/aboutbits/ts-config",
39+
"prettier": "@aboutbits/prettier-config",
40+
"peerDependencies": {
41+
"typescript": "^5.0.0"
42+
}
43+
}

readme.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# @aboutbits/ts-config
2+
3+
[![npm package](https://badge.fury.io/js/%40aboutbits%2Fts-config.svg)](https://badge.fury.io/js/%40aboutbits%2Fts-config)
4+
[![license](https://img.shields.io/github/license/aboutbits/ts-config)](https://github.com/aboutbits/ts-config/blob/main/license.md)
5+
6+
AboutBit's [ESLint](https://eslint.org/) config presets
7+
8+
## Usage
9+
10+
Install the package, assuming that you have TypeScript already installed:
11+
12+
```sh
13+
npm i -D @aboutbits/ts-config
14+
```
15+
16+
Edit your `tsconfig.json`:
17+
18+
```json
19+
{
20+
"extends": "@aboutbits/ts-config"
21+
}
22+
```
23+
24+
## Publish
25+
26+
To publish the package commit all changes and push them to main. Then run one of the following commands locally:
27+
28+
```sh
29+
npm version patch
30+
npm version minor
31+
npm version major
32+
```
33+
34+
## Information
35+
36+
AboutBits is a company based in South Tyrol, Italy. You can find more information about us
37+
on [our website](https://aboutbits.it).
38+
39+
### Support
40+
41+
For support, please contact [info@aboutbits.it](mailto:info@aboutbits.it).
42+
43+
### Credits
44+
45+
- [All Contributors](../../contributors)
46+
47+
### License
48+
49+
The MIT License (MIT). Please see the [license file](license.md) for more information.

tsconfig.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2020",
4+
"moduleResolution": "node",
5+
"esModuleInterop": true,
6+
"resolveJsonModule": true,
7+
"strict": true,
8+
"noImplicitReturns": true,
9+
"noImplicitOverride": true,
10+
"noFallthroughCasesInSwitch": true,
11+
"noUncheckedIndexedAccess": true,
12+
"forceConsistentCasingInFileNames": true,
13+
"allowUnreachableCode": false,
14+
"downlevelIteration": true,
15+
"isolatedModules": true,
16+
"importHelpers": true
17+
}
18+
}

tsconfig.react.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"jsx": "react-jsx"
5+
}
6+
}

0 commit comments

Comments
 (0)