Skip to content

Commit

Permalink
Merge pull request #6 from pax-app/devel
Browse files Browse the repository at this point in the history
First Stable Release
  • Loading branch information
lucasdutraf authored Nov 18, 2019
2 parents b7947d8 + 957cfa7 commit d904b5d
Show file tree
Hide file tree
Showing 22 changed files with 1,193 additions and 279 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ root = true
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

26 changes: 26 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
env: {
es6: true,
node: true,
},
extends: [
'airbnb-base',
'prettier',
],
plugins: ['prettier'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
"prettier/prettier": "error",
"class-methods-use-this": "off",
"no-param-reassign": "off",
"camelcase": "off",
"no-unused-vars": ["error", { "argsIngorePattern": "next" }]
},
};
18 changes: 0 additions & 18 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ typings/

# next.js build output
.next

# Folder with nodejs code built by sucrase
dist
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "es5"
}
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
sudo: required
language: python
python: 3.8
services:
- docker

before_install:
# install heroku CLI
- wget -qO- https://toolbelt.heroku.com/install.sh | sh
# login to docker registries on heroku
- heroku container:login

script:
# building docker image
- heroku container:push web --app $HEROKU_APPNAME

deploy:
provider: script
script:
# releasing image
heroku container:release web --app $HEROKU_APPNAME
on:
branch: devel
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM node:10-alpine
WORKDIR /usr/src/app

COPY package*.json ./
RUN npm install
RUN npm install

COPY . .

CMD [ "npm", "start"]
CMD [ "/bin/sh", "-c" ,"npm install && npm run-script build && npm start"]
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Pax_Gateway
# Gateway
<a href="https://codeclimate.com/github/pax-app/Gateway/maintainability"><img src="https://api.codeclimate.com/v1/badges/88962318c3d6575b24e4/maintainability" /></a>

API Gateway para o Pax, servindo de camada de comunicação entre os microsserviços e o Front-End do sistema.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ services:
ports:
- 3002:3002
- 9229:9229
command: npm start
command: /bin/sh -c "npm install && npm run-script build && npm run-script dev"
5 changes: 5 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"execMap": {
"js": "sucrase-node"
}
}
Loading

0 comments on commit d904b5d

Please sign in to comment.