Skip to content

Commit

Permalink
Merge remote-tracking branch 'soundlab-api/master' from https://githu…
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeDCrawford committed Sep 6, 2022
2 parents b9481d4 + d48290d commit d18e0c0
Show file tree
Hide file tree
Showing 75 changed files with 14,548 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-transform-runtime"
]
}
4 changes: 4 additions & 0 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"source": "./src",
"destination": "./doc"
}
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist
node_modules
coverage
webpack.*.js
*Server.js
71 changes: 71 additions & 0 deletions .eslintrc.json
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"]
}
}
}
}
20 changes: 20 additions & 0 deletions .gitattributes
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
39 changes: 39 additions & 0 deletions .gitignore
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
50 changes: 50 additions & 0 deletions .gitlab-ci.yml
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"
64 changes: 64 additions & 0 deletions .hold-eslintrc.json
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"] }]
}
}
43 changes: 43 additions & 0 deletions .jsbeautifyrc
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
}
}
Loading

0 comments on commit d18e0c0

Please sign in to comment.