Skip to content

Commit

Permalink
Defining the whole new boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
luiguild committed Nov 19, 2024
1 parent 774083c commit 622aa70
Show file tree
Hide file tree
Showing 40 changed files with 2,712 additions and 2,497 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
name: Deploy Branch in Based.io
name: Based Deploy by Branch - Create Env

on:
push:
branches:
- "*"
- '**'

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.15.0
node-version: '18.15.0'

- name: Install dependencies
run: npm install
- name: Build the action
run: npm run build
- name: Run the action

- name: Deploy the branch
uses: atelier-saulx/based-deploy@main
with:
userID: ${{ secrets.BASED_USER_ID }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
name: Delete Branch in Based.io
name: Based Deploy by Branch - Delete Env

on:
delete:
branches:
- "*"
- '**'

jobs:
delete:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.15.0
node-version: '18.15.0'

- name: Install dependencies
run: npm install
- name: Build the action
run: npm run build
- name: Run the action

- name: Deploy the branch
uses: atelier-saulx/based-deploy@main
with:
userID: ${{ secrets.BASED_USER_ID }}
Expand Down
49 changes: 0 additions & 49 deletions app/app.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions app/based.config.ts

This file was deleted.

25 changes: 0 additions & 25 deletions app/index.ts

This file was deleted.

5 changes: 0 additions & 5 deletions based.json

This file was deleted.

36 changes: 36 additions & 0 deletions based.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/******************************************************************
* *
* The 'based.ts' file is the entry point of your project *
* in the Based Cloud. *
* *
* This file specifies where the '@based/client' should connect. *
* *
* As a TypeScript file, you can define multiple exports for *
* different environments, such as development, tests, or *
* production. Use 'process.env' to dynamically control which *
* environment the '@based/client' connects to. *
* *
* Alternatively, you can use a plain JavaScript file or even *
* a JSON file if preferred. *
* *
******************************************************************/

export default {
/****************************************************************
* The 'organization' you created in the Based Cloud Dashboard. *
****************************************************************/
org: 'hello-world',
/****************************************************************
* The 'project' you created in this organization. *
****************************************************************/
project: 'example',
/****************************************************************
* *
* The 'environment' you created in the project. *
* *
* You can also use '#branch' to dynamically point the *
* '@based/client' to the branch you are currently working on. *
* *
****************************************************************/
env: 'main',
}
40 changes: 40 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"ignore": ["dist", "node_modules"]
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "warn",
"noUnusedFunctionParameters": "warn",
"noUnusedImports": "warn"
},
"style": {
"noParameterAssign": "off",
"noInferrableTypes": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded"
}
}
}
6 changes: 0 additions & 6 deletions functions/authorize/based.config.ts

This file was deleted.

10 changes: 0 additions & 10 deletions functions/authorize/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions functions/counter/based.config.ts

This file was deleted.

20 changes: 0 additions & 20 deletions functions/counter/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions functions/hello/based.config.ts

This file was deleted.

10 changes: 0 additions & 10 deletions functions/hello/index.ts

This file was deleted.

Loading

0 comments on commit 622aa70

Please sign in to comment.