Skip to content
Merged
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
10 changes: 5 additions & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"extends": ["airbnb-base", "airbnb-typescript/base"],
"extends": ["airbnb-base", "airbnb-typescript/base", "prettier"],
"parserOptions": {
"project": "./tsconfig.json"
},
"overrides": [
{
"files": [ "*.test-*.ts", "*.bench.ts" ],
"files": ["*.test-*.ts", "*.bench.ts"],
"rules": {
"object-curly-newline": "off",
"import/no-extraneous-dependencies": [ "error", { "devDependencies": true } ]
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }]
}
}
],
"rules": {
"no-multiple-empty-lines": [ "error", { "max": 5, "maxEOF": 0 } ],
"no-multiple-empty-lines": ["error", { "max": 5, "maxEOF": 0 }],
"no-underscore-dangle": "off",
"@typescript-eslint/naming-convention": "off",
"import/prefer-default-export": "off"
}
}
}
34 changes: 34 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# defaults
**/.git
**/.svn
**/.hg
**/node_modules

# build and dist Output
dist
.out
.next

# logs
npm-debug.log
yarn-debug.log
yarn-error.log
pnpm-debug.log

# environment files
.env
.env.local
.env.*.local

# lockfiles (if using a monorepo or specific package manager setup)
package-lock.json
yarn.lock
pnpm-lock.yaml

# miscellaneous
coverage/
.DS_Store
*.min.js
public/
tmp/
*.md
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false,
"trailingComma": "all",
"printWidth": 100,
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "lf",
"singleAttributePerLine": true
}
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>connect</code></summary>
<br/>

Establishes a SSH Connection with the remote host.

```bash
Expand All @@ -97,6 +98,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>reboot</code></summary>
<br/>

Reboots the remote host after stopping containers and removing containers, networks, volumes, and images created by <code>up</code>.

```bash
Expand All @@ -107,6 +109,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>shutdown</code></summary>
<br/>

Shuts down the remote host after stopping containers and removing containers, networks, volumes, and images created by <code>up</code>.

```bash
Expand All @@ -117,6 +120,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>ssh-copy-id</code></summary>
<br/>

Copies the SSH Public Key specified in the config file into the remote server.

```bash
Expand All @@ -136,6 +140,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>up</code></summary>
<br/>

Builds, (re)creates, starts, and attaches to containers for a service. An optional variation can be provided in order to generate the custom <code>compose.yaml</code> file and start the containers in the chosen mode.

<br/>
Expand All @@ -162,6 +167,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>build-up</code></summary>
<br/>

Builds all the images and starts the containers. An optional variation can be provided in order to generate the custom <code>compose.yaml</code> file and start the containers in the chosen mode.

<br/>
Expand Down Expand Up @@ -202,6 +208,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>prune-build-push</code></summary>
<br/>

Removes all unused containers, networks and images (both dangling and unused).

```bash
Expand All @@ -220,6 +227,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>down</code></summary>
<br/>

Stops containers and removes containers, networks, volumes, and images created by <code>up</code>.

```bash
Expand All @@ -231,6 +239,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>down-build-up</code></summary>
<br/>

Stops containers and removes containers, networks, volumes, and images created by <code>up</code>.

```bash
Expand All @@ -255,6 +264,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>restart</code></summary>
<br/>

Restarts all stopped and running services.

```bash
Expand All @@ -266,6 +276,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>logs</code></summary>
<br/>

Displays log output from all services. If a variation is provided, it narrows down the logs to a specific service.

```bash
Expand All @@ -292,6 +303,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>prune</code></summary>
<br/>

Removes all unused containers, networks and images (both dangling and unused).

```bash
Expand All @@ -312,6 +324,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>up:test-mode</code></summary>
<br/>

Builds, (re)creates, starts, and attaches to containers for a service with <code>TEST_MODE</code> enabled (used to run unit, integration or benchmark tests locally):

```bash
Expand All @@ -324,6 +337,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>build-up:test-mode</code></summary>
<br/>

Builds all the images and starts the containers with <code>TEST_MODE</code> enabled (used to run unit, integration or benchmark tests locally):

```bash
Expand All @@ -336,6 +350,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>down</code></summary>
<br/>

Stops containers and removes containers, networks, volumes, and images created by <code>up</code>.

```bash
Expand All @@ -347,6 +362,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>down-build-up:test-mode</code></summary>
<br/>

Stops containers and removes containers, networks, volumes, and images created by <code>up</code>.

```bash
Expand All @@ -367,6 +383,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>api-test:$type</code></summary>
<br/>

Runs the automated tests on the api service for the chosen variation.

```bash
Expand Down Expand Up @@ -394,6 +411,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>build-cli</code></summary>
<br/>

Executes the script to generate a build of the CLI straight from the source code.

```bash
Expand All @@ -404,6 +422,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>build-deploy-cli</code></summary>
<br/>

Deploys the CLI from its source in the local host to the remote host.

Firstly, it creates the root directory (if it doesn't already exist):
Expand Down Expand Up @@ -433,6 +452,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>psql</code></summary>
<br/>

Start the terminal-based front-end to PostgreSQL

```bash
Expand All @@ -444,6 +464,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>backup-db</code></summary>
<br/>

Generates a database backup file, pulls it to the local host and performs a clean up once complete.

<br/>
Expand Down Expand Up @@ -474,6 +495,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>restore-db</code></summary>
<br/>

Restores a chosen backup file after cleaning the current state of the database and performs a clean up once complete.

<br/>
Expand Down Expand Up @@ -521,6 +543,7 @@ With its intuitive syntax and comprehensive functionality, the `cli` simplifies
<details>
<summary><code>deploy-envvar-assets</code></summary>
<br/>

Deploys the environment variable assets to the remote host from a custom source path.

**Note:** assets are generated by the <code>generate-envvar-assets</code> action.
Expand Down
Loading