Skip to content

Commit

Permalink
general cleanup 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
justintaylor-dev committed Sep 30, 2024
1 parent 3d0afb7 commit 1329fec
Show file tree
Hide file tree
Showing 15 changed files with 326 additions and 246 deletions.
4 changes: 2 additions & 2 deletions create-bolt-express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-bolt-express",
"version": "0.0.7",
"version": "0.0.8",
"license": "MIT",
"bin": {
"create-bolt-express": "dist/index.js"
Expand Down Expand Up @@ -29,7 +29,7 @@
"@clack/prompts": "^0.7.0",
"@types/prettier": "^3.0.0",
"@types/resolve-dir": "^0.0.0",
"bolt-express": "^0.0.7",
"bolt-express": "^0.0.8",
"cross-env": "^7.0.3",
"execa": "^5.1.1",
"fast-glob": "^3.3.2",
Expand Down
8 changes: 4 additions & 4 deletions create-bolt-express/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1069,10 +1069,10 @@ base64-js@^1.3.1:
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==

bolt-express@^0.0.7:
version "0.0.7"
resolved "https://registry.yarnpkg.com/bolt-express/-/bolt-express-0.0.7.tgz#4190ccf4ebe196ee7c073471f186864fe0989059"
integrity sha512-6eSDJXTGIGcmnmg1A0BdN1GwN1CyEtkyDLO7A2UGFumCZt3c84IQvBxp6bMqze5cZSz5AK9MliaMAAEk0WNy6Q==
bolt-express@^0.0.8:
version "0.0.8"
resolved "https://registry.yarnpkg.com/bolt-express/-/bolt-express-0.0.8.tgz#6a4c5aa9ddaced7a5e424ae6b40e9755ac7525d4"
integrity sha512-o3+1q1ZstA0NJ/51qKv0gfwU9sk38S3JaaVvkkF8dpfTiKUM++Jk+APycDhUNKkL5FVHldkgjSHK6LqfjufYyw==
dependencies:
react "^18.3.1"
react-dom "^18.3.1"
Expand Down
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bolt Express</title>
<script>
console.log("hello world UI");
</script>
</head>
<body>
<div id="app"></div>
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "bolt-express",
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"scripts": {
"dev": "vite build --mode staging && run-p devmain serve_copy",
"build": "vite build --mode build",
"serve": "ccweb-add-on-scripts start --use \"vite build --mode build\" --src=dummy",
"serve_copy": "ccweb-add-on-scripts start --use \"vite build --mode copy\" --src=src-code",
"serve_copy": "ccweb-add-on-scripts start --use \"cross-env ACTION=copy vite build --mode copy\" --src=src-code",
"devmain": "cross-env MODE=dev vite --mode dev",
"devcode": "vite build --watch --mode dev --config vite.config.code.ts",
"buildcode": "vite build --config vite.config.code.ts",
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json",
"check": "svelte-check --tsconfig ./tsconfig.json",
"dep": "cross-env ACTION=dependencyCheck vite",
"zip": "cross-env MODE=zip vite build"
},
Expand All @@ -26,13 +26,13 @@
"cross-env": "^7.0.3",
"npm-run-all": "^4.1.5",
"parallel": "^1.2.0",
"sass": "^1.75.0",
"sass": "^1.79.4",
"svelte": "^4.2.18",
"svelte-check": "^3.8.5",
"tslib": "^2.6.3",
"typescript": "^5.5.3",
"vite-express-plugin": "^0.0.5",
"vite": "^5.4.1"
"vite": "^5.4.8",
"vite-express-plugin": "^0.0.8"
},
"dependencies": {
"react": "^18.3.1",
Expand Down
5 changes: 2 additions & 3 deletions package.react.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"devmain": "cross-env MODE=dev vite --mode dev",
"devcode": "vite build --watch --mode dev --config vite.config.code.ts",
"buildcode": "vite build --config vite.config.code.ts",
"dep": "cross-env ACTION=dependencyCheck vite",
"zip": "cross-env MODE=zip vite build"
},
"devDependencies": {
Expand All @@ -24,10 +23,10 @@
"parallel": "^1.2.0",
"tslib": "^2.6.3",
"typescript": "^5.5.3",
"vite": "^5.4.1",
"vite": "^5.4.8",
"@vitejs/plugin-react": "^4.3.1",
"vite-express-plugin": "^0.0.5",
"sass": "^1.75.0"
"sass": "^1.79.4"
},
"dependencies": {
"react": "^18.3.1",
Expand Down
7 changes: 3 additions & 4 deletions package.svelte.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"devmain": "cross-env MODE=dev vite --mode dev",
"devcode": "vite build --watch --mode dev --config vite.config.code.ts",
"buildcode": "vite build --config vite.config.code.ts",
"check": "svelte-check --tsconfig ./tsconfig.json && tsc -p tsconfig.node.json",
"dep": "cross-env ACTION=dependencyCheck vite",
"check": "svelte-check --tsconfig ./tsconfig.json",
"zip": "cross-env MODE=zip vite build"
},
"devDependencies": {
Expand All @@ -27,9 +26,9 @@
"svelte-check": "^3.8.5",
"tslib": "^2.6.3",
"typescript": "^5.5.3",
"vite": "^5.4.1",
"vite": "^5.4.8",
"vite-express-plugin": "^0.0.5",
"sass": "^1.75.0"
"sass": "^1.79.4"
},
"dependencies": {}
}
5 changes: 2 additions & 3 deletions package.vue.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"devmain": "cross-env MODE=dev vite --mode dev",
"devcode": "vite build --watch --mode dev --config vite.config.code.ts",
"buildcode": "vite build --config vite.config.code.ts",
"dep": "cross-env ACTION=dependencyCheck vite",
"zip": "cross-env MODE=zip vite build"
},
"devDependencies": {
Expand All @@ -22,10 +21,10 @@
"parallel": "^1.2.0",
"tslib": "^2.6.3",
"typescript": "^5.5.3",
"vite": "^5.4.1",
"vite": "^5.4.8",
"@vitejs/plugin-vue": "^5.1.4",
"vite-express-plugin": "^0.0.5",
"sass": "^1.75.0"
"sass": "^1.79.4"
},
"dependencies": {
"vue": "^3.5.10"
Expand Down
6 changes: 2 additions & 4 deletions src-code/code.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// import { getStore, setStore, listenTS, dispatchTS } from "./utils/code-utils";

import addOnSandboxSdk from "add-on-sdk-document-sandbox";

import { editor, colorUtils } from "express-document-sdk";
Expand All @@ -18,8 +16,8 @@ const sandboxApi = {
Math.random(),
Math.random(),
Math.random(),
Math.random()
)
Math.random(),
),
);
rectangle.fill = rectFill;
insertionParent.children.append(rectangle);
Expand Down
15 changes: 0 additions & 15 deletions src/main.ts

