Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FND-495] Pushing the new boilerplate #2

Merged
merged 2 commits into from
Nov 19, 2024
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
41 changes: 41 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
### SUMMARY
<!-- Add links to any relevant Github tickets, including their titles: -->
<!-- Also write a sentence or two explaining the overall problem that you are solving. -->
<!-- e.g. [Ticked-ID](http://ticket.link) Ticket title -->

### DETAILS
<!--
Provide additional background for code reviewers who may be unfamiliar with your feature:
- Why do we need this?
- What changes did you make?
- Is there a specific aspect that you want reviewers to focus on?
- Were you unsure about some design decisions?
- Link to a design note or spec, if relevant.
-->

### DEVELOPER IMPACT
<!--
Include this section if your PR affects other people working monorepo.
For example, changes to a build rig, introducing a new coding pattern, etc.
Write "N/A" if not applicable or just don't include this section.
-->

### TESTING
<!--
How did you test your changes?
How others can test on their machines?
Unit tests?
Manual steps?
Write "N/A" if not applicable or just don't include this section.
-->

### DOCUMENTATION
<!--
Do your changes require to deliver documentation or update existing one?
If so, please include wiki link of the created/updated documentation.
Write "N/A" if not applicable or just don't include this section.
-->

### PIC
<!-- Not mandatory but is always nice to have a little fun. -->
![Put something funny here](https://giphy.com/trending-gifs)
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
Loading