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