Skip to content

Commit

Permalink
chore: output directory is now dist
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Dec 23, 2023
1 parent 4d59298 commit 48b247c
Show file tree
Hide file tree
Showing 14 changed files with 6,866 additions and 4,783 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cloudflare-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
REPOSITORY: ${{ github.repository }}
PRODUCTION_BRANCH: "development"
OUTPUT_DIRECTORY: "static"
PRODUCTION_BRANCH: "main"
OUTPUT_DIRECTORY: "dist"
run: |
IFS='/' read -ra fields <<< "$REPOSITORY"
projectName="${fields[1]}"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Conventional Commits
on:
pull_request:
push:
branches: [development]

jobs:
conventional-commits:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,5 @@ dist

.dev.vars
.wrangler/
.pnp.loader.mjs
.pnp.cjs
2 changes: 1 addition & 1 deletion build/esbuild-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const esBuildContext: esbuild.BuildOptions = {
".ttf": "dataurl",
".svg": "dataurl",
},
outdir: "static/dist",
outdir: "dist",
};

esbuild
Expand Down
2 changes: 1 addition & 1 deletion build/esbuild-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { esBuildContext } from "./esbuild-build";
export async function server() {
const _context = await esbuild.context(esBuildContext);
const { port } = await _context.serve({
servedir: "static",
servedir: "dist",
port: 8080,
});
console.log(`http://localhost:${port}`);
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
"devDependencies": {
"@cloudflare/workers-types": "^4.20231121.0",
"@commitlint/cli": "^18.4.3",
"typescript": "^5.0.4",
"@commitlint/config-conventional": "^18.4.3",
"wrangler": "^3.0.0",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
Expand All @@ -50,11 +48,13 @@
"lint-staged": "^15.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.1.0",
"tsx": "^4.6.2"
"tsx": "^4.6.2",
"typescript": "^5.0.4",
"wrangler": "^3.0.0"
},
"lint-staged": {
"*.ts": [
"yarn prettier --write",
"prettier --write",
"eslint --fix"
]
},
Expand Down
Binary file removed static/fonts/ubiquity-nova-standard.eot
Binary file not shown.
Binary file removed static/fonts/ubiquity-nova-standard.ttf
Binary file not shown.
Binary file removed static/fonts/ubiquity-nova-standard.woff
Binary file not shown.
13 changes: 0 additions & 13 deletions static/index.html

This file was deleted.

10 changes: 0 additions & 10 deletions static/main.ts

This file was deleted.

16 changes: 0 additions & 16 deletions static/style.css

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
// "outDir": "./", /* Specify an output folder for all emitted files. */
"outDir": "./dist", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
"noEmit": true /* Disable emitting files from a compilation. */,
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
Expand Down
Loading

0 comments on commit 48b247c

Please sign in to comment.