Skip to content

Commit f1b79fe

Browse files
author
Vriza
committed
initial code commit and enforce lf line endings
1 parent e253891 commit f1b79fe

File tree

179 files changed

+34647
-0
lines changed

Some content is hidden

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

179 files changed

+34647
-0
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
# package-lock.json
3+
# **/*.local.js*
4+
**/*.production.js*
5+
**/*.staging.js*
6+
**/*.development.js*

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# http://editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
indent_style = space
9+
indent_size = 4
10+
end_of_line = lf
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true

.eslintignore

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

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "loopback"
3+
}

.eslintrc.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"env": {
3+
"browser": false,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true,
7+
"mocha": true
8+
},
9+
"extends": "eslint:recommended",
10+
"globals": {
11+
"Atomics": "readonly",
12+
"SharedArrayBuffer": "readonly"
13+
},
14+
"parserOptions": {
15+
"ecmaVersion": 2018
16+
},
17+
"rules": {
18+
"camelcase": "error",
19+
"eol-last": ["error", "always"],
20+
"indent": ["error", 2],
21+
"linebreak-style": ["error", "unix"],
22+
"no-unused-vars": [
23+
"error",
24+
{
25+
"vars": "all",
26+
"args": "after-used",
27+
"argsIgnorePattern": "^_",
28+
"varsIgnorePattern": "should",
29+
"ignoreRestSiblings": true
30+
}
31+
],
32+
"object-curly-spacing": ["error", "always"],
33+
"quotes": ["error", "double"],
34+
"semi": ["error", "always"],
35+
"strict": "error"
36+
}
37+
}

.gitattributes

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

.github/ISSUE_TEMPLATE/issue-.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: 'Issue '
3+
about: Describe this issue purpose here.
4+
5+
---
6+
7+
## Issue Name
8+
9+
### Summary
10+
11+
### Steps to Reproduce
12+
13+
### Current Behaviour
14+
15+
### Expected Behaviour
16+
17+
### Extra Details
18+
19+
Here you should include details about the system (if it is unique) and possible information about a fix (feel free to link to code where relevant). Screenshots/GIFs are also fine here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Issue template
3+
about: Describe this issue purpose here.
4+
5+
---
6+
7+
## Issue Name
8+
9+
### Summary
10+
11+
### Steps to Reproduce
12+
13+
### Current Behaviour
14+
15+
### Expected Behaviour
16+
17+
### Extra Details
18+
19+
Here you should include details about the system (if it is unique) and possible information about a fix (feel free to link to code where relevant). Screenshots/GIFs are also fine here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Description
2+
3+
Short description of the pull request
4+
5+
## Motivation
6+
7+
Background on use case, changes needed
8+
9+
## Fixes:
10+
11+
* Items added
12+
13+
## Changes:
14+
15+
* changes made
16+
17+
## Tests included/Docs Updated?
18+
19+
- [ ] Included for each change/fix?
20+
- [ ] Passing? (Merge will not be approved unless this is checked)
21+
- [ ] Docs updated?
22+
- [ ] New packages used/requires npm install?
23+
- [ ] Toggle added for new features?

.github/workflows/build-push.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build && Push
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
9+
build:
10+
name: Build and push Docker image with latest tag
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Login to GHCR
17+
uses: docker/login-action@v2
18+
with:
19+
registry: ghcr.io
20+
username: ${{ github.actor }}
21+
password: ${{ secrets.GITHUB_TOKEN }}
22+
23+
- name: Build and push
24+
uses: docker/build-push-action@v3
25+
with:
26+
context: .
27+
push: true
28+
tags: ghcr.io/scicatproject/backend:latest,ghcr.io/scicatproject/backend:${{ github.sha }}
29+
30+
gitlab:
31+
name: Deploy
32+
needs: [build]
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Trigger ESS pipeline
36+
uses: appleboy/gitlab-ci-action@master
37+
with:
38+
token: ${{ secrets.TOKEN }}
39+
project_id: 1903
40+
ref: "master"
41+
host: "https://gitlab.esss.lu.se"
42+
debug: true
43+

0 commit comments

Comments
 (0)