Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 93 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Build/Runtime
build/
deploy/
dev/
pids
*.pid
*.seed
*.pid.lock

# Test/Coverage
lib-cov
coverage
*.lcov
.nyc_output
mocha.js
mocha.js.map

# Grunt/Bower
.grunt
bower_components

# Dependency directories
node_modules/
jspm_packages/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.*
!.env.example

# cache directories
.cache
.cache/

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v3
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# macOS
.DS_Store
.AppleDouble
.apdisk

# Windows
Thumbs.db
ehthumbs.db
*.lnk

# IDEs
.vscode/
.idea/
*.sublime-project
*.sublime-workspace
904 changes: 886 additions & 18 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package:
imageName: microservice
imageIndexFilePath: ./build/index.js
outputFolder: ./build
outputFolder: ./deploy

Empty file added deploy/build_tar_here
Empty file.
56 changes: 56 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
const js = require('@eslint/js');
const globals = require('globals');

module.exports = [
js.configs.recommended,
{
files: ['**/*.js'],
languageOptions: {
globals: {
...globals.node,
mimikModule: true,
globalThis: true,
Duktape: true
}
},
rules: {
'arrow-spacing': ['error', { before: true, after: true }],
'block-spacing': ['error', 'always'],
'comma-spacing': ['error', { before: false, after: true }],
"semi-spacing": ["error", { "before": false, "after": true }],
"no-multi-spaces": ["error", {
exceptions: {
Property: false,
BinaryExpression: false,
VariableDeclarator: false
}
}],
'consistent-return': 'error',
'curly': ['error', 'multi-line'],
'eol-last': ['error', 'always'],
'eqeqeq': ['error', 'always'],
'func-call-spacing': ['error', 'never'],
'indent': ['error', 2, { SwitchCase: 1 }],
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
'keyword-spacing': ['error', { before: true, after: true }],
'max-len': ['error', { code: 180 }],
'linebreak-style': 'off',
'no-warning-comments': 'off',
'no-console': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': [
'warn',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' }
],
'no-use-before-define': ['error', { functions: false, classes: true }],
'object-curly-spacing': ['error', 'always'],
'prefer-const': 'error',
'quotes': ['error', 'single', { allowTemplateLiterals: true }],
'semi': ['error', 'always'],
'space-before-blocks': ['error', 'always'],
'space-before-function-paren': ['error', 'never'],
'space-in-parens': ['error', 'never'],
'spaced-comment': ['error', 'always', { markers: ['/'] }]
}
}
];
Loading