Skip to content

Commit 9a1d3d5

Browse files
🚧 Initial commit front-end setup taken from some previous open source projects I worked on.
1 parent c185cbd commit 9a1d3d5

File tree

88 files changed

+8478
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+8478
-0
lines changed

.dockerignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
api/node_modules
2+
api/dist
3+
web/node_modules
4+
web/dist
5+
dist
6+
npm-debug.log
7+
node_modules
8+
docs
9+
10+
/now.*
11+
/*.now.*
12+
**/now.*
13+
14+
.secrets

.eslintrc.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
node: true
5+
extends:
6+
- prettier
7+
overrides: []
8+
parserOptions:
9+
ecmaVersion: latest
10+
sourceType: module
11+
rules: {}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build and Push
2+
3+
on:
4+
push:
5+
branches: [main, test]
6+
# Publish semver tags as releases.
7+
tags: ["v*.*.*", "v*.*.*.*"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Log into registry ${{ secrets.CONTAINER_REGISTRY_URL }}
18+
uses: docker/login-action@v3
19+
with:
20+
registry: ${{ secrets.CONTAINER_REGISTRY_URL }}
21+
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
22+
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
23+
24+
- name: Generate release tag
25+
id: generate_release_tag
26+
uses: amitsingh-007/next-release-tag@v5.1.0
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
tag_prefix: "v"
30+
tag_template: "yyyy.mm.dd.i"
31+
32+
- name: Extract Git Commit Hash
33+
id: git_commit_hash
34+
run: echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
35+
36+
- name: Build and push app Docker image
37+
uses: docker/build-push-action@v5.3.0
38+
with:
39+
context: .
40+
push: ${{ env.PUSH_ENABLED != 'false' }}
41+
tags: ${{ secrets.CONTAINER_REGISTRY_URL }}/solid-fm-accounting:${{ steps.generate_release_tag.outputs.next_release_tag }} , ${{ secrets.CONTAINER_REGISTRY_URL }}/solid-fm-accounting:latest
42+
build-args: |
43+
RELEASE_TAG=${{ steps.generate_release_tag.outputs.next_release_tag }}
44+
GIT_COMMIT_HASH=${{ steps.git_commit_hash.outputs.commit_hash }}
45+
46+
- name: Create release
47+
uses: ncipollo/release-action@v1
48+
if: ${{ env.PUSH_ENABLED != 'false' }}
49+
with:
50+
tag: ${{ steps.generate_release_tag.outputs.next_release_tag }}

.vscode/extensions.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": [
7+
"vue.vscode-typescript-vue-plugin",
8+
"esbenp.prettier-vscode",
9+
"dbaeumer.vscode-eslint",
10+
"jebbs.plantuml",
11+
"thebearingedge.vscode-sql-lit"
12+
],
13+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
14+
"unwantedRecommendations": []
15+
}

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"eslint.workingDirectories": ["./api", "./web"],
3+
"eslint.validate": ["javascript", "typescript", "vue"],
4+
"typescript.preferences.importModuleSpecifier": "non-relative"
5+
}

_Design/.gitkeep

Whitespace-only changes.

bin/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Top-Level Bin Directory
2+
3+
## `dev` Command
4+
5+
The `dev` command is a helper for using docker compose.
6+
7+
For example, you can run a sql script via
8+
9+
```bash
10+
dev sqlcmd -i ./data/funding_submission_lines.sql
11+
```
12+
13+
assuming the file is located at `/db/data/funding_submission_lines.sql`
14+
15+
Note that the `dev` command uses the `db` service, and so only has access to folders under the top-level `db` directory.

0 commit comments

Comments
 (0)