From fb4466919cea97c965e3b57fe25967fada3cf20a Mon Sep 17 00:00:00 2001 From: penny Date: Tue, 8 Jul 2025 20:33:19 -0400 Subject: [PATCH] [meta] add spindle workflows --- .idea/jsLibraryMappings.xml | 8 -------- .tangled/workflows/build_backend.yaml | 26 ++++++++++++++++++++++++++ .tangled/workflows/build_frontend.yaml | 21 +++++++++++++++++++++ .tangled/workflows/build_lexicons.yaml | 26 ++++++++++++++++++++++++++ 4 files changed, 73 insertions(+), 8 deletions(-) delete mode 100644 .idea/jsLibraryMappings.xml create mode 100644 .tangled/workflows/build_backend.yaml create mode 100644 .tangled/workflows/build_frontend.yaml create mode 100644 .tangled/workflows/build_lexicons.yaml diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml deleted file mode 100644 index db7a388..0000000 --- a/.idea/jsLibraryMappings.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.tangled/workflows/build_backend.yaml b/.tangled/workflows/build_backend.yaml new file mode 100644 index 0000000..bf085fe --- /dev/null +++ b/.tangled/workflows/build_backend.yaml @@ -0,0 +1,26 @@ +when: + - event: [ "push", "pull_request" ] + branch: [ "main" ] + - event: [ "manual" ] + +dependencies: + nixpkgs: + - nodejs + +steps: + - name: "Move to backend folder" + command: "cd backend" + + - name: "Install dependencies" + command: "npm install" + environment: + NODE_ENV: "development" + CI: true + + - name: "Run linter" + command: "npm run lint" + + - name: "Build application" + command: "npm run build" + environment: + NODE_ENV: "production" \ No newline at end of file diff --git a/.tangled/workflows/build_frontend.yaml b/.tangled/workflows/build_frontend.yaml new file mode 100644 index 0000000..5f739b9 --- /dev/null +++ b/.tangled/workflows/build_frontend.yaml @@ -0,0 +1,21 @@ +when: + - event: [ "push", "pull_request" ] + branch: [ "main" ] + - event: [ "manual" ] + +dependencies: + nixpkgs: + - nodejs + +steps: + - name: "Move to frontend folder" + command: "cd frontend" + + - name: "Install dependencies" + command: "npm install" + environment: + NODE_ENV: "development" + CI: true + + - name: "Build frontend" + command: "npm run build" \ No newline at end of file diff --git a/.tangled/workflows/build_lexicons.yaml b/.tangled/workflows/build_lexicons.yaml new file mode 100644 index 0000000..67880ce --- /dev/null +++ b/.tangled/workflows/build_lexicons.yaml @@ -0,0 +1,26 @@ +when: + - event: [ "push", "pull_request" ] + branch: [ "main" ] + - event: [ "manual" ] + +dependencies: + nixpkgs: + - nodejs + +steps: + - name: "Move to lexicons folder" + command: "cd lexicons" + + - name: "Install dependencies" + command: "npm install" + environment: + NODE_ENV: "development" + CI: true + + - name: "Generate lexicons" + command: "npm run generate" + + - name: "Build package" + command: "npm run prepublish" + environment: + NODE_ENV: "production" \ No newline at end of file -- 2.43.0 From b1a5afd4f2f2e3c7dad3e587746a47c2c539d77d Mon Sep 17 00:00:00 2001 From: penny Date: Wed, 9 Jul 2025 12:51:14 -0400 Subject: [PATCH] [spindle/test] try to find directory layout --- .tangled/workflows/build_backend.yaml | 3 +++ .tangled/workflows/build_frontend.yaml | 3 +++ .tangled/workflows/build_lexicons.yaml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.tangled/workflows/build_backend.yaml b/.tangled/workflows/build_backend.yaml index 13f9c27..7b0aaff 100644 --- a/.tangled/workflows/build_backend.yaml +++ b/.tangled/workflows/build_backend.yaml @@ -8,6 +8,9 @@ dependencies: - nodejs steps: + - name: "Get directory layout" + command: "ls -alh" + - name: "Move to backend folder" command: "cd backend" diff --git a/.tangled/workflows/build_frontend.yaml b/.tangled/workflows/build_frontend.yaml index d772976..e058e4a 100644 --- a/.tangled/workflows/build_frontend.yaml +++ b/.tangled/workflows/build_frontend.yaml @@ -8,6 +8,9 @@ dependencies: - nodejs steps: + - name: "Get directory layout" + command: "ls -alh" + - name: "Move to frontend folder" command: "cd frontend" diff --git a/.tangled/workflows/build_lexicons.yaml b/.tangled/workflows/build_lexicons.yaml index 4569b01..0c39377 100644 --- a/.tangled/workflows/build_lexicons.yaml +++ b/.tangled/workflows/build_lexicons.yaml @@ -8,6 +8,9 @@ dependencies: - nodejs steps: + - name: "Get directory layout" + command: "ls -alh" + - name: "Move to lexicons folder" command: "cd lexicons" -- 2.43.0 From 525ccad5ac436958d7bcc986e153f825b7ed13eb Mon Sep 17 00:00:00 2001 From: penny Date: Wed, 9 Jul 2025 12:57:01 -0400 Subject: [PATCH] [spindle/test] move to workspace folder --- .tangled/workflows/build_backend.yaml | 7 ++----- .tangled/workflows/build_frontend.yaml | 7 ++----- .tangled/workflows/build_lexicons.yaml | 7 ++----- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.tangled/workflows/build_backend.yaml b/.tangled/workflows/build_backend.yaml index 7b0aaff..fc287c6 100644 --- a/.tangled/workflows/build_backend.yaml +++ b/.tangled/workflows/build_backend.yaml @@ -8,14 +8,11 @@ dependencies: - nodejs steps: - - name: "Get directory layout" - command: "ls -alh" - - name: "Move to backend folder" - command: "cd backend" + command: "cd /tangled/workspace/backend" - name: "Install dependencies" - command: "npm install" + command: "npm install backend/package.json" environment: NODE_ENV: "development" CI: true diff --git a/.tangled/workflows/build_frontend.yaml b/.tangled/workflows/build_frontend.yaml index e058e4a..6d1e182 100644 --- a/.tangled/workflows/build_frontend.yaml +++ b/.tangled/workflows/build_frontend.yaml @@ -8,14 +8,11 @@ dependencies: - nodejs steps: - - name: "Get directory layout" - command: "ls -alh" - - name: "Move to frontend folder" - command: "cd frontend" + command: "cd /tangled/workspace/frontend" - name: "Install dependencies" - command: "npm install" + command: "npm install frontend/package.json" environment: NODE_ENV: "development" CI: true diff --git a/.tangled/workflows/build_lexicons.yaml b/.tangled/workflows/build_lexicons.yaml index 0c39377..576f534 100644 --- a/.tangled/workflows/build_lexicons.yaml +++ b/.tangled/workflows/build_lexicons.yaml @@ -8,14 +8,11 @@ dependencies: - nodejs steps: - - name: "Get directory layout" - command: "ls -alh" - - name: "Move to lexicons folder" - command: "cd lexicons" + command: "cd /tangled/workspace/lexicons" - name: "Install dependencies" - command: "npm install" + command: "npm install lexicons/package.json" environment: NODE_ENV: "development" CI: true -- 2.43.0