Skip to content

Commit

Permalink
Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenhuyn committed Apr 27, 2023
1 parent 4e4a537 commit 3a3527b
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 40 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ jobs:
- name: wasm-pack
run: wasm-pack build --target web --out-dir app/pkg

- name: build app
- name: install dependencies
run: |
cd app
npm ci
npm run build
cd app && npm ci
- name: build app
run: npm run build

- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
Expand Down
25 changes: 0 additions & 25 deletions app/package-lock.json

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

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "test-lit",
"homepage": "https://www.stevenhuyn.com/hello-wasm/",
"private": true,
"version": "0.0.0",
"type": "module",
"license": "MIT",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down
2 changes: 1 addition & 1 deletion app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"experimentalDecorators": true,
"useDefineForClassFields": false,
"module": "ESNext",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"skipLibCheck": true,

/* Bundler mode */
Expand Down
26 changes: 26 additions & 0 deletions app/types/components/cubeway-simulation.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { LitElement } from "lit";
/**
* An example element.
*
* @slot - This element has a slot
* @csspart button - The button
*/
export declare class CubewaySimulation extends LitElement {
/**
* Copy for the read the docs hint.
*/
docsHint: string;
/**
* The number of times the button has been clicked.
*/
count: number;
connectedCallback(): void;
render(): import("lit-html").TemplateResult<1>;
private _onClick;
static styles: import("lit").CSSResult;
}
declare global {
interface HTMLElementTagNameMap {
"cubeway-simulation": CubewaySimulation;
}
}
1 change: 1 addition & 0 deletions app/types/components/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { CubewaySimulation } from "./cubeway-simulation";
1 change: 1 addition & 0 deletions app/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
2 changes: 1 addition & 1 deletion app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "vite";

// https://vitejs.dev/config/
export default defineConfig({
base: "/hello-wasm",
base: "/web-cubeway",
plugins: [],
// https://vitejs.dev/config/server-options.html#server-fs-allow
server: {
Expand Down
1 change: 1 addition & 0 deletions cubeway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
edition = "2021"
description = "A sample project with wasm-pack"
repository = "https://github.com/stevenhuyn/hello-wasm"
license = "MIT"

[lib]
name = "cubeway"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"name": "3d-conway",
"name": "web-cubeway",
"version": "1.0.0",
"scripts": {
"dev": "concurrently \"cd cubeway && cargo watch -- wasm-pack build --target web\" \"cd app && npm run dev\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/stevenhuyn/hello-wasm.git"
"dev": "concurrently \"cd cubeway && cargo watch -- wasm-pack build --target web\" \"cd app && npm run dev\"",
"build": "concurrently \"cd cubeway && wasm-pack build --target web\" \"cd app && npm run build\""
},
"keywords": [],
"author": "",
"license": "ISC",
"license": "MIT",
"devDependencies": {
"concurrently": "^8.0.1"
}
Expand Down

0 comments on commit 3a3527b

Please sign in to comment.