-
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.
Merge remote-tracking branch 'soundlab-api/master' from https://githu…
- Loading branch information
Showing
75 changed files
with
14,548 additions
and
0 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,8 @@ | ||
{ | ||
"presets": [ | ||
"@babel/preset-env" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-runtime" | ||
] | ||
} |
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,4 @@ | ||
{ | ||
"source": "./src", | ||
"destination": "./doc" | ||
} |
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 @@ | ||
dist | ||
node_modules | ||
coverage | ||
webpack.*.js | ||
*Server.js |
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,71 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"browser": true, | ||
"node": true | ||
}, | ||
"extends": "airbnb", | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"allowImportExportEverywhere": true, | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
"tab" | ||
], | ||
"consistent-return": "off", | ||
"object-shorthand": "off", | ||
"no-absolute-path": "off", | ||
"no-param-reassign": "off", | ||
"no-tabs": "off", | ||
"no-underscore-dangle": "off", | ||
"no-undef": "off", | ||
"no-console": "off", | ||
"react/jsx-indent": [ | ||
"error", | ||
"tab" | ||
], | ||
"react/jsx-indent-props": [ | ||
"error", | ||
"tab" | ||
], | ||
"react/react-in-jsx-scope": "off", | ||
"react/prefer-stateless-function": "off", | ||
"react/jsx-no-undef": "off", | ||
"react/jsx-no-bind": "off", | ||
"react/sort-comp": "off", | ||
"jsx-a11y/label-has-for": "off", | ||
"new-cap": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"object-curly-spacing": "off", | ||
"no-multiple-empty-lines": "off", | ||
"comma-dangle": "off", | ||
"no-trailing-spaces": "off", | ||
"space-before-function-paren": "off", | ||
"prefer-arrow-callback": "off", | ||
"max-len": "off", | ||
"jsx-a11y/anchor-has-content": "off", | ||
"no-bitwise": "off", | ||
"padded-blocks": "off", | ||
"import/extensions": "off", | ||
"react/prefer-es6-class": "off", | ||
"no-unused-vars": "off", | ||
"no-prototype-builtins": "off", | ||
"import/prefer-default-export": "off", | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }] | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [".js", ".jsx"], | ||
"moduleDirectory": ["node_modules", "./client/src"] | ||
} | ||
} | ||
} | ||
} |
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,20 @@ | ||
# Automatically normalize line endings for all text-based files | ||
# http://git-scm.com/docs/gitattributes#_end_of_line_conversion | ||
* text=auto | ||
|
||
# For the following file types, normalize line endings to LF on | ||
# checkin and prevent conversion to CRLF when they are checked out | ||
# (this is required in order to prevent newline related issues like, | ||
# for example, after the build script is run) | ||
.* text eol=lf | ||
*.html text eol=lf | ||
*.css text eol=lf | ||
*.less text eol=lf | ||
*.scss text eol=lf | ||
*.sss text eol=lf | ||
*.js text eol=lf | ||
*.json text eol=lf | ||
*.md text eol=lf | ||
*.sh text eol=lf | ||
*.txt text eol=lf | ||
*.xml text eol=lf |
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,39 @@ | ||
# Application | ||
node_modules | ||
build | ||
dist | ||
coverage | ||
settings/local.json | ||
settings/prod.json | ||
*.log | ||
dump.rdb | ||
doc/ | ||
.env* | ||
|
||
# Temp files | ||
tmp/ | ||
|
||
# Editors | ||
*~ | ||
\#*\# | ||
/.emacs.desktop | ||
/.emacs.desktop.lock | ||
*.elc | ||
auto-save-list | ||
tramp | ||
.\#* | ||
*.sw[po] | ||
.idea/ | ||
*.iml | ||
*.iws | ||
.vscode/ | ||
|
||
# OS | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
*.sh |
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 @@ | ||
image: docker:latest | ||
services: | ||
- docker:dind | ||
|
||
variables: | ||
DOCKER_DRIVER: overlay | ||
|
||
stages: | ||
# - test | ||
# - package | ||
- deploy | ||
|
||
# test: | ||
# stage: test | ||
# image: node:8-wheezy | ||
# before_script: | ||
# - npm i -g yarn | ||
# - yarn install | ||
# script: | ||
# - npm run test-client-ci | ||
|
||
# docker-build: | ||
# only: | ||
# - master | ||
# - develop | ||
# stage: package | ||
# script: | ||
# - docker build -t soundlab-app . | ||
|
||
deploy: | ||
only: | ||
- master | ||
- develop | ||
image: geertjohan/google-cloud-sdk-with-docker | ||
stage: deploy | ||
before_script: | ||
- export CLOUDSDK_CONTAINER_USE_CLIENT_CERTIFICATE=True | ||
script: | ||
- docker build -t soundlab-app . # Build docker image | ||
- docker tag soundlab-app us.gcr.io/archimedes-01201/soundlab-app # Tag docker image for Google Cloud | ||
- echo "$GOOGLE_KEY" > key.json # Google Cloud service account key | ||
- gcloud auth activate-service-account --key-file key.json | ||
- gcloud config set compute/zone us-central1-a | ||
- gcloud config set project archimedes-01201 | ||
# - gcloud container clusters get-credentials soundlab-cluster | ||
- gcloud docker -- push us.gcr.io/archimedes-01201/soundlab-app | ||
# - kubectl delete service soundlab-app | ||
# - kubectl delete deployment soundlab-app | ||
# - kubectl run soundlab-app --image=us.gcr.io/archimedes-01201/soundlab-app --port=3000 | ||
# - kubectl expose deployment soundlab-app --port=80 --target-port=3000 --external-ip="10.3.250.157" |
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,64 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"browser": true, | ||
"node": true | ||
}, | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"allowImportExportEverywhere": true, | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"extends": [ | ||
"airbnb" | ||
], | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
"tab" | ||
], | ||
"consistent-return": "off", | ||
"object-shorthand": "off", | ||
"no-absolute-path": "off", | ||
"no-param-reassign": "off", | ||
"no-tabs": "off", | ||
"no-underscore-dangle": "off", | ||
"no-undef": "off", | ||
"no-console": "off", | ||
"react/jsx-indent": [ | ||
"error", | ||
"tab" | ||
], | ||
"react/jsx-indent-props": [ | ||
"error", | ||
"tab" | ||
], | ||
"react/react-in-jsx-scope": "off", | ||
"react/prefer-stateless-function": "off", | ||
"react/jsx-no-undef": "off", | ||
"react/jsx-no-bind": "off", | ||
"react/sort-comp": "off", | ||
"jsx-a11y/label-has-for": "off", | ||
"new-cap": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"object-curly-spacing": "off", | ||
"no-multiple-empty-lines": "off", | ||
"comma-dangle": "off", | ||
"no-trailing-spaces": "off", | ||
"space-before-function-paren": "off", | ||
"prefer-arrow-callback": "off", | ||
"max-len": "off", | ||
"jsx-a11y/anchor-has-content": "off", | ||
"no-bitwise": "off", | ||
"padded-blocks": "off", | ||
"import/extensions": "off", | ||
"react/prefer-es6-class": "off", | ||
"no-unused-vars": "off", | ||
"no-prototype-builtins": "off", | ||
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }] | ||
} | ||
} |
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,43 @@ | ||
{ | ||
"html": { | ||
"allowed_file_extensions": [html", "xml", "svg"], | ||
"brace_style": "collapse", | ||
"end_with_newline": false, | ||
"indent_char": " ", | ||
"indent_handlebars": false, | ||
"indent_inner_html": false, | ||
"indent_scripts": "keep", | ||
"indent_size": 2, | ||
"max_preserve_newlines": 0, | ||
"preserve_newlines": true, | ||
"wrap_line_length": 0 | ||
}, | ||
"css": { | ||
"allowed_file_extensions": ["css", "scss", "sass", "less", "styl"], | ||
"end_with_newline": false, | ||
"indent_char": " ",r | ||
"indent_size": 2, | ||
"newline_between_rules": true, | ||
"selector_separator": " ", | ||
"selector_separator_newline": true | ||
}, | ||
"js": { | ||
"allowed_file_extensions": ["js", "json"], | ||
"brace_style": "collapse", | ||
"break_chained_methods": false, | ||
"indent_char": " ", | ||
"indent_level": 0, | ||
"indent_size": 2, | ||
"indent_with_tabs": false, | ||
"keep_array_indentation": false, | ||
"keep_function_indentation": false, | ||
"max_preserve_newlines": 0, | ||
"preserve_newlines": true, | ||
"space_after_anon_function": false, | ||
"space_before_conditional": true, | ||
"space_in_empty_paren": false, | ||
"space_in_paren": false, | ||
"unescape_strings": false, | ||
"wrap_line_length": 0 | ||
} | ||
} |
Oops, something went wrong.