Skip to content

Commit 87219ea

Browse files
authored
Initial commit
0 parents  commit 87219ea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+8784
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
dist/
3+
.DS_Store/
4+
.idea/
5+
.env
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
max_line_length = 120
12+
13+
[Makefile]
14+
indent_style = tab
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

.env.example

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
APPNAME=template
2+
3+
MONGOOSE_URL=mongodb://template-mongodb:27017/myreport
4+
IOREDIS_URL=redis://template-redis:6379/1
5+
6+
JWT_SECRET=1212974
7+
CRYPT_SECURITYKEY=78987946
8+
9+
PASSPORT_LDAP_URL=ldap://template-openldap:389
10+
PASSPORT_LDAP_BINDDN=cn=admin,dc=test,dc=local
11+
PASSPORT_LDAP_BINDCREDENTIALS=
12+
PASSPORT_LDAP_SEARCHBASE=dc=test,dc=local
13+
LDAP_LOG_LEVEL=trace
14+
15+
MAILER_TRANSPORT_HOST=template-maildev
16+
MAILER_TRANSPORT_PORT=1025
17+
MAILER_TRANSPORT_SECURE=0
18+
MAILER_TRANSPORT_IGNORETLS=0
19+
MAILER_TRANSPORT_AUTHUSER=''
20+
MAILER_TRANSPORT_AUTHPASS=''
21+
MAILER_DEFAULTS_FROM="'test' <test@test.com>"

.eslintrc.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
sourceType: 'module',
6+
},
7+
plugins: ['@typescript-eslint/eslint-plugin'],
8+
extends: [
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:prettier/recommended',
11+
],
12+
root: true,
13+
env: {
14+
node: true,
15+
},
16+
ignorePatterns: ['.eslintrc.js'],
17+
rules: {
18+
'no-console': 0,
19+
'comma-dangle': [2, 'always-multiline'],
20+
'@typescript-eslint/interface-name-prefix': 'off',
21+
'@typescript-eslint/explicit-function-return-type': 'off',
22+
'@typescript-eslint/explicit-module-boundary-types': 'off',
23+
'@typescript-eslint/no-inferrable-types': 'off',
24+
'@typescript-eslint/no-explicit-any': 'off',
25+
'@typescript-eslint/no-var-requires': 'off',
26+
},
27+
};

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/workflows/docker-image.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Docker Image CI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
steps:
15+
- name: Checkout the code
16+
uses: actions/checkout@v2
17+
18+
- name: Build docker Nuxt
19+
uses: Libertech-FR/lt-actions/docker-image@main
20+
with:
21+
repository: ${{ github.repository }}
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/issue-spend.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Update Time Spent On Issues
2+
3+
on:
4+
issue_comment:
5+
types: [created, edited]
6+
7+
jobs:
8+
get-comments:
9+
if: ${{ startsWith(github.event.comment.body, '!spend') }}
10+
runs-on: ubuntu-latest
11+
outputs:
12+
comments: ${{ steps.generate-matrix.outputs.comments }}
13+
14+
steps:
15+
- name: Time spent control
16+
uses: Libertech-FR/lt-actions/issue-spend@main
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version_increment:
7+
description: 'La version a incrémenter (major, minor, patch)'
8+
required: true
9+
default: 'patch'
10+
type: choice
11+
options:
12+
- 'major'
13+
- 'minor'
14+
- 'patch'
15+
build_docker_image:
16+
description: "Construire l'image docker ?"
17+
required: true
18+
default: true
19+
type: boolean
20+
latest:
21+
description: "Tagger l'image docker avec le tag 'latest' ?"
22+
required: true
23+
default: true
24+
type: boolean
25+
26+
jobs:
27+
build:
28+
runs-on: ubuntu-latest
29+
permissions:
30+
contents: write
31+
packages: write
32+
33+
steps:
34+
- name: Build docker
35+
uses: Libertech-FR/lt-actions/release@main
36+
with:
37+
version_increment: ${{ github.event.inputs.version_increment }}
38+
build_docker_image: ${{ github.event.inputs.build_docker_image }}
39+
latest: ${{ github.event.inputs.latest }}
40+
repository: ${{ github.repository }}
41+
username: ${{ github.actor }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
43+
access_token: ${{ secrets.GITHUB_TOKEN }}
44+
github_token: ${{ secrets.GITHUB_TOKEN }}
45+
# Optional parameters, thoses are default values :
46+
registry: 'ghcr.io'
47+
context: .

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
dist/
3+
.DS_Store/
4+
.idea/
5+
.env
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
dist/
3+
.DS_Store/
4+
.idea/
5+
.env
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*

0 commit comments

Comments
 (0)