-
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
21 changed files
with
289 additions
and
3,253 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
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,28 @@ | ||
variables: | ||
KUBE_NAMESPACE: boilerplate | ||
HELM_RELEASE_NAME: rest | ||
|
||
include: | ||
- project: "inovacao/devops/template-cicd" | ||
file: "sonar-js.yaml" | ||
- project: "inovacao/devops/template-cicd" | ||
file: "test-nodejs.yaml" | ||
- project: "inovacao/devops/template-cicd" | ||
file: "build-nodejs.yaml" | ||
- project: "inovacao/devops/template-cicd" | ||
file: "deploy.yaml" | ||
|
||
test: | ||
extends: .test | ||
|
||
sonar: | ||
extends: .sonar_js | ||
|
||
build: | ||
extends: .build | ||
|
||
stages: | ||
- test | ||
- sonar | ||
- build | ||
- deploy |
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 +1,9 @@ | ||
engine-strict=true | ||
resolution-mode=highest | ||
auto-install-peers=true | ||
|
||
# TEx pkgs | ||
//gitlab.textecnologia.io/api/v4/packages/npm/:_authToken=glpat-SzBHz58z8KCtXSqvKFAR | ||
//gitlab.textecnologia.io/api/v4/:_authToken=glpat-SzBHz58z8KCtXSqvKFAR | ||
@xet:registry=https://gitlab.textecnologia.io/api/v4/packages/npm/ | ||
@texsvelte:registry=https://gitlab.textecnologia.io/api/v4/packages/npm/ |
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,15 @@ | ||
*.css | ||
.* | ||
bin | ||
build | ||
coverage | ||
dist | ||
node_modules | ||
package | ||
# template.js | ||
vite.config.js.timestamp-* | ||
|
||
*.json | ||
*.yaml | ||
*.yml | ||
*.md |
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,16 @@ | ||
arrowParens: avoid | ||
bracketSameLine: false | ||
bracketSpacing: false | ||
# embeddedLanguageFormatting: auto | ||
insertPragma: false | ||
htmlWhitespaceSensitivity: css | ||
printWidth: 720 | ||
proseWrap: preserve | ||
quoteProps: as-needed | ||
requirePragma: false | ||
semi: false | ||
singleAttributePerLine: true | ||
singleQuote: true | ||
trailingComma: all | ||
tabWidth: 4 | ||
useTabs: true |
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,26 @@ | ||
import process from 'node:process' | ||
import la from '@tadashi/local-access' | ||
import * as debug from '@tadashi/debug' | ||
import app from '../server/app.js' | ||
|
||
// prettier-ignore | ||
const { | ||
PORT: port = 5001, | ||
HOSTNAME_CUSTOM: hostname = '127.0.0.1', | ||
VERSION = 'dev', | ||
} = process.env | ||
|
||
// prettier-ignore | ||
const { | ||
local, | ||
network, | ||
} = la({port, hostname}) | ||
|
||
app.listen(port, () => { | ||
debug.info('Server listening') | ||
debug.info('----------------') | ||
debug.info(`Local: ${local}`) | ||
debug.info(`Network: ${network}`) | ||
debug.info('----------------') | ||
debug.info(`Version: ${VERSION}`) | ||
}) |
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 |
---|---|---|
@@ -1,27 +1,4 @@ | ||
#!/usr/bin/env node | ||
|
||
import '../server/reset.js' | ||
import process from 'node:process' | ||
import la from '@tadashi/local-access' | ||
import * as debug from '@tadashi/debug' | ||
import app from '../server/app.js' | ||
|
||
const { | ||
PORT: port = 5001, | ||
HOSTNAME_CUSTOM: hostname = '0.0.0.0', | ||
VERSION = 'dev', | ||
} = process.env | ||
|
||
const { | ||
local, | ||
network, | ||
} = la({port, hostname}) | ||
|
||
app.listen(port, () => { | ||
debug.info('Server listening') | ||
debug.info('----------------') | ||
debug.info(`Local: ${local}`) | ||
debug.info(`Network: ${network}`) | ||
debug.info('----------------') | ||
debug.info(`Version: ${VERSION}`) | ||
}) | ||
await import('./reset.js') | ||
await import('./listen.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
Oops, something went wrong.