forked from hpi-schul-cloud/edtrio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
184 changed files
with
16,762 additions
and
8,380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.github | ||
.git | ||
dist | ||
.cache | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Fix end-of-lines in Git versions older than 2.10 | ||
# https://github.com/git/git/blob/master/Documentation/RelNotes/2.10.0.txt#L248 | ||
* text=auto eol=lf |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ yarn.lock | |
# production | ||
**/*/build | ||
|
||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"url-loader": { | ||
"exts": ["jpg", "jpeg", "png", "gif", "svg"], | ||
"exts": ["jpg", "jpeg", "png", "gif"], | ||
"limit": 1024000 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
{ | ||
"singleQuote": false, | ||
"trailingComma": "all", | ||
"semi": false, | ||
"tabWidth": 4, | ||
"jsxBracketSameLine": true, | ||
"bracketSpacing": true, | ||
"arrowParens": "avoid" | ||
"printWidth": 80, | ||
"useTabs": true, | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false, | ||
"arrowParens": "always", | ||
"proseWrap": "never", | ||
"htmlWhitespaceSensitivity": "strict", | ||
"endOfLine": "lf", | ||
"semi": true, | ||
"singleQuote": false | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
multipass: true | ||
|
||
plugins: | ||
- addAttributesToSVGElement: false | ||
- addClassesToSVGElement: false | ||
- cleanupAttrs: true | ||
- cleanupEnableBackground: true | ||
- cleanupIDs: true | ||
- cleanupListOfValues: true | ||
- cleanupNumericValues: | ||
floatPrecision: 2 | ||
- collapseGroups: true | ||
- convertColors: true | ||
- convertPathData: true | ||
- convertShapeToPath: true | ||
- convertStyleToAttrs: true | ||
- convertTransform: true | ||
- mergePaths: true | ||
- minifyStyles: true | ||
- moveElemsAttrsToGroup: true | ||
- moveGroupAttrsToElems: true | ||
- removeAttrs: true | ||
- removeComments: true | ||
- removeDesc: true | ||
- removeDimensions: true | ||
- removeDoctype: true | ||
- removeEditorsNSData: true | ||
- removeElementsByAttr: true | ||
- removeEmptyAttrs: true | ||
- removeEmptyContainers: true | ||
- removeEmptyText: true | ||
- removeHiddenElems: true | ||
- removeMetadata: true | ||
- removeNonInheritableGroupAttrs: true | ||
- removeRasterImages | ||
- removeStyleElement: true | ||
- removeTitle: true | ||
- removeUnknownsAndDefaults: true | ||
- removeUnusedNS: true | ||
- removeUselessDefs: true | ||
- removeUselessStrokeAndFill: true | ||
- removeViewBox: true | ||
- removeXMLNS: false | ||
- removeXMLProcInst: true | ||
- sortAttrs: true | ||
- transformsWithOnePath: true | ||
|
||
js2svg: | ||
pretty: false | ||
indent: ' ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
branches: | ||
only: | ||
- develop | ||
- master | ||
- /^(?i:release|hotfix).*$/ | ||
language: node_js | ||
node_js: | ||
- lts/* | ||
dist: xenial | ||
|
||
env: | ||
global: | ||
- TZ=Europe/Berlin | ||
- GIT_SHA=$( git rev-parse HEAD ) | ||
- DOCKERTAG="$( echo $TRAVIS_BRANCH | tr -s '[:punct:]' '-' | tr -s '[:upper:]' '[:lower:]' )_v$( jq -r '.version' package.json )_$TRAVIS_COMMIT" | ||
|
||
# do not run on develop if it is just a dependency update from dependabot to preserve resources | ||
if: (not branch = develop) or (branch = develop and not commit_message ~= /^Bump.*from.*to.*$/) | ||
|
||
stages: | ||
- test | ||
- name: build | ||
if: type = push && (branch = master || branch = develop || branch ~= /^(?i:release|hotfix).*$/) | ||
- name: deploy | ||
if: type = push && (branch = master || branch = develop || branch ~= /^(?i:release|hotfix).*$/) | ||
|
||
jobs: | ||
include: | ||
# Build & Test | ||
- stage: test | ||
script: npm run build:standalone | ||
name: "build:react:standalone" | ||
- script: npm run build | ||
name: "build:react" | ||
- script: npm run test | ||
name: "mocha" | ||
services: | ||
- mongodb | ||
|
||
# Build Docker Images | ||
- stage: build | ||
name: build | ||
language: generic | ||
script: bash ./deploy/build.sh | ||
|
||
# Deploy | ||
- stage: deploy | ||
name: deploy | ||
language: generic | ||
script: bash ./deploy/deploy.sh | ||
|
||
|
||
cache: npm | ||
before_cache: | ||
# delete all .cache folders before actually storing the cache. | ||
# nuxt, storybook and vuepress stores some build artefacts here which invalidates the cache. | ||
- cd node_modules && find . -name .cache -type d -exec rm -rf {} + && cd .. | ||
- cd node_modules && find . -name .temp -type d -exec rm -rf {} + && cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM node:lts as builder | ||
|
||
WORKDIR '/app' | ||
COPY ./package.json ./ | ||
COPY ./package-lock.json ./ | ||
RUN npm ci | ||
COPY . . | ||
RUN npm run build | ||
RUN cd dist && gzip -k index.js | ||
|
||
FROM nginx:alpine | ||
RUN apk update && apk add bash | ||
COPY --from=builder /app/dist /usr/share/nginx/html/ | ||
COPY --from=builder /app/deploy/env.sh ./ | ||
COPY --from=builder /app/deploy/nginx.conf.template /etc/nginx/ | ||
COPY --from=builder /app/deploy/docker-entrypoint.sh ./ | ||
RUN chmod 550 docker-entrypoint.sh | ||
EXPOSE 80 | ||
|
||
# read envs and start nginx | ||
CMD ./docker-entrypoint.sh |
Oops, something went wrong.