From 6df008c8f9916709780a4b807f50999046d8a2ff Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:00:29 +0300 Subject: [PATCH 01/22] 0.1.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 968a521a..9e23d9be 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "javascriptbuild", "version": "0.1.4", "private": false, - "description": "🧑🏻‍💻 Builds JavaScript files from TypeScript with esbuild.", + "description": "🧑🏻‍💻 Builds all JavaScript files from TypeScript within a given folder using esbuild.", "keywords": [ "javascript", "typescript", From d0261031a7f66504ec836a1d2b9058dcc9db1b7e Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:26:24 +0300 Subject: [PATCH 02/22] squash! --- .github/workflows/NPM.yml | 4 +- .github/workflows/Node.yml | 10 ++-- .npmignore => npm/.npmignore | 1 - CHANGELOG.md => npm/CHANGELOG.md | 0 LICENSE => npm/LICENSE | 0 npm/README.md | 58 +++++++++++++++++++ {Source => npm/Source}/Bin.ts | 0 {Source => npm/Source}/Command/Build.ts | 0 .../Source}/Configuration/TypeScript.json | 0 .../Source}/Configuration/esbuild.ts | 0 {Source => npm/Source}/Index.ts | 0 {Source => npm/Source}/Library/File.ts | 0 {Source => npm/Source}/Library/JSON.ts | 0 {Target => npm/Target}/Bin.d.ts | 0 {Target => npm/Target}/Bin.js | 0 {Target => npm/Target}/Command/Build.d.ts | 0 {Target => npm/Target}/Command/Build.js | 0 .../Target}/Configuration/TypeScript.json | 0 .../Target}/Configuration/esbuild.d.ts | 0 .../Target}/Configuration/esbuild.js | 0 {Target => npm/Target}/Index.d.ts | 0 {Target => npm/Target}/Index.js | 0 {Target => npm/Target}/Library/File.d.ts | 0 {Target => npm/Target}/Library/File.js | 0 {Target => npm/Target}/Library/JSON.d.ts | 0 {Target => npm/Target}/Library/JSON.js | 0 package.json => npm/package.json | 3 +- tsconfig.json => npm/tsconfig.json | 0 28 files changed, 67 insertions(+), 9 deletions(-) rename .npmignore => npm/.npmignore (76%) rename CHANGELOG.md => npm/CHANGELOG.md (100%) rename LICENSE => npm/LICENSE (100%) create mode 100644 npm/README.md rename {Source => npm/Source}/Bin.ts (100%) rename {Source => npm/Source}/Command/Build.ts (100%) rename {Source => npm/Source}/Configuration/TypeScript.json (100%) rename {Source => npm/Source}/Configuration/esbuild.ts (100%) rename {Source => npm/Source}/Index.ts (100%) rename {Source => npm/Source}/Library/File.ts (100%) rename {Source => npm/Source}/Library/JSON.ts (100%) rename {Target => npm/Target}/Bin.d.ts (100%) rename {Target => npm/Target}/Bin.js (100%) rename {Target => npm/Target}/Command/Build.d.ts (100%) rename {Target => npm/Target}/Command/Build.js (100%) rename {Target => npm/Target}/Configuration/TypeScript.json (100%) rename {Target => npm/Target}/Configuration/esbuild.d.ts (100%) rename {Target => npm/Target}/Configuration/esbuild.js (100%) rename {Target => npm/Target}/Index.d.ts (100%) rename {Target => npm/Target}/Index.js (100%) rename {Target => npm/Target}/Library/File.d.ts (100%) rename {Target => npm/Target}/Library/File.js (100%) rename {Target => npm/Target}/Library/JSON.d.ts (100%) rename {Target => npm/Target}/Library/JSON.js (100%) rename package.json => npm/package.json (97%) rename tsconfig.json => npm/tsconfig.json (100%) diff --git a/.github/workflows/NPM.yml b/.github/workflows/NPM.yml index f8d70f3c..752d0e98 100644 --- a/.github/workflows/NPM.yml +++ b/.github/workflows/NPM.yml @@ -31,9 +31,9 @@ jobs: - run: npm install -g npm - - name: Publish . + - name: Publish ./NPM continue-on-error: true - working-directory: . + working-directory: ./NPM run: | npm install --legacy-peer-deps npm publish --legacy-peer-deps --provenance diff --git a/.github/workflows/Node.yml b/.github/workflows/Node.yml index 9eff0814..eb6996a2 100644 --- a/.github/workflows/Node.yml +++ b/.github/workflows/Node.yml @@ -79,15 +79,15 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: "pnpm" - cache-dependency-path: ./pnpm-lock.yaml + cache-dependency-path: ./NPM/pnpm-lock.yaml - run: pnpm install - working-directory: . + working-directory: ./NPM - run: pnpm run prepublishOnly - working-directory: . + working-directory: ./NPM - uses: actions/upload-artifact@v3.1.2 with: - name: .-Node-${{ matrix.node-version }}-Target - path: ./Target + name: .-NPM-Node-${{ matrix.node-version }}-Target + path: ./NPM/Target diff --git a/.npmignore b/npm/.npmignore similarity index 76% rename from .npmignore rename to npm/.npmignore index 70da021d..797b72a7 100644 --- a/.npmignore +++ b/npm/.npmignore @@ -1,4 +1,3 @@ -.github/ .turbo/ CHANGELOG.md Source/ diff --git a/CHANGELOG.md b/npm/CHANGELOG.md similarity index 100% rename from CHANGELOG.md rename to npm/CHANGELOG.md diff --git a/LICENSE b/npm/LICENSE similarity index 100% rename from LICENSE rename to npm/LICENSE diff --git a/npm/README.md b/npm/README.md new file mode 100644 index 00000000..7c31ae51 --- /dev/null +++ b/npm/README.md @@ -0,0 +1,58 @@ +# [JavaScript Build] 🧑🏻‍💻 + +This utility builds all JavaScript files from TypeScript within a given folder +using esbuild. + +## Installation + +Add configuration and setup scripts: + +```sh +npm install -D -E javascriptbuild +``` + +## Usage + +`package.json` + +```json +{ + "name": "my-awesome-package", + "scripts": { + "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts'" + }, + "dependencies": { + "javascriptbuild": "0.1.3" + } +} +``` + +#### or with a custom esbuild config file: + +```json +{ + "scripts": { + "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts' -es esbuild.ts" + } +} +``` + +#### See an example of a config file in [esbuild.ts](Source/Configuration/esbuild.ts) + +`tsconfig.json` + +```json +{ + "compilerOptions": { + "outDir": "Target" + }, + "extends": "./Source/Configuration/TypeScript", + "include": ["Source"] +} +``` + +The script will now automatically compile your build files with [esbuild] and +add TypeScript types. + +[JavaScript Build]: https://npmjs.org/javascriptbuild +[esbuild]: https://npmjs.org/esbuild diff --git a/Source/Bin.ts b/npm/Source/Bin.ts similarity index 100% rename from Source/Bin.ts rename to npm/Source/Bin.ts diff --git a/Source/Command/Build.ts b/npm/Source/Command/Build.ts similarity index 100% rename from Source/Command/Build.ts rename to npm/Source/Command/Build.ts diff --git a/Source/Configuration/TypeScript.json b/npm/Source/Configuration/TypeScript.json similarity index 100% rename from Source/Configuration/TypeScript.json rename to npm/Source/Configuration/TypeScript.json diff --git a/Source/Configuration/esbuild.ts b/npm/Source/Configuration/esbuild.ts similarity index 100% rename from Source/Configuration/esbuild.ts rename to npm/Source/Configuration/esbuild.ts diff --git a/Source/Index.ts b/npm/Source/Index.ts similarity index 100% rename from Source/Index.ts rename to npm/Source/Index.ts diff --git a/Source/Library/File.ts b/npm/Source/Library/File.ts similarity index 100% rename from Source/Library/File.ts rename to npm/Source/Library/File.ts diff --git a/Source/Library/JSON.ts b/npm/Source/Library/JSON.ts similarity index 100% rename from Source/Library/JSON.ts rename to npm/Source/Library/JSON.ts diff --git a/Target/Bin.d.ts b/npm/Target/Bin.d.ts similarity index 100% rename from Target/Bin.d.ts rename to npm/Target/Bin.d.ts diff --git a/Target/Bin.js b/npm/Target/Bin.js similarity index 100% rename from Target/Bin.js rename to npm/Target/Bin.js diff --git a/Target/Command/Build.d.ts b/npm/Target/Command/Build.d.ts similarity index 100% rename from Target/Command/Build.d.ts rename to npm/Target/Command/Build.d.ts diff --git a/Target/Command/Build.js b/npm/Target/Command/Build.js similarity index 100% rename from Target/Command/Build.js rename to npm/Target/Command/Build.js diff --git a/Target/Configuration/TypeScript.json b/npm/Target/Configuration/TypeScript.json similarity index 100% rename from Target/Configuration/TypeScript.json rename to npm/Target/Configuration/TypeScript.json diff --git a/Target/Configuration/esbuild.d.ts b/npm/Target/Configuration/esbuild.d.ts similarity index 100% rename from Target/Configuration/esbuild.d.ts rename to npm/Target/Configuration/esbuild.d.ts diff --git a/Target/Configuration/esbuild.js b/npm/Target/Configuration/esbuild.js similarity index 100% rename from Target/Configuration/esbuild.js rename to npm/Target/Configuration/esbuild.js diff --git a/Target/Index.d.ts b/npm/Target/Index.d.ts similarity index 100% rename from Target/Index.d.ts rename to npm/Target/Index.d.ts diff --git a/Target/Index.js b/npm/Target/Index.js similarity index 100% rename from Target/Index.js rename to npm/Target/Index.js diff --git a/Target/Library/File.d.ts b/npm/Target/Library/File.d.ts similarity index 100% rename from Target/Library/File.d.ts rename to npm/Target/Library/File.d.ts diff --git a/Target/Library/File.js b/npm/Target/Library/File.js similarity index 100% rename from Target/Library/File.js rename to npm/Target/Library/File.js diff --git a/Target/Library/JSON.d.ts b/npm/Target/Library/JSON.d.ts similarity index 100% rename from Target/Library/JSON.d.ts rename to npm/Target/Library/JSON.d.ts diff --git a/Target/Library/JSON.js b/npm/Target/Library/JSON.js similarity index 100% rename from Target/Library/JSON.js rename to npm/Target/Library/JSON.js diff --git a/package.json b/npm/package.json similarity index 97% rename from package.json rename to npm/package.json index 9e23d9be..4760dd06 100644 --- a/package.json +++ b/npm/package.json @@ -14,7 +14,8 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/NikolaRHristov/JavaScriptBuild.git" + "url": "git+https://github.com/NikolaRHristov/JavaScriptBuild.git", + "directory": "NPM" }, "license": "MIT", "type": "module", diff --git a/tsconfig.json b/npm/tsconfig.json similarity index 100% rename from tsconfig.json rename to npm/tsconfig.json From 13b1bbfcb5d1f9194b7256f5dee9204969fccb41 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:26:47 +0300 Subject: [PATCH 03/22] squash! --- .github/dependabot.yml | 2 +- README.md | 2 +- npm/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0bd58331..54a5f2f3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,7 +7,7 @@ updates: interval: "daily" - package-ecosystem: "npm" - directory: "/" + directory: "/NPM" schedule: interval: "daily" versioning-strategy: increase diff --git a/README.md b/README.md index 7c31ae51..f48c667e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ npm install -D -E javascriptbuild "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts'" }, "dependencies": { - "javascriptbuild": "0.1.3" + "javascriptbuild": "0.1.4" } } ``` diff --git a/npm/README.md b/npm/README.md index 7c31ae51..f48c667e 100644 --- a/npm/README.md +++ b/npm/README.md @@ -22,7 +22,7 @@ npm install -D -E javascriptbuild "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts'" }, "dependencies": { - "javascriptbuild": "0.1.3" + "javascriptbuild": "0.1.4" } } ``` From 4e8b17d269b86b5c9eb290ba756012992761d23d Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:32:25 +0300 Subject: [PATCH 04/22] squash! --- {npm => npm2}/.npmignore | 0 {npm => npm2}/CHANGELOG.md | 0 {npm => npm2}/LICENSE | 0 {npm => npm2}/README.md | 0 {npm => npm2}/Source/Bin.ts | 0 {npm => npm2}/Source/Command/Build.ts | 0 {npm => npm2}/Source/Configuration/TypeScript.json | 0 {npm => npm2}/Source/Configuration/esbuild.ts | 0 {npm => npm2}/Source/Index.ts | 0 {npm => npm2}/Source/Library/File.ts | 0 {npm => npm2}/Source/Library/JSON.ts | 0 {npm => npm2}/Target/Bin.d.ts | 0 {npm => npm2}/Target/Bin.js | 0 {npm => npm2}/Target/Command/Build.d.ts | 0 {npm => npm2}/Target/Command/Build.js | 0 {npm => npm2}/Target/Configuration/TypeScript.json | 0 {npm => npm2}/Target/Configuration/esbuild.d.ts | 0 {npm => npm2}/Target/Configuration/esbuild.js | 0 {npm => npm2}/Target/Index.d.ts | 0 {npm => npm2}/Target/Index.js | 0 {npm => npm2}/Target/Library/File.d.ts | 0 {npm => npm2}/Target/Library/File.js | 0 {npm => npm2}/Target/Library/JSON.d.ts | 0 {npm => npm2}/Target/Library/JSON.js | 0 {npm => npm2}/package.json | 0 {npm => npm2}/tsconfig.json | 0 26 files changed, 0 insertions(+), 0 deletions(-) rename {npm => npm2}/.npmignore (100%) rename {npm => npm2}/CHANGELOG.md (100%) rename {npm => npm2}/LICENSE (100%) rename {npm => npm2}/README.md (100%) rename {npm => npm2}/Source/Bin.ts (100%) rename {npm => npm2}/Source/Command/Build.ts (100%) rename {npm => npm2}/Source/Configuration/TypeScript.json (100%) rename {npm => npm2}/Source/Configuration/esbuild.ts (100%) rename {npm => npm2}/Source/Index.ts (100%) rename {npm => npm2}/Source/Library/File.ts (100%) rename {npm => npm2}/Source/Library/JSON.ts (100%) rename {npm => npm2}/Target/Bin.d.ts (100%) rename {npm => npm2}/Target/Bin.js (100%) rename {npm => npm2}/Target/Command/Build.d.ts (100%) rename {npm => npm2}/Target/Command/Build.js (100%) rename {npm => npm2}/Target/Configuration/TypeScript.json (100%) rename {npm => npm2}/Target/Configuration/esbuild.d.ts (100%) rename {npm => npm2}/Target/Configuration/esbuild.js (100%) rename {npm => npm2}/Target/Index.d.ts (100%) rename {npm => npm2}/Target/Index.js (100%) rename {npm => npm2}/Target/Library/File.d.ts (100%) rename {npm => npm2}/Target/Library/File.js (100%) rename {npm => npm2}/Target/Library/JSON.d.ts (100%) rename {npm => npm2}/Target/Library/JSON.js (100%) rename {npm => npm2}/package.json (100%) rename {npm => npm2}/tsconfig.json (100%) diff --git a/npm/.npmignore b/npm2/.npmignore similarity index 100% rename from npm/.npmignore rename to npm2/.npmignore diff --git a/npm/CHANGELOG.md b/npm2/CHANGELOG.md similarity index 100% rename from npm/CHANGELOG.md rename to npm2/CHANGELOG.md diff --git a/npm/LICENSE b/npm2/LICENSE similarity index 100% rename from npm/LICENSE rename to npm2/LICENSE diff --git a/npm/README.md b/npm2/README.md similarity index 100% rename from npm/README.md rename to npm2/README.md diff --git a/npm/Source/Bin.ts b/npm2/Source/Bin.ts similarity index 100% rename from npm/Source/Bin.ts rename to npm2/Source/Bin.ts diff --git a/npm/Source/Command/Build.ts b/npm2/Source/Command/Build.ts similarity index 100% rename from npm/Source/Command/Build.ts rename to npm2/Source/Command/Build.ts diff --git a/npm/Source/Configuration/TypeScript.json b/npm2/Source/Configuration/TypeScript.json similarity index 100% rename from npm/Source/Configuration/TypeScript.json rename to npm2/Source/Configuration/TypeScript.json diff --git a/npm/Source/Configuration/esbuild.ts b/npm2/Source/Configuration/esbuild.ts similarity index 100% rename from npm/Source/Configuration/esbuild.ts rename to npm2/Source/Configuration/esbuild.ts diff --git a/npm/Source/Index.ts b/npm2/Source/Index.ts similarity index 100% rename from npm/Source/Index.ts rename to npm2/Source/Index.ts diff --git a/npm/Source/Library/File.ts b/npm2/Source/Library/File.ts similarity index 100% rename from npm/Source/Library/File.ts rename to npm2/Source/Library/File.ts diff --git a/npm/Source/Library/JSON.ts b/npm2/Source/Library/JSON.ts similarity index 100% rename from npm/Source/Library/JSON.ts rename to npm2/Source/Library/JSON.ts diff --git a/npm/Target/Bin.d.ts b/npm2/Target/Bin.d.ts similarity index 100% rename from npm/Target/Bin.d.ts rename to npm2/Target/Bin.d.ts diff --git a/npm/Target/Bin.js b/npm2/Target/Bin.js similarity index 100% rename from npm/Target/Bin.js rename to npm2/Target/Bin.js diff --git a/npm/Target/Command/Build.d.ts b/npm2/Target/Command/Build.d.ts similarity index 100% rename from npm/Target/Command/Build.d.ts rename to npm2/Target/Command/Build.d.ts diff --git a/npm/Target/Command/Build.js b/npm2/Target/Command/Build.js similarity index 100% rename from npm/Target/Command/Build.js rename to npm2/Target/Command/Build.js diff --git a/npm/Target/Configuration/TypeScript.json b/npm2/Target/Configuration/TypeScript.json similarity index 100% rename from npm/Target/Configuration/TypeScript.json rename to npm2/Target/Configuration/TypeScript.json diff --git a/npm/Target/Configuration/esbuild.d.ts b/npm2/Target/Configuration/esbuild.d.ts similarity index 100% rename from npm/Target/Configuration/esbuild.d.ts rename to npm2/Target/Configuration/esbuild.d.ts diff --git a/npm/Target/Configuration/esbuild.js b/npm2/Target/Configuration/esbuild.js similarity index 100% rename from npm/Target/Configuration/esbuild.js rename to npm2/Target/Configuration/esbuild.js diff --git a/npm/Target/Index.d.ts b/npm2/Target/Index.d.ts similarity index 100% rename from npm/Target/Index.d.ts rename to npm2/Target/Index.d.ts diff --git a/npm/Target/Index.js b/npm2/Target/Index.js similarity index 100% rename from npm/Target/Index.js rename to npm2/Target/Index.js diff --git a/npm/Target/Library/File.d.ts b/npm2/Target/Library/File.d.ts similarity index 100% rename from npm/Target/Library/File.d.ts rename to npm2/Target/Library/File.d.ts diff --git a/npm/Target/Library/File.js b/npm2/Target/Library/File.js similarity index 100% rename from npm/Target/Library/File.js rename to npm2/Target/Library/File.js diff --git a/npm/Target/Library/JSON.d.ts b/npm2/Target/Library/JSON.d.ts similarity index 100% rename from npm/Target/Library/JSON.d.ts rename to npm2/Target/Library/JSON.d.ts diff --git a/npm/Target/Library/JSON.js b/npm2/Target/Library/JSON.js similarity index 100% rename from npm/Target/Library/JSON.js rename to npm2/Target/Library/JSON.js diff --git a/npm/package.json b/npm2/package.json similarity index 100% rename from npm/package.json rename to npm2/package.json diff --git a/npm/tsconfig.json b/npm2/tsconfig.json similarity index 100% rename from npm/tsconfig.json rename to npm2/tsconfig.json From c40793669fa15daf79a712a05e1a28271b397793 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:32:31 +0300 Subject: [PATCH 05/22] squash! --- {npm2 => NPM}/.npmignore | 0 {npm2 => NPM}/CHANGELOG.md | 0 {npm2 => NPM}/LICENSE | 0 {npm2 => NPM}/README.md | 0 {npm2 => NPM}/Source/Bin.ts | 0 {npm2 => NPM}/Source/Command/Build.ts | 0 {npm2 => NPM}/Source/Configuration/TypeScript.json | 0 {npm2 => NPM}/Source/Configuration/esbuild.ts | 0 {npm2 => NPM}/Source/Index.ts | 0 {npm2 => NPM}/Source/Library/File.ts | 0 {npm2 => NPM}/Source/Library/JSON.ts | 0 {npm2 => NPM}/Target/Bin.d.ts | 0 {npm2 => NPM}/Target/Bin.js | 0 {npm2 => NPM}/Target/Command/Build.d.ts | 0 {npm2 => NPM}/Target/Command/Build.js | 0 {npm2 => NPM}/Target/Configuration/TypeScript.json | 0 {npm2 => NPM}/Target/Configuration/esbuild.d.ts | 0 {npm2 => NPM}/Target/Configuration/esbuild.js | 0 {npm2 => NPM}/Target/Index.d.ts | 0 {npm2 => NPM}/Target/Index.js | 0 {npm2 => NPM}/Target/Library/File.d.ts | 0 {npm2 => NPM}/Target/Library/File.js | 0 {npm2 => NPM}/Target/Library/JSON.d.ts | 0 {npm2 => NPM}/Target/Library/JSON.js | 0 {npm2 => NPM}/package.json | 0 {npm2 => NPM}/tsconfig.json | 0 26 files changed, 0 insertions(+), 0 deletions(-) rename {npm2 => NPM}/.npmignore (100%) rename {npm2 => NPM}/CHANGELOG.md (100%) rename {npm2 => NPM}/LICENSE (100%) rename {npm2 => NPM}/README.md (100%) rename {npm2 => NPM}/Source/Bin.ts (100%) rename {npm2 => NPM}/Source/Command/Build.ts (100%) rename {npm2 => NPM}/Source/Configuration/TypeScript.json (100%) rename {npm2 => NPM}/Source/Configuration/esbuild.ts (100%) rename {npm2 => NPM}/Source/Index.ts (100%) rename {npm2 => NPM}/Source/Library/File.ts (100%) rename {npm2 => NPM}/Source/Library/JSON.ts (100%) rename {npm2 => NPM}/Target/Bin.d.ts (100%) rename {npm2 => NPM}/Target/Bin.js (100%) rename {npm2 => NPM}/Target/Command/Build.d.ts (100%) rename {npm2 => NPM}/Target/Command/Build.js (100%) rename {npm2 => NPM}/Target/Configuration/TypeScript.json (100%) rename {npm2 => NPM}/Target/Configuration/esbuild.d.ts (100%) rename {npm2 => NPM}/Target/Configuration/esbuild.js (100%) rename {npm2 => NPM}/Target/Index.d.ts (100%) rename {npm2 => NPM}/Target/Index.js (100%) rename {npm2 => NPM}/Target/Library/File.d.ts (100%) rename {npm2 => NPM}/Target/Library/File.js (100%) rename {npm2 => NPM}/Target/Library/JSON.d.ts (100%) rename {npm2 => NPM}/Target/Library/JSON.js (100%) rename {npm2 => NPM}/package.json (100%) rename {npm2 => NPM}/tsconfig.json (100%) diff --git a/npm2/.npmignore b/NPM/.npmignore similarity index 100% rename from npm2/.npmignore rename to NPM/.npmignore diff --git a/npm2/CHANGELOG.md b/NPM/CHANGELOG.md similarity index 100% rename from npm2/CHANGELOG.md rename to NPM/CHANGELOG.md diff --git a/npm2/LICENSE b/NPM/LICENSE similarity index 100% rename from npm2/LICENSE rename to NPM/LICENSE diff --git a/npm2/README.md b/NPM/README.md similarity index 100% rename from npm2/README.md rename to NPM/README.md diff --git a/npm2/Source/Bin.ts b/NPM/Source/Bin.ts similarity index 100% rename from npm2/Source/Bin.ts rename to NPM/Source/Bin.ts diff --git a/npm2/Source/Command/Build.ts b/NPM/Source/Command/Build.ts similarity index 100% rename from npm2/Source/Command/Build.ts rename to NPM/Source/Command/Build.ts diff --git a/npm2/Source/Configuration/TypeScript.json b/NPM/Source/Configuration/TypeScript.json similarity index 100% rename from npm2/Source/Configuration/TypeScript.json rename to NPM/Source/Configuration/TypeScript.json diff --git a/npm2/Source/Configuration/esbuild.ts b/NPM/Source/Configuration/esbuild.ts similarity index 100% rename from npm2/Source/Configuration/esbuild.ts rename to NPM/Source/Configuration/esbuild.ts diff --git a/npm2/Source/Index.ts b/NPM/Source/Index.ts similarity index 100% rename from npm2/Source/Index.ts rename to NPM/Source/Index.ts diff --git a/npm2/Source/Library/File.ts b/NPM/Source/Library/File.ts similarity index 100% rename from npm2/Source/Library/File.ts rename to NPM/Source/Library/File.ts diff --git a/npm2/Source/Library/JSON.ts b/NPM/Source/Library/JSON.ts similarity index 100% rename from npm2/Source/Library/JSON.ts rename to NPM/Source/Library/JSON.ts diff --git a/npm2/Target/Bin.d.ts b/NPM/Target/Bin.d.ts similarity index 100% rename from npm2/Target/Bin.d.ts rename to NPM/Target/Bin.d.ts diff --git a/npm2/Target/Bin.js b/NPM/Target/Bin.js similarity index 100% rename from npm2/Target/Bin.js rename to NPM/Target/Bin.js diff --git a/npm2/Target/Command/Build.d.ts b/NPM/Target/Command/Build.d.ts similarity index 100% rename from npm2/Target/Command/Build.d.ts rename to NPM/Target/Command/Build.d.ts diff --git a/npm2/Target/Command/Build.js b/NPM/Target/Command/Build.js similarity index 100% rename from npm2/Target/Command/Build.js rename to NPM/Target/Command/Build.js diff --git a/npm2/Target/Configuration/TypeScript.json b/NPM/Target/Configuration/TypeScript.json similarity index 100% rename from npm2/Target/Configuration/TypeScript.json rename to NPM/Target/Configuration/TypeScript.json diff --git a/npm2/Target/Configuration/esbuild.d.ts b/NPM/Target/Configuration/esbuild.d.ts similarity index 100% rename from npm2/Target/Configuration/esbuild.d.ts rename to NPM/Target/Configuration/esbuild.d.ts diff --git a/npm2/Target/Configuration/esbuild.js b/NPM/Target/Configuration/esbuild.js similarity index 100% rename from npm2/Target/Configuration/esbuild.js rename to NPM/Target/Configuration/esbuild.js diff --git a/npm2/Target/Index.d.ts b/NPM/Target/Index.d.ts similarity index 100% rename from npm2/Target/Index.d.ts rename to NPM/Target/Index.d.ts diff --git a/npm2/Target/Index.js b/NPM/Target/Index.js similarity index 100% rename from npm2/Target/Index.js rename to NPM/Target/Index.js diff --git a/npm2/Target/Library/File.d.ts b/NPM/Target/Library/File.d.ts similarity index 100% rename from npm2/Target/Library/File.d.ts rename to NPM/Target/Library/File.d.ts diff --git a/npm2/Target/Library/File.js b/NPM/Target/Library/File.js similarity index 100% rename from npm2/Target/Library/File.js rename to NPM/Target/Library/File.js diff --git a/npm2/Target/Library/JSON.d.ts b/NPM/Target/Library/JSON.d.ts similarity index 100% rename from npm2/Target/Library/JSON.d.ts rename to NPM/Target/Library/JSON.d.ts diff --git a/npm2/Target/Library/JSON.js b/NPM/Target/Library/JSON.js similarity index 100% rename from npm2/Target/Library/JSON.js rename to NPM/Target/Library/JSON.js diff --git a/npm2/package.json b/NPM/package.json similarity index 100% rename from npm2/package.json rename to NPM/package.json diff --git a/npm2/tsconfig.json b/NPM/tsconfig.json similarity index 100% rename from npm2/tsconfig.json rename to NPM/tsconfig.json From fc2bf813733d62a89a3bfe0919cc8dcde8867e7f Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:33:03 +0300 Subject: [PATCH 06/22] squash! --- website/.github/dependabot.yml | 12 ++++ website/.github/workflows/dependabot.yml | 30 ++++++++ website/.github/workflows/node.yml | 89 ++++++++++++++++++++++++ website/.gitignore | 19 +++++ website/.npmignore | 5 ++ website/CHANGELOG.md | 3 + website/Public/robots.txt | 2 + website/Public/site.webmanifest | 10 +++ website/README.md | 5 ++ website/Source/Layout/Base.astro | 56 +++++++++++++++ website/Source/Library/Environment.ts | 10 +++ website/Source/Script/FIREBASE.ts | 12 ++++ website/Source/Style/Base.css | 4 ++ website/Source/Style/Global.css | 24 +++++++ website/Source/pages/index.astro | 5 ++ website/astro.config.ts | 33 +++++++++ website/package.json | 50 +++++++++++++ website/postcss.config.js | 17 +++++ website/tailwind.config.js | 29 ++++++++ website/tsconfig.json | 18 +++++ 20 files changed, 433 insertions(+) create mode 100644 website/.github/dependabot.yml create mode 100644 website/.github/workflows/dependabot.yml create mode 100644 website/.github/workflows/node.yml create mode 100644 website/.gitignore create mode 100644 website/.npmignore create mode 100644 website/CHANGELOG.md create mode 100644 website/Public/robots.txt create mode 100644 website/Public/site.webmanifest create mode 100644 website/README.md create mode 100644 website/Source/Layout/Base.astro create mode 100644 website/Source/Library/Environment.ts create mode 100644 website/Source/Script/FIREBASE.ts create mode 100644 website/Source/Style/Base.css create mode 100644 website/Source/Style/Global.css create mode 100644 website/Source/pages/index.astro create mode 100644 website/astro.config.ts create mode 100644 website/package.json create mode 100644 website/postcss.config.js create mode 100644 website/tailwind.config.js create mode 100644 website/tsconfig.json diff --git a/website/.github/dependabot.yml b/website/.github/dependabot.yml new file mode 100644 index 00000000..4d4096fb --- /dev/null +++ b/website/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/website/.github/workflows/dependabot.yml b/website/.github/workflows/dependabot.yml new file mode 100644 index 00000000..fb496916 --- /dev/null +++ b/website/.github/workflows/dependabot.yml @@ -0,0 +1,30 @@ +name: Dependabot + +concurrency: + group: dependabot-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + workflow_dispatch: + pull_request: + +permissions: + contents: write + pull-requests: write + +jobs: + approve-and-merge: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - uses: dependabot/fetch-metadata@v1.6.0 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/website/.github/workflows/node.yml b/website/.github/workflows/node.yml new file mode 100644 index 00000000..ba994517 --- /dev/null +++ b/website/.github/workflows/node.yml @@ -0,0 +1,89 @@ +name: Node + +concurrency: + group: node-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + security-events: write + +on: + workflow_dispatch: + push: + branches: [main] + pull_request: + branches: [main] + workflow_call: + +jobs: + node: + runs-on: ubuntu-latest + + env: + ADBLOCK: true + TELEMETRY_DISABLED: 1 + ASTRO_TELEMETRY_DISABLED: 1 + AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 + AZURE_CORE_COLLECT_TELEMETRY: 0 + CHOOSENIM_NO_ANALYTICS: 1 + DIEZ_DO_NOT_TRACK: 1 + DO_NOT_TRACK: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 + ET_NO_TELEMETRY: 1 + GATSBY_TELEMETRY_DISABLED: 1 + GATSBY_TELEMETRY_OPT_OUT: 1 + GATSBY_TELEMETRY_OPTOUT: 1 + HASURA_GRAPHQL_ENABLE_TELEMETRY: false + HINT_TELEMETRY: off + HOMEBREW_NO_ANALYTICS: 1 + INFLUXD_REPORTING_DISABLED: true + ITERATIVE_DO_NOT_TRACK: 1 + NEXT_TELEMETRY_DEBUG: 1 + NEXT_TELEMETRY_DISABLED: 1 + NG_CLI_ANALYTICS: false + NUXT_TELEMETRY_DISABLED: 1 + PIN_DO_NOT_TRACK: 1 + POWERSHELL_TELEMETRY_OPTOUT: 1 + SAM_CLI_TELEMETRY: 0 + STNOUPGRADE: 1 + STRIPE_CLI_TELEMETRY_OPTOUT: 1 + + strategy: + matrix: + node-version: [16, 18, 19] + + steps: + - uses: actions/checkout@v3.5.3 + - uses: pnpm/action-setup@v2.4.0 + with: + version: 8.6.6 + run_install: | + - recursive: true + args: [ + --child-concurrency=9999, + --link-workspace-packages=true, + --lockfile-only, + --network-concurrency=9999, + --prefer-frozen-lockfile=false, + --shamefully-hoist=false, + --shared-workspace-lockfile=true, + --strict-peer-dependencies=false, + --unsafe-perm=true + ] + + - uses: actions/setup-node@v3.7.0 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" + cache-dependency-path: ./pnpm-lock.yaml + - run: pnpm install + working-directory: . + + - run: pnpm run build + working-directory: . + + - uses: actions/upload-artifact@v3.1.2 + with: + name: .-node-${{ matrix.node-version }}-Target + path: ./Target diff --git a/website/.gitignore b/website/.gitignore new file mode 100644 index 00000000..ca8e4cae --- /dev/null +++ b/website/.gitignore @@ -0,0 +1,19 @@ +# dependencies +package-lock.json +node_modules/ +.snowpack/ + +# logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# environment variables +.env +.env.production + +# macOS-specific files +.DS_Store + +Target/ +.astro diff --git a/website/.npmignore b/website/.npmignore new file mode 100644 index 00000000..a5a46192 --- /dev/null +++ b/website/.npmignore @@ -0,0 +1,5 @@ +.github/ +.turbo/ +Source/ +public/ +CONTRIBUTING.md diff --git a/website/CHANGELOG.md b/website/CHANGELOG.md new file mode 100644 index 00000000..43d7b3de --- /dev/null +++ b/website/CHANGELOG.md @@ -0,0 +1,3 @@ +## 0.0.1 + +- Initial version diff --git a/website/Public/robots.txt b/website/Public/robots.txt new file mode 100644 index 00000000..eb053628 --- /dev/null +++ b/website/Public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/website/Public/site.webmanifest b/website/Public/site.webmanifest new file mode 100644 index 00000000..6ea903b2 --- /dev/null +++ b/website/Public/site.webmanifest @@ -0,0 +1,10 @@ +{ + "background_color": "// TODO Set the background color of the app", + "categories": [], + "display": "minimal-ui", + "name": "// TODO Use the same title as in template.html", + "orientation": "landscape", + "short_name": "// TODO Title but lowercase", + "start_url": "/", + "theme_color": "// TODO Use the same theme color from template.html" +} \ No newline at end of file diff --git a/website/README.md b/website/README.md new file mode 100644 index 00000000..2240773f --- /dev/null +++ b/website/README.md @@ -0,0 +1,5 @@ +# [astro-starter-template] 📄 + +Starter template for AstroJS. + +[astro-starter-template]: https://npmjs.org/astro-starter-template diff --git a/website/Source/Layout/Base.astro b/website/Source/Layout/Base.astro new file mode 100644 index 00000000..9685c407 --- /dev/null +++ b/website/Source/Layout/Base.astro @@ -0,0 +1,56 @@ +--- +import "@Style/Base.css"; + +// TODO Place your title and description here +const { title = "", description = "" } = Astro.props; +--- + + + + + + + + {title} + + + + + + + + + + + + + + + + + + + +
+
+ +
+ +
+ + diff --git a/website/Source/Library/Environment.ts b/website/Source/Library/Environment.ts new file mode 100644 index 00000000..8993cf38 --- /dev/null +++ b/website/Source/Library/Environment.ts @@ -0,0 +1,10 @@ +import * as dotenv from "dotenv"; +import { z } from "zod"; + +dotenv.config(); + +export default z + .object({ + GH_AUTH_TOKEN: z.string().default(""), + }) + .parse(process.env); diff --git a/website/Source/Script/FIREBASE.ts b/website/Source/Script/FIREBASE.ts new file mode 100644 index 00000000..894d86ff --- /dev/null +++ b/website/Source/Script/FIREBASE.ts @@ -0,0 +1,12 @@ +import { initializeApp as Initialize } from "firebase/app"; + +Initialize({ + apiKey: "", // TODO Replace with your API key + appId: "", // TODO Replace with your app ID + authDomain: "", // TODO Replace with your auth domain + databaseURL: "", // TODO Replace with your database URL + measurementId: "", // TODO Replace with your measurement ID + messagingSenderId: "", // TODO Replace with your messaging sender ID + projectId: "", // TODO Replace with your project ID + storageBucket: "", // TODO Replace with your storage bucket +}); diff --git a/website/Source/Style/Base.css b/website/Source/Style/Base.css new file mode 100644 index 00000000..510ff1d5 --- /dev/null +++ b/website/Source/Style/Base.css @@ -0,0 +1,4 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; +@tailwind variants; diff --git a/website/Source/Style/Global.css b/website/Source/Style/Global.css new file mode 100644 index 00000000..47992c48 --- /dev/null +++ b/website/Source/Style/Global.css @@ -0,0 +1,24 @@ +html { + -webkit-tap-highlight-color: transparent; +} + +html, +body { + height: 100%; +} + +body { + @apply flex + flex-grow + flex-col + antialiased + dark:bg-black + dark:text-white + sm:subpixel-antialiased; +} + +img { + @apply inline-block + select-none + outline-none; +} diff --git a/website/Source/pages/index.astro b/website/Source/pages/index.astro new file mode 100644 index 00000000..7bc75b93 --- /dev/null +++ b/website/Source/pages/index.astro @@ -0,0 +1,5 @@ +--- +import Base from "@Layout/Base.astro"; +--- + + diff --git a/website/astro.config.ts b/website/astro.config.ts new file mode 100644 index 00000000..abd4cefc --- /dev/null +++ b/website/astro.config.ts @@ -0,0 +1,33 @@ +import PreFetch from "@astrojs/prefetch"; +import SiteMap from "@astrojs/sitemap"; +import Compress from "astro-compress"; +import Critters from "astro-critters"; +import ROME from "astro-rome"; +import { defineConfig } from "astro/config"; +import Worker from "astrojs-service-worker"; + +export default defineConfig({ + srcDir: "./Source", + publicDir: "./Public", + outDir: "./Target", + // TODO Place your site URL here + // site: "", + experimental: { + assets: true, + viewTransitions: true, + }, + compressHTML: true, + integrations: [ + import.meta.env.MODE === "production" ? Worker() : null, + SiteMap(), + Critters({ Logger: 1 }), + PreFetch(), + ROME({ Logger: 1 }), + Compress({ Logger: 1 }), + ], + vite: { + build: { + sourcemap: true, + }, + }, +}); diff --git a/website/package.json b/website/package.json new file mode 100644 index 00000000..121e84c8 --- /dev/null +++ b/website/package.json @@ -0,0 +1,50 @@ +{ + "name": "astro-starter-template", + "version": "2.0.0", + "private": false, + "description": "📄 Starter template for AstroJS.", + "keywords": [ + "astro", + "starter" + ], + "homepage": "https://github.com/Lightrix/astro-starter-template#readme", + "bugs": { + "url": "https://github.com/Lightrix/astro-starter-template/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Lightrix/astro-starter-template.git" + }, + "scripts": { + "build": "astro check && astro build", + "start": "astro dev" + }, + "devDependencies": { + "@astrojs/prefetch": "0.3.0", + "@astrojs/sitemap": "2.0.1", + "@tailwindcss/aspect-ratio": "0.4.2", + "@tailwindcss/forms": "0.5.4", + "@tailwindcss/typography": "0.5.9", + "astro": "2.10.5", + "astro-compress": "2.0.5", + "astro-critters": "2.0.4", + "astro-rome": "2.0.1", + "astrojs-service-worker": "1.0.0", + "autoprefixer": "10.4.14", + "cssnano": "6.0.1", + "cssnano-preset-advanced": "6.0.1", + "dotenv": "16.3.1", + "firebase": "10.1.0", + "postcss": "8.4.27", + "postcss-combine-duplicated-selectors": "10.0.3", + "postcss-combine-media-query": "1.0.1", + "postcss-import": "15.1.0", + "postcss-reporter": "7.0.5", + "postcss-url": "10.1.3", + "tailwindcss": "3.3.3", + "zod": "3.21.4" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/website/postcss.config.js b/website/postcss.config.js new file mode 100644 index 00000000..569db63d --- /dev/null +++ b/website/postcss.config.js @@ -0,0 +1,17 @@ +// @ts-nocheck +module.exports = { + plugins: [ + require("postcss-import"), + require("postcss-url"), + require("tailwindcss/nesting"), + require("tailwindcss")("./tailwind.config.js"), + require("postcss-combine-media-query"), + require("postcss-combine-duplicated-selectors")({ + removeDuplicatedProperties: true, + removeDuplicatedValues: false, + }), + require("autoprefixer"), + require("cssnano")({ preset: "advanced" }), + require("postcss-reporter"), + ], +}; diff --git a/website/tailwind.config.js b/website/tailwind.config.js new file mode 100644 index 00000000..c9de3266 --- /dev/null +++ b/website/tailwind.config.js @@ -0,0 +1,29 @@ +module.exports = { + content: [ + "./Public/**/*.html", + "./Source/**/*.{astro,js,jsx,ts,tsx,vue,svelte}", + ], + darkMode: "media", + theme: { + container: { + center: true, + }, + extend: { + typography: { + DEFAULT: { + css: { + a: { + "font-weight": "400", + }, + }, + }, + }, + }, + }, + variants: {}, + plugins: [ + require("@tailwindcss/forms"), + require("@tailwindcss/typography"), + require("@tailwindcss/aspect-ratio"), + ], +}; diff --git a/website/tsconfig.json b/website/tsconfig.json new file mode 100644 index 00000000..56d8c2e5 --- /dev/null +++ b/website/tsconfig.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "baseUrl": "./", + "moduleResolution": "bundler", + "paths": { + "@Asset/*": ["Source/Asset/*"], + "@Component/*": ["Source/Component/*"], + "@Layout/*": ["Source/Layout/*"], + "@Library/*": ["Source/Library/*"], + "@Option/*": ["Source/Option/*"], + "@Page/*": ["Source/pages/*"], + "@Script/*": ["Source/Script/*"], + "@Style/*": ["Source/Style/*"] + }, + "types": ["astro/client", "astro/client-image", "astro/env"] + }, + "extends": "@lightrix/configuration/Base/TypeScript" +} From 69bfaea3e850b52c1d43e2a1cd54e92b14eb2d72 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:34:17 +0300 Subject: [PATCH 07/22] squash! --- website/package.json | 7 ++++--- website/tsconfig.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/website/package.json b/website/package.json index 121e84c8..5a3888b8 100644 --- a/website/package.json +++ b/website/package.json @@ -7,13 +7,14 @@ "astro", "starter" ], - "homepage": "https://github.com/Lightrix/astro-starter-template#readme", + "homepage": "https://github.com/NikolaRHristov/JavaScriptBuild#readme", "bugs": { - "url": "https://github.com/Lightrix/astro-starter-template/issues" + "url": "https://github.com/NikolaRHristov/JavaScriptBuild/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/Lightrix/astro-starter-template.git" + "url": "git+https://github.com/NikolaRHristov/JavaScriptBuild.git", + "directory": "website" }, "scripts": { "build": "astro check && astro build", diff --git a/website/tsconfig.json b/website/tsconfig.json index 56d8c2e5..2e120cd4 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -14,5 +14,5 @@ }, "types": ["astro/client", "astro/client-image", "astro/env"] }, - "extends": "@lightrix/configuration/Base/TypeScript" + "extends": "javascriptbuild/Source/Configuration/TypeScript", } From 17b9084fd4be301e393da53f605bd2c969e91abf Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:35:09 +0300 Subject: [PATCH 08/22] squash! --- website/Source/Layout/Base.astro | 2 +- website/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/Source/Layout/Base.astro b/website/Source/Layout/Base.astro index 9685c407..4ee5431e 100644 --- a/website/Source/Layout/Base.astro +++ b/website/Source/Layout/Base.astro @@ -49,7 +49,7 @@ const { title = "", description = "" } = Astro.props; diff --git a/website/package.json b/website/package.json index 5a3888b8..be333f67 100644 --- a/website/package.json +++ b/website/package.json @@ -1,5 +1,5 @@ { - "name": "astro-starter-template", + "name": "javascriptbuild-web", "version": "2.0.0", "private": false, "description": "📄 Starter template for AstroJS.", From 8c8bbe7ae0279f9c620699714913dacafe7c630a Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:36:22 +0300 Subject: [PATCH 09/22] squash! --- .github/dependabot.yml | 6 ++++++ .github/workflows/Node.yml | 17 +++++++++++++++++ website/.github/dependabot.yml | 12 ------------ 3 files changed, 23 insertions(+), 12 deletions(-) delete mode 100644 website/.github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 54a5f2f3..45288980 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,3 +11,9 @@ updates: schedule: interval: "daily" versioning-strategy: increase + + - package-ecosystem: "npm" + directory: "/website" + schedule: + interval: "daily" + versioning-strategy: increase diff --git a/.github/workflows/Node.yml b/.github/workflows/Node.yml index eb6996a2..ccb993fb 100644 --- a/.github/workflows/Node.yml +++ b/.github/workflows/Node.yml @@ -91,3 +91,20 @@ jobs: with: name: .-NPM-Node-${{ matrix.node-version }}-Target path: ./NPM/Target + + - uses: actions/setup-node@v3.7.0 + with: + node-version: ${{ matrix.node-version }} + cache: "pnpm" + cache-dependency-path: ./website/pnpm-lock.yaml + + - run: pnpm install + working-directory: ./website + + - run: pnpm run prepublishOnly + working-directory: ./website + + - uses: actions/upload-artifact@v3.1.2 + with: + name: .-website-Node-${{ matrix.node-version }}-Target + path: ./website/Target diff --git a/website/.github/dependabot.yml b/website/.github/dependabot.yml deleted file mode 100644 index 4d4096fb..00000000 --- a/website/.github/dependabot.yml +++ /dev/null @@ -1,12 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "daily" - versioning-strategy: increase From 226c6ca30157395154dd9467f1e9617af6461c12 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:36:42 +0300 Subject: [PATCH 10/22] squash! --- website/.github/workflows/dependabot.yml | 30 -------- website/.github/workflows/node.yml | 89 ------------------------ 2 files changed, 119 deletions(-) delete mode 100644 website/.github/workflows/dependabot.yml delete mode 100644 website/.github/workflows/node.yml diff --git a/website/.github/workflows/dependabot.yml b/website/.github/workflows/dependabot.yml deleted file mode 100644 index fb496916..00000000 --- a/website/.github/workflows/dependabot.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Dependabot - -concurrency: - group: dependabot-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -on: - workflow_dispatch: - pull_request: - -permissions: - contents: write - pull-requests: write - -jobs: - approve-and-merge: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - uses: dependabot/fetch-metadata@v1.6.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - run: gh pr merge --auto --merge "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/website/.github/workflows/node.yml b/website/.github/workflows/node.yml deleted file mode 100644 index ba994517..00000000 --- a/website/.github/workflows/node.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Node - -concurrency: - group: node-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -permissions: - security-events: write - -on: - workflow_dispatch: - push: - branches: [main] - pull_request: - branches: [main] - workflow_call: - -jobs: - node: - runs-on: ubuntu-latest - - env: - ADBLOCK: true - TELEMETRY_DISABLED: 1 - ASTRO_TELEMETRY_DISABLED: 1 - AUTOMATEDLAB_TELEMETRY_OPTOUT: 1 - AZURE_CORE_COLLECT_TELEMETRY: 0 - CHOOSENIM_NO_ANALYTICS: 1 - DIEZ_DO_NOT_TRACK: 1 - DO_NOT_TRACK: 1 - DOTNET_CLI_TELEMETRY_OPTOUT: 1 - DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT: 1 - ET_NO_TELEMETRY: 1 - GATSBY_TELEMETRY_DISABLED: 1 - GATSBY_TELEMETRY_OPT_OUT: 1 - GATSBY_TELEMETRY_OPTOUT: 1 - HASURA_GRAPHQL_ENABLE_TELEMETRY: false - HINT_TELEMETRY: off - HOMEBREW_NO_ANALYTICS: 1 - INFLUXD_REPORTING_DISABLED: true - ITERATIVE_DO_NOT_TRACK: 1 - NEXT_TELEMETRY_DEBUG: 1 - NEXT_TELEMETRY_DISABLED: 1 - NG_CLI_ANALYTICS: false - NUXT_TELEMETRY_DISABLED: 1 - PIN_DO_NOT_TRACK: 1 - POWERSHELL_TELEMETRY_OPTOUT: 1 - SAM_CLI_TELEMETRY: 0 - STNOUPGRADE: 1 - STRIPE_CLI_TELEMETRY_OPTOUT: 1 - - strategy: - matrix: - node-version: [16, 18, 19] - - steps: - - uses: actions/checkout@v3.5.3 - - uses: pnpm/action-setup@v2.4.0 - with: - version: 8.6.6 - run_install: | - - recursive: true - args: [ - --child-concurrency=9999, - --link-workspace-packages=true, - --lockfile-only, - --network-concurrency=9999, - --prefer-frozen-lockfile=false, - --shamefully-hoist=false, - --shared-workspace-lockfile=true, - --strict-peer-dependencies=false, - --unsafe-perm=true - ] - - - uses: actions/setup-node@v3.7.0 - with: - node-version: ${{ matrix.node-version }} - cache: "pnpm" - cache-dependency-path: ./pnpm-lock.yaml - - run: pnpm install - working-directory: . - - - run: pnpm run build - working-directory: . - - - uses: actions/upload-artifact@v3.1.2 - with: - name: .-node-${{ matrix.node-version }}-Target - path: ./Target From eb13f9dba43d3eac6106ab667f5aa7d74e8cb858 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:47:50 +0300 Subject: [PATCH 11/22] squash! --- NPM/CHANGELOG.md | 4 ++++ NPM/README.md | 12 ++++++------ NPM/Source/Index.ts | 2 +- NPM/package.json | 12 ++++++------ README.md | 15 +++++++-------- website/package.json | 10 +++++----- website/tsconfig.json | 2 +- 7 files changed, 30 insertions(+), 27 deletions(-) diff --git a/NPM/CHANGELOG.md b/NPM/CHANGELOG.md index 4ef163fb..0fac1974 100644 --- a/NPM/CHANGELOG.md +++ b/NPM/CHANGELOG.md @@ -1,5 +1,9 @@ ## 0.1.4 +- Renamed + +## 0.1.4 + - Cleanup ## 0.1.2 diff --git a/NPM/README.md b/NPM/README.md index f48c667e..b60c2856 100644 --- a/NPM/README.md +++ b/NPM/README.md @@ -1,4 +1,4 @@ -# [JavaScript Build] 🧑🏻‍💻 +# [TSBundle] 🧑🏻‍💻 This utility builds all JavaScript files from TypeScript within a given folder using esbuild. @@ -8,7 +8,7 @@ using esbuild. Add configuration and setup scripts: ```sh -npm install -D -E javascriptbuild +npm install -D -E tsbundle ``` ## Usage @@ -19,10 +19,10 @@ npm install -D -E javascriptbuild { "name": "my-awesome-package", "scripts": { - "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts'" + "prepublishOnly": "TSBundle 'Source/**/*.ts'" }, "dependencies": { - "javascriptbuild": "0.1.4" + "tsbundle": "0.1.5" } } ``` @@ -32,7 +32,7 @@ npm install -D -E javascriptbuild ```json { "scripts": { - "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts' -es esbuild.ts" + "prepublishOnly": "TSBundle 'Source/**/*.ts' -es esbuild.ts" } } ``` @@ -54,5 +54,5 @@ npm install -D -E javascriptbuild The script will now automatically compile your build files with [esbuild] and add TypeScript types. -[JavaScript Build]: https://npmjs.org/javascriptbuild +[TSBundle]: https://npmjs.org/tsbundle [esbuild]: https://npmjs.org/esbuild diff --git a/NPM/Source/Index.ts b/NPM/Source/Index.ts index 65e3086c..54f6f0d8 100644 --- a/NPM/Source/Index.ts +++ b/NPM/Source/Index.ts @@ -4,7 +4,7 @@ import _JSON from "./Library/JSON.js"; try { new Command() - .name("JavaScriptBuild") + .name("TSBundle") .version((await _JSON("../package.json", import.meta.url))?.version) .description("Builds files") .argument("", "Files to build") diff --git a/NPM/package.json b/NPM/package.json index 4760dd06..5786d7fe 100644 --- a/NPM/package.json +++ b/NPM/package.json @@ -1,6 +1,6 @@ { - "name": "javascriptbuild", - "version": "0.1.4", + "name": "tsbundle", + "version": "0.1.5", "private": false, "description": "🧑🏻‍💻 Builds all JavaScript files from TypeScript within a given folder using esbuild.", "keywords": [ @@ -8,13 +8,13 @@ "typescript", "esbuild" ], - "homepage": "https://github.com/NikolaRHristov/JavaScriptBuild#readme", + "homepage": "https://github.com/NikolaRHristov/TSBundle#readme", "bugs": { - "url": "https://github.com/NikolaRHristov/JavaScriptBuild/issues" + "url": "https://github.com/NikolaRHristov/TSBundle/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/NikolaRHristov/JavaScriptBuild.git", + "url": "git+https://github.com/NikolaRHristov/TSBundle.git", "directory": "NPM" }, "license": "MIT", @@ -22,7 +22,7 @@ "main": "./Target/Index.js", "types": "./Target/Index.d.ts", "bin": { - "JavaScriptBuild": "Target/Bin.js" + "TSBundle": "Target/Bin.js" }, "scripts": { "prepublishOnly": "node --no-warnings --loader ts-node/esm Source/Index.ts 'Source/**/*.ts'" diff --git a/README.md b/README.md index f48c667e..92daec5b 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ -# [JavaScript Build] 🧑🏻‍💻 +# [TSBundle] 🧑🏻‍💻 -This utility builds all JavaScript files from TypeScript within a given folder -using esbuild. +Builds all your TypeScript files into JavaScript. ## Installation Add configuration and setup scripts: ```sh -npm install -D -E javascriptbuild +npm install -D -E tsbundle ``` ## Usage @@ -19,10 +18,10 @@ npm install -D -E javascriptbuild { "name": "my-awesome-package", "scripts": { - "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts'" + "prepublishOnly": "TSBundle 'Source/**/*.ts'" }, "dependencies": { - "javascriptbuild": "0.1.4" + "tsbundle": "0.1.5" } } ``` @@ -32,7 +31,7 @@ npm install -D -E javascriptbuild ```json { "scripts": { - "prepublishOnly": "JavaScriptBuild 'Source/**/*.ts' -es esbuild.ts" + "prepublishOnly": "TSBundle 'Source/**/*.ts' -es esbuild.ts" } } ``` @@ -54,5 +53,5 @@ npm install -D -E javascriptbuild The script will now automatically compile your build files with [esbuild] and add TypeScript types. -[JavaScript Build]: https://npmjs.org/javascriptbuild +[TSBundle]: https://npmjs.org/tsbundle [esbuild]: https://npmjs.org/esbuild diff --git a/website/package.json b/website/package.json index be333f67..96ba47e6 100644 --- a/website/package.json +++ b/website/package.json @@ -1,19 +1,19 @@ { - "name": "javascriptbuild-web", + "name": "tsbundle-web", "version": "2.0.0", "private": false, - "description": "📄 Starter template for AstroJS.", + "description": "", "keywords": [ "astro", "starter" ], - "homepage": "https://github.com/NikolaRHristov/JavaScriptBuild#readme", + "homepage": "https://github.com/NikolaRHristov/TSBundle#readme", "bugs": { - "url": "https://github.com/NikolaRHristov/JavaScriptBuild/issues" + "url": "https://github.com/NikolaRHristov/TSBundle/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/NikolaRHristov/JavaScriptBuild.git", + "url": "git+https://github.com/NikolaRHristov/TSBundle.git", "directory": "website" }, "scripts": { diff --git a/website/tsconfig.json b/website/tsconfig.json index 2e120cd4..5e8b7272 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -14,5 +14,5 @@ }, "types": ["astro/client", "astro/client-image", "astro/env"] }, - "extends": "javascriptbuild/Source/Configuration/TypeScript", + "extends": "tsbundle/Source/Configuration/TypeScript", } From d5b20af85a0d57bd6a007f0379bc43976e447341 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:49:25 +0300 Subject: [PATCH 12/22] squash! --- NPM/README.md | 5 ++--- NPM/package.json | 2 +- README.md | 57 ------------------------------------------------ 3 files changed, 3 insertions(+), 61 deletions(-) delete mode 100644 README.md diff --git a/NPM/README.md b/NPM/README.md index b60c2856..bf840506 100644 --- a/NPM/README.md +++ b/NPM/README.md @@ -1,7 +1,6 @@ -# [TSBundle] 🧑🏻‍💻 +# [TSBundle] 🌀 -This utility builds all JavaScript files from TypeScript within a given folder -using esbuild. +Builds all your TypeScript files into JavaScript. ## Installation diff --git a/NPM/package.json b/NPM/package.json index 5786d7fe..6fa50e53 100644 --- a/NPM/package.json +++ b/NPM/package.json @@ -2,7 +2,7 @@ "name": "tsbundle", "version": "0.1.5", "private": false, - "description": "🧑🏻‍💻 Builds all JavaScript files from TypeScript within a given folder using esbuild.", + "description": "🌀 Builds all JavaScript files from TypeScript within a given folder using esbuild.", "keywords": [ "javascript", "typescript", diff --git a/README.md b/README.md deleted file mode 100644 index 92daec5b..00000000 --- a/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# [TSBundle] 🧑🏻‍💻 - -Builds all your TypeScript files into JavaScript. - -## Installation - -Add configuration and setup scripts: - -```sh -npm install -D -E tsbundle -``` - -## Usage - -`package.json` - -```json -{ - "name": "my-awesome-package", - "scripts": { - "prepublishOnly": "TSBundle 'Source/**/*.ts'" - }, - "dependencies": { - "tsbundle": "0.1.5" - } -} -``` - -#### or with a custom esbuild config file: - -```json -{ - "scripts": { - "prepublishOnly": "TSBundle 'Source/**/*.ts' -es esbuild.ts" - } -} -``` - -#### See an example of a config file in [esbuild.ts](Source/Configuration/esbuild.ts) - -`tsconfig.json` - -```json -{ - "compilerOptions": { - "outDir": "Target" - }, - "extends": "./Source/Configuration/TypeScript", - "include": ["Source"] -} -``` - -The script will now automatically compile your build files with [esbuild] and -add TypeScript types. - -[TSBundle]: https://npmjs.org/tsbundle -[esbuild]: https://npmjs.org/esbuild From 01dc7a506572042cab2e0945c41b46bd09346245 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 05:51:18 +0300 Subject: [PATCH 13/22] tsbundle@0.1.5 --- NPM/Target/Index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPM/Target/Index.js b/NPM/Target/Index.js index a93b96f3..2bc44722 100644 --- a/NPM/Target/Index.js +++ b/NPM/Target/Index.js @@ -1 +1 @@ -import{Command as o}from"commander";import e from"./Command/Build.js";import r from"./Library/JSON.js";try{new o().name("JavaScriptBuild").version((await r("../package.json",import.meta.url))?.version).description("Builds files").argument("","Files to build").option("-es, --esbuild ","esbuild configuration file").option("-ts, --TypeScript ","TypeScript configuration file").action(e).parse()}catch(i){console.log(i)} +import{Command as o}from"commander";import e from"./Command/Build.js";import r from"./Library/JSON.js";try{new o().name("TSBundle").version((await r("../package.json",import.meta.url))?.version).description("Builds files").argument("","Files to build").option("-es, --esbuild ","esbuild configuration file").option("-ts, --TypeScript ","TypeScript configuration file").action(e).parse()}catch(i){console.log(i)} From d7c7a2ef12e3a2eab3bd7b5e7f75eb96ab823934 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 06:02:13 +0300 Subject: [PATCH 14/22] squash! --- .github/workflows/NPM.yml | 2 +- NPM/CHANGELOG.md | 4 ++++ website/package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/NPM.yml b/.github/workflows/NPM.yml index 752d0e98..a5b4f672 100644 --- a/.github/workflows/NPM.yml +++ b/.github/workflows/NPM.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/setup-node@v3.7.0 with: node-version: "18" - registry-url: "https://registry.npmjs.org" + registry-url: https://npm.pkg.github.com/ - run: npm install -g npm diff --git a/NPM/CHANGELOG.md b/NPM/CHANGELOG.md index 0fac1974..bb51c602 100644 --- a/NPM/CHANGELOG.md +++ b/NPM/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.5 + +- Cleanup + ## 0.1.4 - Renamed diff --git a/website/package.json b/website/package.json index 96ba47e6..50c218ca 100644 --- a/website/package.json +++ b/website/package.json @@ -26,7 +26,7 @@ "@tailwindcss/aspect-ratio": "0.4.2", "@tailwindcss/forms": "0.5.4", "@tailwindcss/typography": "0.5.9", - "astro": "2.10.5", + "astro": "2.10.7", "astro-compress": "2.0.5", "astro-critters": "2.0.4", "astro-rome": "2.0.1", From 82c27ac16a274fdd20749e9201cf1627376151ec Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 06:04:15 +0300 Subject: [PATCH 15/22] tsbundle@0.1.5 --- .github/workflows/NPM.yml | 2 +- NPM/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/NPM.yml b/.github/workflows/NPM.yml index a5b4f672..1149962d 100644 --- a/.github/workflows/NPM.yml +++ b/.github/workflows/NPM.yml @@ -38,4 +38,4 @@ jobs: npm install --legacy-peer-deps npm publish --legacy-peer-deps --provenance env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/NPM/package.json b/NPM/package.json index 6fa50e53..ddcaeafe 100644 --- a/NPM/package.json +++ b/NPM/package.json @@ -41,6 +41,7 @@ "ts-node": "10.9.1" }, "publishConfig": { - "access": "public" + "access": "public", + "@NikolaRHristov:registry": "https://npm.pkg.github.com" } } From c16ae72a51951fae22000724e3ebb988f0694a58 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 06:16:51 +0300 Subject: [PATCH 16/22] tsbundle@0.1.5 --- .github/workflows/Node.yml | 1 + NPM/README.md | 6 +++--- NPM/package.json | 2 +- website/tsconfig.json | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Node.yml b/.github/workflows/Node.yml index ccb993fb..8da9a91f 100644 --- a/.github/workflows/Node.yml +++ b/.github/workflows/Node.yml @@ -80,6 +80,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: "pnpm" cache-dependency-path: ./NPM/pnpm-lock.yaml + scope: "@nikolarhristov" - run: pnpm install working-directory: ./NPM diff --git a/NPM/README.md b/NPM/README.md index bf840506..058e525d 100644 --- a/NPM/README.md +++ b/NPM/README.md @@ -7,7 +7,7 @@ Builds all your TypeScript files into JavaScript. Add configuration and setup scripts: ```sh -npm install -D -E tsbundle +npm install -D -E @nikolarhristov/tsbundle ``` ## Usage @@ -21,7 +21,7 @@ npm install -D -E tsbundle "prepublishOnly": "TSBundle 'Source/**/*.ts'" }, "dependencies": { - "tsbundle": "0.1.5" + "@nikolarhristov/tsbundle": "0.1.5" } } ``` @@ -53,5 +53,5 @@ npm install -D -E tsbundle The script will now automatically compile your build files with [esbuild] and add TypeScript types. -[TSBundle]: https://npmjs.org/tsbundle +[TSBundle]: https://npmjs.org/@nikolarhristov/tsbundle [esbuild]: https://npmjs.org/esbuild diff --git a/NPM/package.json b/NPM/package.json index ddcaeafe..22f7bcb0 100644 --- a/NPM/package.json +++ b/NPM/package.json @@ -1,5 +1,5 @@ { - "name": "tsbundle", + "name": "@nikolarhristov/tsbundle", "version": "0.1.5", "private": false, "description": "🌀 Builds all JavaScript files from TypeScript within a given folder using esbuild.", diff --git a/website/tsconfig.json b/website/tsconfig.json index 5e8b7272..3496e2a3 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -14,5 +14,5 @@ }, "types": ["astro/client", "astro/client-image", "astro/env"] }, - "extends": "tsbundle/Source/Configuration/TypeScript", + "extends": "@nikolarhristov/tsbundle/Source/Configuration/TypeScript", } From ba0baaa180eab93880c96bf314df939d84a384e4 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 07:12:31 +0300 Subject: [PATCH 17/22] squash! --- .github/workflows/Node.yml | 1 - NPM/README.md | 12 ++++++------ NPM/Source/Index.ts | 2 +- NPM/package.json | 13 ++++++------- website/package.json | 8 ++++---- website/tsconfig.json | 2 +- 6 files changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/Node.yml b/.github/workflows/Node.yml index 8da9a91f..ccb993fb 100644 --- a/.github/workflows/Node.yml +++ b/.github/workflows/Node.yml @@ -80,7 +80,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: "pnpm" cache-dependency-path: ./NPM/pnpm-lock.yaml - scope: "@nikolarhristov" - run: pnpm install working-directory: ./NPM diff --git a/NPM/README.md b/NPM/README.md index 058e525d..e8d26015 100644 --- a/NPM/README.md +++ b/NPM/README.md @@ -1,4 +1,4 @@ -# [TSBundle] 🌀 +# [Syclone] 🌀 Builds all your TypeScript files into JavaScript. @@ -7,7 +7,7 @@ Builds all your TypeScript files into JavaScript. Add configuration and setup scripts: ```sh -npm install -D -E @nikolarhristov/tsbundle +npm install -D -E syclone ``` ## Usage @@ -18,10 +18,10 @@ npm install -D -E @nikolarhristov/tsbundle { "name": "my-awesome-package", "scripts": { - "prepublishOnly": "TSBundle 'Source/**/*.ts'" + "prepublishOnly": "Syclone 'Source/**/*.ts'" }, "dependencies": { - "@nikolarhristov/tsbundle": "0.1.5" + "syclone": "0.1.5" } } ``` @@ -31,7 +31,7 @@ npm install -D -E @nikolarhristov/tsbundle ```json { "scripts": { - "prepublishOnly": "TSBundle 'Source/**/*.ts' -es esbuild.ts" + "prepublishOnly": "Syclone 'Source/**/*.ts' -es esbuild.ts" } } ``` @@ -53,5 +53,5 @@ npm install -D -E @nikolarhristov/tsbundle The script will now automatically compile your build files with [esbuild] and add TypeScript types. -[TSBundle]: https://npmjs.org/@nikolarhristov/tsbundle +[Syclone]: https://npmjs.org/syclone [esbuild]: https://npmjs.org/esbuild diff --git a/NPM/Source/Index.ts b/NPM/Source/Index.ts index 54f6f0d8..193827d9 100644 --- a/NPM/Source/Index.ts +++ b/NPM/Source/Index.ts @@ -4,7 +4,7 @@ import _JSON from "./Library/JSON.js"; try { new Command() - .name("TSBundle") + .name("Syclone") .version((await _JSON("../package.json", import.meta.url))?.version) .description("Builds files") .argument("", "Files to build") diff --git a/NPM/package.json b/NPM/package.json index 22f7bcb0..13174ee8 100644 --- a/NPM/package.json +++ b/NPM/package.json @@ -1,5 +1,5 @@ { - "name": "@nikolarhristov/tsbundle", + "name": "syclone", "version": "0.1.5", "private": false, "description": "🌀 Builds all JavaScript files from TypeScript within a given folder using esbuild.", @@ -8,13 +8,13 @@ "typescript", "esbuild" ], - "homepage": "https://github.com/NikolaRHristov/TSBundle#readme", + "homepage": "https://github.com/NikolaRHristov/Syclone#readme", "bugs": { - "url": "https://github.com/NikolaRHristov/TSBundle/issues" + "url": "https://github.com/NikolaRHristov/Syclone/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/NikolaRHristov/TSBundle.git", + "url": "git+https://github.com/NikolaRHristov/Syclone.git", "directory": "NPM" }, "license": "MIT", @@ -22,7 +22,7 @@ "main": "./Target/Index.js", "types": "./Target/Index.d.ts", "bin": { - "TSBundle": "Target/Bin.js" + "Syclone": "Target/Bin.js" }, "scripts": { "prepublishOnly": "node --no-warnings --loader ts-node/esm Source/Index.ts 'Source/**/*.ts'" @@ -41,7 +41,6 @@ "ts-node": "10.9.1" }, "publishConfig": { - "access": "public", - "@NikolaRHristov:registry": "https://npm.pkg.github.com" + "access": "public" } } diff --git a/website/package.json b/website/package.json index 50c218ca..c2461191 100644 --- a/website/package.json +++ b/website/package.json @@ -1,5 +1,5 @@ { - "name": "tsbundle-web", + "name": "syclone-web", "version": "2.0.0", "private": false, "description": "", @@ -7,13 +7,13 @@ "astro", "starter" ], - "homepage": "https://github.com/NikolaRHristov/TSBundle#readme", + "homepage": "https://github.com/NikolaRHristov/Syclone#readme", "bugs": { - "url": "https://github.com/NikolaRHristov/TSBundle/issues" + "url": "https://github.com/NikolaRHristov/Syclone/issues" }, "repository": { "type": "git", - "url": "git+https://github.com/NikolaRHristov/TSBundle.git", + "url": "git+https://github.com/NikolaRHristov/Syclone.git", "directory": "website" }, "scripts": { diff --git a/website/tsconfig.json b/website/tsconfig.json index 3496e2a3..51baa8b4 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -14,5 +14,5 @@ }, "types": ["astro/client", "astro/client-image", "astro/env"] }, - "extends": "@nikolarhristov/tsbundle/Source/Configuration/TypeScript", + "extends": "syclone/Source/Configuration/TypeScript", } From af7b718e87218b3be008fce2b36636c0d7b793fd Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 07:13:54 +0300 Subject: [PATCH 18/22] syclone@0.1.5 --- NPM/Target/Index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPM/Target/Index.js b/NPM/Target/Index.js index 2bc44722..ae474096 100644 --- a/NPM/Target/Index.js +++ b/NPM/Target/Index.js @@ -1 +1 @@ -import{Command as o}from"commander";import e from"./Command/Build.js";import r from"./Library/JSON.js";try{new o().name("TSBundle").version((await r("../package.json",import.meta.url))?.version).description("Builds files").argument("","Files to build").option("-es, --esbuild ","esbuild configuration file").option("-ts, --TypeScript ","TypeScript configuration file").action(e).parse()}catch(i){console.log(i)} +import{Command as o}from"commander";import e from"./Command/Build.js";import r from"./Library/JSON.js";try{new o().name("Syclone").version((await r("../package.json",import.meta.url))?.version).description("Builds files").argument("","Files to build").option("-es, --esbuild ","esbuild configuration file").option("-ts, --TypeScript ","TypeScript configuration file").action(e).parse()}catch(i){console.log(i)} From 2e41d102d967a21c3ba5a97cd2b49d04da8a6620 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 07:15:23 +0300 Subject: [PATCH 19/22] syclone@0.1.5 --- .github/workflows/NPM.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/NPM.yml b/.github/workflows/NPM.yml index 1149962d..752d0e98 100644 --- a/.github/workflows/NPM.yml +++ b/.github/workflows/NPM.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/setup-node@v3.7.0 with: node-version: "18" - registry-url: https://npm.pkg.github.com/ + registry-url: "https://registry.npmjs.org" - run: npm install -g npm @@ -38,4 +38,4 @@ jobs: npm install --legacy-peer-deps npm publish --legacy-peer-deps --provenance env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 195f67f39a5d7487a4387f789a15d39782c3be14 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 07:20:10 +0300 Subject: [PATCH 20/22] syclone@0.1.6 --- NPM/CHANGELOG.md | 4 ++++ NPM/README.md | 2 +- NPM/package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NPM/CHANGELOG.md b/NPM/CHANGELOG.md index bb51c602..679b4f5f 100644 --- a/NPM/CHANGELOG.md +++ b/NPM/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.6 + +- Cleanup + ## 0.1.5 - Cleanup diff --git a/NPM/README.md b/NPM/README.md index e8d26015..04cba4ac 100644 --- a/NPM/README.md +++ b/NPM/README.md @@ -21,7 +21,7 @@ npm install -D -E syclone "prepublishOnly": "Syclone 'Source/**/*.ts'" }, "dependencies": { - "syclone": "0.1.5" + "syclone": "0.1.6" } } ``` diff --git a/NPM/package.json b/NPM/package.json index 13174ee8..1c308bfa 100644 --- a/NPM/package.json +++ b/NPM/package.json @@ -1,6 +1,6 @@ { "name": "syclone", - "version": "0.1.5", + "version": "0.1.6", "private": false, "description": "🌀 Builds all JavaScript files from TypeScript within a given folder using esbuild.", "keywords": [ From e3bcc4545b3060787197602d282376963166d591 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 07:27:49 +0300 Subject: [PATCH 21/22] 0.1.6 --- .github/dependabot.yml | 8 +-- .github/workflows/NPM.yml | 4 +- .github/workflows/Node.yml | 8 +-- NPM/.npmignore => .npmignore | 0 NPM/CHANGELOG.md => CHANGELOG.md | 0 NPM/LICENSE => LICENSE | 0 NPM/README.md => README.md | 0 {NPM/Source => Source}/Bin.ts | 0 {NPM/Source => Source}/Command/Build.ts | 0 .../Configuration/TypeScript.json | 0 .../Configuration/esbuild.ts | 0 {NPM/Source => Source}/Index.ts | 0 {NPM/Source => Source}/Library/File.ts | 0 {NPM/Source => Source}/Library/JSON.ts | 0 {NPM/Target => Target}/Bin.d.ts | 0 {NPM/Target => Target}/Bin.js | 0 {NPM/Target => Target}/Command/Build.d.ts | 0 {NPM/Target => Target}/Command/Build.js | 0 .../Configuration/TypeScript.json | 0 .../Configuration/esbuild.d.ts | 0 .../Configuration/esbuild.js | 0 {NPM/Target => Target}/Index.d.ts | 0 {NPM/Target => Target}/Index.js | 0 {NPM/Target => Target}/Library/File.d.ts | 0 {NPM/Target => Target}/Library/File.js | 0 {NPM/Target => Target}/Library/JSON.d.ts | 0 {NPM/Target => Target}/Library/JSON.js | 0 NPM/package.json => package.json | 0 NPM/tsconfig.json => tsconfig.json | 0 website/.gitignore | 19 ------- website/.npmignore | 5 -- website/CHANGELOG.md | 3 - website/Public/robots.txt | 2 - website/Public/site.webmanifest | 10 ---- website/README.md | 5 -- website/Source/Layout/Base.astro | 56 ------------------- website/Source/Library/Environment.ts | 10 ---- website/Source/Script/FIREBASE.ts | 12 ---- website/Source/Style/Base.css | 4 -- website/Source/Style/Global.css | 24 -------- website/Source/pages/index.astro | 5 -- website/astro.config.ts | 33 ----------- website/package.json | 51 ----------------- website/postcss.config.js | 17 ------ website/tailwind.config.js | 29 ---------- website/tsconfig.json | 18 ------ 46 files changed, 7 insertions(+), 316 deletions(-) rename NPM/.npmignore => .npmignore (100%) rename NPM/CHANGELOG.md => CHANGELOG.md (100%) rename NPM/LICENSE => LICENSE (100%) rename NPM/README.md => README.md (100%) rename {NPM/Source => Source}/Bin.ts (100%) rename {NPM/Source => Source}/Command/Build.ts (100%) rename {NPM/Source => Source}/Configuration/TypeScript.json (100%) rename {NPM/Source => Source}/Configuration/esbuild.ts (100%) rename {NPM/Source => Source}/Index.ts (100%) rename {NPM/Source => Source}/Library/File.ts (100%) rename {NPM/Source => Source}/Library/JSON.ts (100%) rename {NPM/Target => Target}/Bin.d.ts (100%) rename {NPM/Target => Target}/Bin.js (100%) rename {NPM/Target => Target}/Command/Build.d.ts (100%) rename {NPM/Target => Target}/Command/Build.js (100%) rename {NPM/Target => Target}/Configuration/TypeScript.json (100%) rename {NPM/Target => Target}/Configuration/esbuild.d.ts (100%) rename {NPM/Target => Target}/Configuration/esbuild.js (100%) rename {NPM/Target => Target}/Index.d.ts (100%) rename {NPM/Target => Target}/Index.js (100%) rename {NPM/Target => Target}/Library/File.d.ts (100%) rename {NPM/Target => Target}/Library/File.js (100%) rename {NPM/Target => Target}/Library/JSON.d.ts (100%) rename {NPM/Target => Target}/Library/JSON.js (100%) rename NPM/package.json => package.json (100%) rename NPM/tsconfig.json => tsconfig.json (100%) delete mode 100644 website/.gitignore delete mode 100644 website/.npmignore delete mode 100644 website/CHANGELOG.md delete mode 100644 website/Public/robots.txt delete mode 100644 website/Public/site.webmanifest delete mode 100644 website/README.md delete mode 100644 website/Source/Layout/Base.astro delete mode 100644 website/Source/Library/Environment.ts delete mode 100644 website/Source/Script/FIREBASE.ts delete mode 100644 website/Source/Style/Base.css delete mode 100644 website/Source/Style/Global.css delete mode 100644 website/Source/pages/index.astro delete mode 100644 website/astro.config.ts delete mode 100644 website/package.json delete mode 100644 website/postcss.config.js delete mode 100644 website/tailwind.config.js delete mode 100644 website/tsconfig.json diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 45288980..0bd58331 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,13 +7,7 @@ updates: interval: "daily" - package-ecosystem: "npm" - directory: "/NPM" - schedule: - interval: "daily" - versioning-strategy: increase - - - package-ecosystem: "npm" - directory: "/website" + directory: "/" schedule: interval: "daily" versioning-strategy: increase diff --git a/.github/workflows/NPM.yml b/.github/workflows/NPM.yml index 752d0e98..f8d70f3c 100644 --- a/.github/workflows/NPM.yml +++ b/.github/workflows/NPM.yml @@ -31,9 +31,9 @@ jobs: - run: npm install -g npm - - name: Publish ./NPM + - name: Publish . continue-on-error: true - working-directory: ./NPM + working-directory: . run: | npm install --legacy-peer-deps npm publish --legacy-peer-deps --provenance diff --git a/.github/workflows/Node.yml b/.github/workflows/Node.yml index ccb993fb..92403296 100644 --- a/.github/workflows/Node.yml +++ b/.github/workflows/Node.yml @@ -79,18 +79,18 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: "pnpm" - cache-dependency-path: ./NPM/pnpm-lock.yaml + cache-dependency-path: ./pnpm-lock.yaml - run: pnpm install - working-directory: ./NPM + working-directory: . - run: pnpm run prepublishOnly - working-directory: ./NPM + working-directory: . - uses: actions/upload-artifact@v3.1.2 with: name: .-NPM-Node-${{ matrix.node-version }}-Target - path: ./NPM/Target + path: ./Target - uses: actions/setup-node@v3.7.0 with: diff --git a/NPM/.npmignore b/.npmignore similarity index 100% rename from NPM/.npmignore rename to .npmignore diff --git a/NPM/CHANGELOG.md b/CHANGELOG.md similarity index 100% rename from NPM/CHANGELOG.md rename to CHANGELOG.md diff --git a/NPM/LICENSE b/LICENSE similarity index 100% rename from NPM/LICENSE rename to LICENSE diff --git a/NPM/README.md b/README.md similarity index 100% rename from NPM/README.md rename to README.md diff --git a/NPM/Source/Bin.ts b/Source/Bin.ts similarity index 100% rename from NPM/Source/Bin.ts rename to Source/Bin.ts diff --git a/NPM/Source/Command/Build.ts b/Source/Command/Build.ts similarity index 100% rename from NPM/Source/Command/Build.ts rename to Source/Command/Build.ts diff --git a/NPM/Source/Configuration/TypeScript.json b/Source/Configuration/TypeScript.json similarity index 100% rename from NPM/Source/Configuration/TypeScript.json rename to Source/Configuration/TypeScript.json diff --git a/NPM/Source/Configuration/esbuild.ts b/Source/Configuration/esbuild.ts similarity index 100% rename from NPM/Source/Configuration/esbuild.ts rename to Source/Configuration/esbuild.ts diff --git a/NPM/Source/Index.ts b/Source/Index.ts similarity index 100% rename from NPM/Source/Index.ts rename to Source/Index.ts diff --git a/NPM/Source/Library/File.ts b/Source/Library/File.ts similarity index 100% rename from NPM/Source/Library/File.ts rename to Source/Library/File.ts diff --git a/NPM/Source/Library/JSON.ts b/Source/Library/JSON.ts similarity index 100% rename from NPM/Source/Library/JSON.ts rename to Source/Library/JSON.ts diff --git a/NPM/Target/Bin.d.ts b/Target/Bin.d.ts similarity index 100% rename from NPM/Target/Bin.d.ts rename to Target/Bin.d.ts diff --git a/NPM/Target/Bin.js b/Target/Bin.js similarity index 100% rename from NPM/Target/Bin.js rename to Target/Bin.js diff --git a/NPM/Target/Command/Build.d.ts b/Target/Command/Build.d.ts similarity index 100% rename from NPM/Target/Command/Build.d.ts rename to Target/Command/Build.d.ts diff --git a/NPM/Target/Command/Build.js b/Target/Command/Build.js similarity index 100% rename from NPM/Target/Command/Build.js rename to Target/Command/Build.js diff --git a/NPM/Target/Configuration/TypeScript.json b/Target/Configuration/TypeScript.json similarity index 100% rename from NPM/Target/Configuration/TypeScript.json rename to Target/Configuration/TypeScript.json diff --git a/NPM/Target/Configuration/esbuild.d.ts b/Target/Configuration/esbuild.d.ts similarity index 100% rename from NPM/Target/Configuration/esbuild.d.ts rename to Target/Configuration/esbuild.d.ts diff --git a/NPM/Target/Configuration/esbuild.js b/Target/Configuration/esbuild.js similarity index 100% rename from NPM/Target/Configuration/esbuild.js rename to Target/Configuration/esbuild.js diff --git a/NPM/Target/Index.d.ts b/Target/Index.d.ts similarity index 100% rename from NPM/Target/Index.d.ts rename to Target/Index.d.ts diff --git a/NPM/Target/Index.js b/Target/Index.js similarity index 100% rename from NPM/Target/Index.js rename to Target/Index.js diff --git a/NPM/Target/Library/File.d.ts b/Target/Library/File.d.ts similarity index 100% rename from NPM/Target/Library/File.d.ts rename to Target/Library/File.d.ts diff --git a/NPM/Target/Library/File.js b/Target/Library/File.js similarity index 100% rename from NPM/Target/Library/File.js rename to Target/Library/File.js diff --git a/NPM/Target/Library/JSON.d.ts b/Target/Library/JSON.d.ts similarity index 100% rename from NPM/Target/Library/JSON.d.ts rename to Target/Library/JSON.d.ts diff --git a/NPM/Target/Library/JSON.js b/Target/Library/JSON.js similarity index 100% rename from NPM/Target/Library/JSON.js rename to Target/Library/JSON.js diff --git a/NPM/package.json b/package.json similarity index 100% rename from NPM/package.json rename to package.json diff --git a/NPM/tsconfig.json b/tsconfig.json similarity index 100% rename from NPM/tsconfig.json rename to tsconfig.json diff --git a/website/.gitignore b/website/.gitignore deleted file mode 100644 index ca8e4cae..00000000 --- a/website/.gitignore +++ /dev/null @@ -1,19 +0,0 @@ -# dependencies -package-lock.json -node_modules/ -.snowpack/ - -# logs -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# environment variables -.env -.env.production - -# macOS-specific files -.DS_Store - -Target/ -.astro diff --git a/website/.npmignore b/website/.npmignore deleted file mode 100644 index a5a46192..00000000 --- a/website/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -.github/ -.turbo/ -Source/ -public/ -CONTRIBUTING.md diff --git a/website/CHANGELOG.md b/website/CHANGELOG.md deleted file mode 100644 index 43d7b3de..00000000 --- a/website/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -## 0.0.1 - -- Initial version diff --git a/website/Public/robots.txt b/website/Public/robots.txt deleted file mode 100644 index eb053628..00000000 --- a/website/Public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: diff --git a/website/Public/site.webmanifest b/website/Public/site.webmanifest deleted file mode 100644 index 6ea903b2..00000000 --- a/website/Public/site.webmanifest +++ /dev/null @@ -1,10 +0,0 @@ -{ - "background_color": "// TODO Set the background color of the app", - "categories": [], - "display": "minimal-ui", - "name": "// TODO Use the same title as in template.html", - "orientation": "landscape", - "short_name": "// TODO Title but lowercase", - "start_url": "/", - "theme_color": "// TODO Use the same theme color from template.html" -} \ No newline at end of file diff --git a/website/README.md b/website/README.md deleted file mode 100644 index 2240773f..00000000 --- a/website/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# [astro-starter-template] 📄 - -Starter template for AstroJS. - -[astro-starter-template]: https://npmjs.org/astro-starter-template diff --git a/website/Source/Layout/Base.astro b/website/Source/Layout/Base.astro deleted file mode 100644 index 4ee5431e..00000000 --- a/website/Source/Layout/Base.astro +++ /dev/null @@ -1,56 +0,0 @@ ---- -import "@Style/Base.css"; - -// TODO Place your title and description here -const { title = "", description = "" } = Astro.props; ---- - - - - - - - - {title} - - - - - - - - - - - - - - - - - - - -
-
- -
- -
- - diff --git a/website/Source/Library/Environment.ts b/website/Source/Library/Environment.ts deleted file mode 100644 index 8993cf38..00000000 --- a/website/Source/Library/Environment.ts +++ /dev/null @@ -1,10 +0,0 @@ -import * as dotenv from "dotenv"; -import { z } from "zod"; - -dotenv.config(); - -export default z - .object({ - GH_AUTH_TOKEN: z.string().default(""), - }) - .parse(process.env); diff --git a/website/Source/Script/FIREBASE.ts b/website/Source/Script/FIREBASE.ts deleted file mode 100644 index 894d86ff..00000000 --- a/website/Source/Script/FIREBASE.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { initializeApp as Initialize } from "firebase/app"; - -Initialize({ - apiKey: "", // TODO Replace with your API key - appId: "", // TODO Replace with your app ID - authDomain: "", // TODO Replace with your auth domain - databaseURL: "", // TODO Replace with your database URL - measurementId: "", // TODO Replace with your measurement ID - messagingSenderId: "", // TODO Replace with your messaging sender ID - projectId: "", // TODO Replace with your project ID - storageBucket: "", // TODO Replace with your storage bucket -}); diff --git a/website/Source/Style/Base.css b/website/Source/Style/Base.css deleted file mode 100644 index 510ff1d5..00000000 --- a/website/Source/Style/Base.css +++ /dev/null @@ -1,4 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; -@tailwind variants; diff --git a/website/Source/Style/Global.css b/website/Source/Style/Global.css deleted file mode 100644 index 47992c48..00000000 --- a/website/Source/Style/Global.css +++ /dev/null @@ -1,24 +0,0 @@ -html { - -webkit-tap-highlight-color: transparent; -} - -html, -body { - height: 100%; -} - -body { - @apply flex - flex-grow - flex-col - antialiased - dark:bg-black - dark:text-white - sm:subpixel-antialiased; -} - -img { - @apply inline-block - select-none - outline-none; -} diff --git a/website/Source/pages/index.astro b/website/Source/pages/index.astro deleted file mode 100644 index 7bc75b93..00000000 --- a/website/Source/pages/index.astro +++ /dev/null @@ -1,5 +0,0 @@ ---- -import Base from "@Layout/Base.astro"; ---- - - diff --git a/website/astro.config.ts b/website/astro.config.ts deleted file mode 100644 index abd4cefc..00000000 --- a/website/astro.config.ts +++ /dev/null @@ -1,33 +0,0 @@ -import PreFetch from "@astrojs/prefetch"; -import SiteMap from "@astrojs/sitemap"; -import Compress from "astro-compress"; -import Critters from "astro-critters"; -import ROME from "astro-rome"; -import { defineConfig } from "astro/config"; -import Worker from "astrojs-service-worker"; - -export default defineConfig({ - srcDir: "./Source", - publicDir: "./Public", - outDir: "./Target", - // TODO Place your site URL here - // site: "", - experimental: { - assets: true, - viewTransitions: true, - }, - compressHTML: true, - integrations: [ - import.meta.env.MODE === "production" ? Worker() : null, - SiteMap(), - Critters({ Logger: 1 }), - PreFetch(), - ROME({ Logger: 1 }), - Compress({ Logger: 1 }), - ], - vite: { - build: { - sourcemap: true, - }, - }, -}); diff --git a/website/package.json b/website/package.json deleted file mode 100644 index c2461191..00000000 --- a/website/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "syclone-web", - "version": "2.0.0", - "private": false, - "description": "", - "keywords": [ - "astro", - "starter" - ], - "homepage": "https://github.com/NikolaRHristov/Syclone#readme", - "bugs": { - "url": "https://github.com/NikolaRHristov/Syclone/issues" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/NikolaRHristov/Syclone.git", - "directory": "website" - }, - "scripts": { - "build": "astro check && astro build", - "start": "astro dev" - }, - "devDependencies": { - "@astrojs/prefetch": "0.3.0", - "@astrojs/sitemap": "2.0.1", - "@tailwindcss/aspect-ratio": "0.4.2", - "@tailwindcss/forms": "0.5.4", - "@tailwindcss/typography": "0.5.9", - "astro": "2.10.7", - "astro-compress": "2.0.5", - "astro-critters": "2.0.4", - "astro-rome": "2.0.1", - "astrojs-service-worker": "1.0.0", - "autoprefixer": "10.4.14", - "cssnano": "6.0.1", - "cssnano-preset-advanced": "6.0.1", - "dotenv": "16.3.1", - "firebase": "10.1.0", - "postcss": "8.4.27", - "postcss-combine-duplicated-selectors": "10.0.3", - "postcss-combine-media-query": "1.0.1", - "postcss-import": "15.1.0", - "postcss-reporter": "7.0.5", - "postcss-url": "10.1.3", - "tailwindcss": "3.3.3", - "zod": "3.21.4" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/website/postcss.config.js b/website/postcss.config.js deleted file mode 100644 index 569db63d..00000000 --- a/website/postcss.config.js +++ /dev/null @@ -1,17 +0,0 @@ -// @ts-nocheck -module.exports = { - plugins: [ - require("postcss-import"), - require("postcss-url"), - require("tailwindcss/nesting"), - require("tailwindcss")("./tailwind.config.js"), - require("postcss-combine-media-query"), - require("postcss-combine-duplicated-selectors")({ - removeDuplicatedProperties: true, - removeDuplicatedValues: false, - }), - require("autoprefixer"), - require("cssnano")({ preset: "advanced" }), - require("postcss-reporter"), - ], -}; diff --git a/website/tailwind.config.js b/website/tailwind.config.js deleted file mode 100644 index c9de3266..00000000 --- a/website/tailwind.config.js +++ /dev/null @@ -1,29 +0,0 @@ -module.exports = { - content: [ - "./Public/**/*.html", - "./Source/**/*.{astro,js,jsx,ts,tsx,vue,svelte}", - ], - darkMode: "media", - theme: { - container: { - center: true, - }, - extend: { - typography: { - DEFAULT: { - css: { - a: { - "font-weight": "400", - }, - }, - }, - }, - }, - }, - variants: {}, - plugins: [ - require("@tailwindcss/forms"), - require("@tailwindcss/typography"), - require("@tailwindcss/aspect-ratio"), - ], -}; diff --git a/website/tsconfig.json b/website/tsconfig.json deleted file mode 100644 index 51baa8b4..00000000 --- a/website/tsconfig.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": "./", - "moduleResolution": "bundler", - "paths": { - "@Asset/*": ["Source/Asset/*"], - "@Component/*": ["Source/Component/*"], - "@Layout/*": ["Source/Layout/*"], - "@Library/*": ["Source/Library/*"], - "@Option/*": ["Source/Option/*"], - "@Page/*": ["Source/pages/*"], - "@Script/*": ["Source/Script/*"], - "@Style/*": ["Source/Style/*"] - }, - "types": ["astro/client", "astro/client-image", "astro/env"] - }, - "extends": "syclone/Source/Configuration/TypeScript", -} From d94762782cff3b2fd1bc50a0a277af4f00fc03b4 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 13 Aug 2023 07:30:46 +0300 Subject: [PATCH 22/22] squash! --- .github/workflows/Node.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/Node.yml b/.github/workflows/Node.yml index 92403296..ef3f64c8 100644 --- a/.github/workflows/Node.yml +++ b/.github/workflows/Node.yml @@ -91,20 +91,3 @@ jobs: with: name: .-NPM-Node-${{ matrix.node-version }}-Target path: ./Target - - - uses: actions/setup-node@v3.7.0 - with: - node-version: ${{ matrix.node-version }} - cache: "pnpm" - cache-dependency-path: ./website/pnpm-lock.yaml - - - run: pnpm install - working-directory: ./website - - - run: pnpm run prepublishOnly - working-directory: ./website - - - uses: actions/upload-artifact@v3.1.2 - with: - name: .-website-Node-${{ matrix.node-version }}-Target - path: ./website/Target