Skip to content

Commit e3b28d3

Browse files
authored
Initial commit
0 parents  commit e3b28d3

24 files changed

+15215
-0
lines changed

.dockerignore

Whitespace-only changes.

.eslintrc.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 2020,
6+
"sourceType": "module"
7+
},
8+
"plugins": [
9+
"@typescript-eslint",
10+
"no-loops",
11+
"prettier",
12+
"notice"
13+
],
14+
"extends": [
15+
"eslint:recommended",
16+
"plugin:@typescript-eslint/eslint-recommended",
17+
"google",
18+
"plugin:@typescript-eslint/recommended",
19+
"prettier"
20+
],
21+
"rules": {
22+
"quotes": [
23+
"error",
24+
"double"
25+
],
26+
"notice/notice": [
27+
"error",
28+
{
29+
"mustMatch": "Licensed under the MIT License",
30+
"templateFile": ".scripts/copyright.js"
31+
}
32+
],
33+
"no-loops/no-loops": 2,
34+
"no-console": 1,
35+
"prettier/prettier": 2
36+
}
37+
}

.github/workflows/gh_docker.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: publish to docker hub
2+
on: [push, workflow_dispatch]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v1
9+
- name: Get the version
10+
id: get_version
11+
run: echo ::set-output name=VERSION::$(node -e "console.log(require('./package.json').version)")
12+
- name: Publish
13+
uses: elgohr/Publish-Docker-Github-Action@master
14+
with:
15+
name: fonoster/nodejs-service
16+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
17+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
18+
workdir: .
19+
tags: "latest, ${{ steps.get_version.outputs.VERSION }}"

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.env*
2+
node_modules
3+
*.log
4+
reporting/*
5+
out/*
6+
dist
7+
coverage
8+
.nyc_output

.gitpod.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Learn more about this file at 'https://www.gitpod.io/docs/references/gitpod-yml'
2+
##
3+
## This '.gitpod.yml' file when placed at the root of a project instructs
4+
## Gitpod how to prepare & build the project, start development environments
5+
## and configure continuous prebuilds. Prebuilds when enabled builds a project
6+
## like a CI server so you can start coding right away - no more waiting for
7+
## dependencies to download and builds to finish when reviewing pull-requests
8+
## or hacking on something new.
9+
##
10+
tasks:
11+
- name: Setup & start
12+
init: npm install
13+
command: npm start
14+
15+
ports:
16+
- port: 3000
17+
visibility: public
18+
onOpen: notify
19+
20+
github:
21+
prebuilds:
22+
master: true
23+
branches: true
24+
pullRequests: true
25+
pullRequestsFromForks: true
26+
addCheck: true
27+
addComment: false
28+
addBadge: true

.husky/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm test
5+
npm run format
6+
npm run lint

.mocharc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extension": [
3+
"ts"
4+
],
5+
"timeout": 5000,
6+
"exit": true,
7+
"require": "ts-node/register"
8+
}

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules
2+
.nyc_output
3+
coverage
4+
src
5+
test
6+
*.log
7+
README.md
8+
tsconfig.json
9+
.dockerignore
10+
.mocharc.json
11+
*.ts

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/dist
2+
**/package-lock.json
3+
**/*.md
4+
**/generated/*

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "none",
4+
"singleQuote": false,
5+
"printWidth": 80,
6+
"bracketSpacing": true,
7+
"useTabs": false,
8+
"tabWidth": 2
9+
}

0 commit comments

Comments
 (0)