From 218a3cee9ca5c2b7c1de1605d8654c3f257b760e Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Fri, 24 Feb 2023 19:40:11 +0100 Subject: [PATCH 01/17] Create nextjs.yml --- .github/workflows/nextjs.yml | 94 ++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 .github/workflows/nextjs.yml diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml new file mode 100644 index 0000000..72836ad --- /dev/null +++ b/.github/workflows/nextjs.yml @@ -0,0 +1,94 @@ +# Sample workflow for building and deploying a Next.js site to GitHub Pages +# +# To get started with Next.js see: https://nextjs.org/docs/getting-started +# +name: Deploy Next.js site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT + echo "runner=yarn" >> $GITHUB_OUTPUT + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT + echo "runner=npx --no-install" >> $GITHUB_OUTPUT + exit 0 + else + echo "Unable to determine packager manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + uses: actions/configure-pages@v3 + with: + # Automatically inject basePath in your Next.js configuration file and disable + # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: next + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + .next/cache + # Generate a new cache whenever packages or source files change. + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + # If source files changed but packages didn't, rebuild from a prior cache. + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Build with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next build + - name: Static HTML export with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next export + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./out + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 From 9bb9da50c4f4358d328e3055ccc9ce6c643553d8 Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Sat, 25 Feb 2023 08:15:25 +0100 Subject: [PATCH 02/17] Update nextjs.yml --- .github/workflows/nextjs.yml | 96 +++--------------------------------- 1 file changed, 7 insertions(+), 89 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 72836ad..cf9a5c2 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -1,94 +1,12 @@ -# Sample workflow for building and deploying a Next.js site to GitHub Pages -# -# To get started with Next.js see: https://nextjs.org/docs/getting-started -# -name: Deploy Next.js site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true +on: [push] jobs: - # Build job build: + name: Greeting runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Detect package manager - id: detect-package-manager - run: | - if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "manager=yarn" >> $GITHUB_OUTPUT - echo "command=install" >> $GITHUB_OUTPUT - echo "runner=yarn" >> $GITHUB_OUTPUT - exit 0 - elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "manager=npm" >> $GITHUB_OUTPUT - echo "command=ci" >> $GITHUB_OUTPUT - echo "runner=npx --no-install" >> $GITHUB_OUTPUT - exit 0 - else - echo "Unable to determine packager manager" - exit 1 - fi - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: ${{ steps.detect-package-manager.outputs.manager }} - - name: Setup Pages - uses: actions/configure-pages@v3 - with: - # Automatically inject basePath in your Next.js configuration file and disable - # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: next - - name: Restore cache - uses: actions/cache@v3 - with: - path: | - .next/cache - # Generate a new cache whenever packages or source files change. - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} - # If source files changed but packages didn't, rebuild from a prior cache. - restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - - name: Install dependencies - run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - - name: Build with Next.js - run: ${{ steps.detect-package-manager.outputs.runner }} next build - - name: Static HTML export with Next.js - run: ${{ steps.detect-package-manager.outputs.runner }} next export - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: ./out - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 + - uses: actions/checkout@v2 + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 09d8dcfe75dde6787c19d16a303c9a8eef0d4b2f Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Mon, 27 Feb 2023 06:42:42 +0100 Subject: [PATCH 03/17] Update nextjs.yml --- .github/workflows/nextjs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index cf9a5c2..3f4c8fc 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -1,8 +1,8 @@ -on: [push] +on: workflow_dispatch jobs: build: - name: Greeting + name: Test workflow_dispatch runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 77b48a4b275a48b75bfb913f2ec99f7b7cfa13d3 Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Mon, 27 Feb 2023 06:49:20 +0100 Subject: [PATCH 04/17] change checkout from v2 to v3 --- .github/workflows/nextjs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 3f4c8fc..f1ce3ee 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -5,7 +5,7 @@ jobs: name: Test workflow_dispatch runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Run a multi-line script run: | echo Add other actions to build, From fc12f121ef10c79c296adac0a5427651ae7dea53 Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Mon, 27 Feb 2023 07:08:34 +0100 Subject: [PATCH 05/17] =?UTF-8?q?remets=20=C3=A0=20push?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nextjs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index f1ce3ee..c296283 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -1,4 +1,4 @@ -on: workflow_dispatch +on: push jobs: build: From 31c6b94461b2402dbe5b526fd31d05fb7f44d424 Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Mon, 27 Feb 2023 07:26:18 +0100 Subject: [PATCH 06/17] try launch file --- .github/workflows/nextjs.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index c296283..d2aacd3 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -5,8 +5,10 @@ jobs: name: Test workflow_dispatch runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + - uses: actions/checkout@v3 + with: + node-version: '16' + - name: Node Install + run: npm ci + - name: run compil + run: node scripts/compil.js From b6b444c0c1004936b485d7b158c34b05f0f94c2b Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Fri, 24 Feb 2023 19:40:11 +0100 Subject: [PATCH 07/17] Create nextjs.yml --- .github/workflows/nextjs.yml | 94 ++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 .github/workflows/nextjs.yml diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml new file mode 100644 index 0000000..72836ad --- /dev/null +++ b/.github/workflows/nextjs.yml @@ -0,0 +1,94 @@ +# Sample workflow for building and deploying a Next.js site to GitHub Pages +# +# To get started with Next.js see: https://nextjs.org/docs/getting-started +# +name: Deploy Next.js site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT + echo "runner=yarn" >> $GITHUB_OUTPUT + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT + echo "runner=npx --no-install" >> $GITHUB_OUTPUT + exit 0 + else + echo "Unable to determine packager manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: "16" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + uses: actions/configure-pages@v3 + with: + # Automatically inject basePath in your Next.js configuration file and disable + # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: next + - name: Restore cache + uses: actions/cache@v3 + with: + path: | + .next/cache + # Generate a new cache whenever packages or source files change. + key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + # If source files changed but packages didn't, rebuild from a prior cache. + restore-keys: | + ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Build with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next build + - name: Static HTML export with Next.js + run: ${{ steps.detect-package-manager.outputs.runner }} next export + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./out + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 From 4a4089cd454d793257c077bab4668d661c6feeea Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Sat, 25 Feb 2023 08:15:25 +0100 Subject: [PATCH 08/17] Update nextjs.yml --- .github/workflows/nextjs.yml | 96 +++--------------------------------- 1 file changed, 7 insertions(+), 89 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 72836ad..cf9a5c2 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -1,94 +1,12 @@ -# Sample workflow for building and deploying a Next.js site to GitHub Pages -# -# To get started with Next.js see: https://nextjs.org/docs/getting-started -# -name: Deploy Next.js site to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ["main"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow one concurrent deployment -concurrency: - group: "pages" - cancel-in-progress: true +on: [push] jobs: - # Build job build: + name: Greeting runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Detect package manager - id: detect-package-manager - run: | - if [ -f "${{ github.workspace }}/yarn.lock" ]; then - echo "manager=yarn" >> $GITHUB_OUTPUT - echo "command=install" >> $GITHUB_OUTPUT - echo "runner=yarn" >> $GITHUB_OUTPUT - exit 0 - elif [ -f "${{ github.workspace }}/package.json" ]; then - echo "manager=npm" >> $GITHUB_OUTPUT - echo "command=ci" >> $GITHUB_OUTPUT - echo "runner=npx --no-install" >> $GITHUB_OUTPUT - exit 0 - else - echo "Unable to determine packager manager" - exit 1 - fi - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: "16" - cache: ${{ steps.detect-package-manager.outputs.manager }} - - name: Setup Pages - uses: actions/configure-pages@v3 - with: - # Automatically inject basePath in your Next.js configuration file and disable - # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). - # - # You may remove this line if you want to manage the configuration yourself. - static_site_generator: next - - name: Restore cache - uses: actions/cache@v3 - with: - path: | - .next/cache - # Generate a new cache whenever packages or source files change. - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} - # If source files changed but packages didn't, rebuild from a prior cache. - restore-keys: | - ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}- - - name: Install dependencies - run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - - name: Build with Next.js - run: ${{ steps.detect-package-manager.outputs.runner }} next build - - name: Static HTML export with Next.js - run: ${{ steps.detect-package-manager.outputs.runner }} next export - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: ./out - - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 + - uses: actions/checkout@v2 + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From d6310f635e37b54a5ecd1b89bbb11403e1110a4d Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Mon, 27 Feb 2023 06:42:42 +0100 Subject: [PATCH 09/17] Update nextjs.yml --- .github/workflows/nextjs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index cf9a5c2..3f4c8fc 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -1,8 +1,8 @@ -on: [push] +on: workflow_dispatch jobs: build: - name: Greeting + name: Test workflow_dispatch runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 07e81a2c6d2b8bf7be577e8eefc6602548e7b3f7 Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Mon, 27 Feb 2023 06:49:20 +0100 Subject: [PATCH 10/17] change checkout from v2 to v3 --- .github/workflows/nextjs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 3f4c8fc..f1ce3ee 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -5,7 +5,7 @@ jobs: name: Test workflow_dispatch runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Run a multi-line script run: | echo Add other actions to build, From 5154a323113f43cd8205265cc4951861d6e8c2bd Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Mon, 27 Feb 2023 07:08:34 +0100 Subject: [PATCH 11/17] =?UTF-8?q?remets=20=C3=A0=20push?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/nextjs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index f1ce3ee..c296283 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -1,4 +1,4 @@ -on: workflow_dispatch +on: push jobs: build: From 8a3923fe59658595bc04584a27dd21e86c63684b Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Mon, 27 Feb 2023 07:26:18 +0100 Subject: [PATCH 12/17] try launch file --- .github/workflows/nextjs.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index c296283..d2aacd3 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -5,8 +5,10 @@ jobs: name: Test workflow_dispatch runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + - uses: actions/checkout@v3 + with: + node-version: '16' + - name: Node Install + run: npm ci + - name: run compil + run: node scripts/compil.js From 6940918fed727ba7df9796297d755257cd8c98e3 Mon Sep 17 00:00:00 2001 From: baudelotphilippe Date: Mon, 27 Feb 2023 07:35:51 +0100 Subject: [PATCH 13/17] npm install ... --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9fce7cd..1e9e173 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "agenda", "version": "0.1.0", "dependencies": { - "@next/font": "^13.1.6", + "@next/font": "^13.2.1", "@types/node": "18.14.0", "@types/react": "18.0.28", "@types/react-dom": "18.0.11", @@ -99,9 +99,9 @@ } }, "node_modules/@next/font": { - "version": "13.1.6", - "resolved": "https://registry.npmjs.org/@next/font/-/font-13.1.6.tgz", - "integrity": "sha512-AITjmeb1RgX1HKMCiA39ztx2mxeAyxl4ljv2UoSBUGAbFFMg8MO7YAvjHCgFhD39hL7YTbFjol04e/BPBH5RzQ==" + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/@next/font/-/font-13.2.1.tgz", + "integrity": "sha512-4sergLt7xp9+mZuKME/xM4tLlHGTcmL7naCq0qCTcAlof6NnttshYgiLOdhSiy0NcI+/yM3BjvdEk++O96UzTg==" }, "node_modules/@next/swc-android-arm-eabi": { "version": "13.1.6", @@ -3577,9 +3577,9 @@ } }, "@next/font": { - "version": "13.1.6", - "resolved": "https://registry.npmjs.org/@next/font/-/font-13.1.6.tgz", - "integrity": "sha512-AITjmeb1RgX1HKMCiA39ztx2mxeAyxl4ljv2UoSBUGAbFFMg8MO7YAvjHCgFhD39hL7YTbFjol04e/BPBH5RzQ==" + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/@next/font/-/font-13.2.1.tgz", + "integrity": "sha512-4sergLt7xp9+mZuKME/xM4tLlHGTcmL7naCq0qCTcAlof6NnttshYgiLOdhSiy0NcI+/yM3BjvdEk++O96UzTg==" }, "@next/swc-android-arm-eabi": { "version": "13.1.6", From 89ba0838e5907040005615a5114f108ea30760c3 Mon Sep 17 00:00:00 2001 From: baudelotphilippe Date: Mon, 27 Feb 2023 07:39:59 +0100 Subject: [PATCH 14/17] change directory --- scripts/compil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compil.js b/scripts/compil.js index 140255d..f26aa88 100644 --- a/scripts/compil.js +++ b/scripts/compil.js @@ -1,6 +1,6 @@ const fs= require('fs'); const cheerio = require('cheerio'); -const eventsFolder = '../events/files/'; +const eventsFolder = './events/files/'; const jsonsDir = fs.readdirSync(eventsFolder); @@ -25,5 +25,5 @@ jsonsDir.forEach( file => { }) // console.log(newContent) -fs.writeFileSync('../events/events.json', JSON.stringify(newContent)) +fs.writeFileSync('./events/events.json', JSON.stringify(newContent)) From 810aa0e027f296332d0314ab4c8946b7d00c86f8 Mon Sep 17 00:00:00 2001 From: Baudelot Philippe Date: Mon, 27 Feb 2023 07:42:31 +0100 Subject: [PATCH 15/17] test modif 1 event --- events/files/pwn_1.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/files/pwn_1.json b/events/files/pwn_1.json index e4a2d1b..6105236 100644 --- a/events/files/pwn_1.json +++ b/events/files/pwn_1.json @@ -1,7 +1,7 @@