Skip to content

Commit ea2c857

Browse files
authored
Merge pull request #1 from ola-9/update
Update
2 parents 4cf6e36 + 44600f4 commit ea2c857

File tree

14 files changed

+13885
-239
lines changed

14 files changed

+13885
-239
lines changed

.eslintignore

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

.eslintrc.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
plugins: [
3+
'@typescript-eslint',
4+
],
5+
6+
env: {
7+
node: true,
8+
},
9+
extends: [
10+
'airbnb-base',
11+
],
12+
parser: '@typescript-eslint/parser',
13+
rules: {},
14+
overrides: [
15+
{
16+
extends: [
17+
'airbnb-typescript/base',
18+
'plugin:@typescript-eslint/recommended',
19+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
20+
],
21+
parserOptions: {
22+
parser: '@typescript-eslint/parser',
23+
project: './tsconfig.json',
24+
tsconfigRootDir: __dirname,
25+
},
26+
files: ['*.ts', '*tsx'],
27+
rules: {},
28+
},
29+
],
30+
};

.github/workflows/typescript.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Name of workflow
2+
name: Typescript CI
3+
4+
# Trigger the workflow on push or pull request
5+
on:
6+
pull_request:
7+
branches:
8+
- main
9+
push:
10+
branches:
11+
- main
12+
13+
env:
14+
CI: true
15+
16+
jobs:
17+
build:
18+
19+
# The type of machine to run the job on
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
# Node versions list
24+
matrix:
25+
node-version: [20.x]
26+
27+
steps:
28+
# Check-out repository under GitHub workspace
29+
# https://github.com/actions/checkout
30+
- uses: actions/checkout@v4
31+
# Step's name
32+
- name: Use Node.js ${{ matrix.node-version }}
33+
# Configures the node version used on GitHub-hosted runners
34+
# https://github.com/actions/setup-node
35+
uses: actions/setup-node@v3
36+
# The Node.js version to configure
37+
with:
38+
node-version: ${{ matrix.node-version }}
39+
cache: 'npm'
40+
- run: make install
41+
- run: make lint
42+
- run: make test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
node_modules
2+
dist
3+
coverage

Makefile

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
1-
run:
2-
npx ts-node index.ts
1+
install:
2+
npm ci
3+
4+
develop:
5+
npm run start:dev
6+
7+
build:
8+
npm run build
9+
10+
start:
11+
npm run start
12+
13+
test:
14+
npm run test
15+
16+
lint:
17+
npm run lint

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# typescript-package
2+
3+
<!-- TODO: add CI, Maintainability and Test Coverage badges -->
4+
5+
## Setup
6+
7+
```bash
8+
make install
9+
10+
```
11+
## Start
12+
13+
```bash
14+
make start
15+
```
16+
17+
## Run tests
18+
19+
```bash
20+
make test
21+
```
22+
23+
[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=nodejs-package)
24+
25+
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github&utm_medium=link&utm_campaign=nodejs-package).
26+
27+
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).

index.ts

Whitespace-only changes.

nodemon.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"watch": ["src"],
3+
"ext": ".ts,.js",
4+
"ignore": [],
5+
"exec": "npx ts-node ./src/index.ts"
6+
}

0 commit comments

Comments
 (0)