Skip to content

Commit

Permalink
0.1.4
Browse files Browse the repository at this point in the history
tsbundle@0.1.5

tsbundle@0.1.5

tsbundle@0.1.5

syclone@0.1.5
  • Loading branch information
NikolaRHristov committed Aug 13, 2023
1 parent 75aea84 commit 808e416
Show file tree
Hide file tree
Showing 47 changed files with 361 additions and 28 deletions.
8 changes: 7 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ updates:
interval: "daily"

- package-ecosystem: "npm"
directory: "/"
directory: "/NPM"
schedule:
interval: "daily"
versioning-strategy: increase

- package-ecosystem: "npm"
directory: "/website"
schedule:
interval: "daily"
versioning-strategy: increase
8 changes: 4 additions & 4 deletions .github/workflows/NPM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ 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

- 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
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 22 additions & 5 deletions .github/workflows/Node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,32 @@ 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

- 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
1 change: 0 additions & 1 deletion .npmignore → NPM/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.github/
.turbo/
CHANGELOG.md
Source/
8 changes: 8 additions & 0 deletions CHANGELOG.md → NPM/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.1.5

- Cleanup

## 0.1.4

- Renamed

## 0.1.4

- Cleanup
Expand Down
File renamed without changes.
15 changes: 7 additions & 8 deletions README.md → NPM/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# [JavaScript Build] 🧑🏻‍💻
# [Syclone] 🌀

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 syclone
```

## Usage
Expand All @@ -19,10 +18,10 @@ npm install -D -E javascriptbuild
{
"name": "my-awesome-package",
"scripts": {
"prepublishOnly": "JavaScriptBuild 'Source/**/*.ts'"
"prepublishOnly": "Syclone 'Source/**/*.ts'"
},
"dependencies": {
"javascriptbuild": "0.1.3"
"syclone": "0.1.5"
}
}
```
Expand All @@ -32,7 +31,7 @@ npm install -D -E javascriptbuild
```json
{
"scripts": {
"prepublishOnly": "JavaScriptBuild 'Source/**/*.ts' -es esbuild.ts"
"prepublishOnly": "Syclone 'Source/**/*.ts' -es esbuild.ts"
}
}
```
Expand All @@ -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
[Syclone]: https://npmjs.org/syclone
[esbuild]: https://npmjs.org/esbuild
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Source/Index.ts → NPM/Source/Index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import _JSON from "./Library/JSON.js";

try {
new Command()
.name("JavaScriptBuild")
.name("Syclone")
.version((await _JSON("../package.json", import.meta.url))?.version)
.description("Builds files")
.argument("<Files...>", "Files to build")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions NPM/Target/Index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 8 additions & 7 deletions package.json → NPM/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"name": "javascriptbuild",
"version": "0.1.4",
"name": "syclone",
"version": "0.1.5",
"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",
"esbuild"
],
"homepage": "https://github.com/NikolaRHristov/JavaScriptBuild#readme",
"homepage": "https://github.com/NikolaRHristov/Syclone#readme",
"bugs": {
"url": "https://github.com/NikolaRHristov/JavaScriptBuild/issues"
"url": "https://github.com/NikolaRHristov/Syclone/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/NikolaRHristov/JavaScriptBuild.git"
"url": "git+https://github.com/NikolaRHristov/Syclone.git",
"directory": "NPM"
},
"license": "MIT",
"type": "module",
"main": "./Target/Index.js",
"types": "./Target/Index.d.ts",
"bin": {
"JavaScriptBuild": "Target/Bin.js"
"Syclone": "Target/Bin.js"
},
"scripts": {
"prepublishOnly": "node --no-warnings --loader ts-node/esm Source/Index.ts 'Source/**/*.ts'"
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion Target/Index.js

This file was deleted.

19 changes: 19 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions website/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.github/
.turbo/
Source/
public/
CONTRIBUTING.md
3 changes: 3 additions & 0 deletions website/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.1

- Initial version
2 changes: 2 additions & 0 deletions website/Public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:
10 changes: 10 additions & 0 deletions website/Public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -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"
}
5 changes: 5 additions & 0 deletions website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# [astro-starter-template] 📄

Starter template for AstroJS.

[astro-starter-template]: https://npmjs.org/astro-starter-template
56 changes: 56 additions & 0 deletions website/Source/Layout/Base.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
import "@Style/Base.css";
// TODO Place your title and description here
const { title = "", description = "" } = Astro.props;
---

<!DOCTYPE html>
<html lang="en" class="no-js" dir="ltr">
<head>
<script>
document.documentElement.classList.remove("no-js");
document.documentElement.classList.add("js");
</script>

<!-- Meta -->
<title>{title}</title>
<meta charset="utf-8" />
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<!-- TODO Define your color theme in hex here -->
<meta name="theme-color" content="" />
<meta name="format-detection" content="telephone=no" />
<meta name="twitter:dnt" content="on" />

<!-- Links -->
<link
rel="preconnect"
href="https://fonts.googleapis.com"
crossorigin
/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="manifest"
href="/site.webmanifest"
crossorigin="use-credentials"
/>

<style is:global>
@import "@Style/Global.css";
</style>

<!-- Favicon -->
</head>
<body>
<!-- TODO Generate the ID here -->
<div id="">
<div class="grow">
<slot />
</div>
<script>
import "@Script/Firebase";
</script>
</div>
</body>
</html>
10 changes: 10 additions & 0 deletions website/Source/Library/Environment.ts
Original file line number Diff line number Diff line change
@@ -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);
12 changes: 12 additions & 0 deletions website/Source/Script/FIREBASE.ts
Original file line number Diff line number Diff line change
@@ -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
});
4 changes: 4 additions & 0 deletions website/Source/Style/Base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind variants;
24 changes: 24 additions & 0 deletions website/Source/Style/Global.css
Original file line number Diff line number Diff line change
@@ -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;
}
5 changes: 5 additions & 0 deletions website/Source/pages/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
import Base from "@Layout/Base.astro";
---

<Base />
33 changes: 33 additions & 0 deletions website/astro.config.ts
Original file line number Diff line number Diff line change
@@ -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,
},
},
});
Loading

0 comments on commit 808e416

Please sign in to comment.