This file was deleted.

8 changes: 4 additions & 4 deletions vite-express-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-express-plugin",
"version": "0.0.5",
"version": "0.0.8",
"license": "MIT",
"description": "A Vite Plugin for building Express Plugin Panels",
"main": "lib/index.js",
Expand All @@ -20,11 +20,11 @@
"typescript": "^5.4.5"
},
"devDependencies": {
"@adobe/ccweb-add-on-scripts": "^2.0.0",
"@adobe/ccweb-add-on-sdk-types": "^1.3.0",
"@types/node": "^20.14.0",
"rollup": "^4.18.0",
"vite": "^5.2.12",
"@adobe/ccweb-add-on-scripts": "^2.0.0",
"@adobe/ccweb-add-on-sdk-types": "^1.3.0"
"vite": "^5.4.8"
},
"files": [
"lib/**/*"
Expand Down
7 changes: 6 additions & 1 deletion vite-express-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,17 @@ export const expressCodePlugin: () => Plugin = () => ({
},
});

export const runAction = (opts: object, action: string) => {
export const runAction = (config: ExpressConfig, action: string) => {
if (action === "dependencyCheck") {
console.log("Checking Dependencies");
packageSync();
} else if (action === "copy") {
console.log("COPY ONLY");
fs.readdirSync(process.cwd()).forEach((file) => {
if (file.includes("config.ts.timestamp-")) {
fs.rmSync(path.join(process.cwd(), file));
}
});
fs.cpSync(".tmp", "dist", { recursive: true });
}
process.exit();
Expand Down
Loading

0 comments on commit 1329fec

Please sign in to comment.