Skip to content

Commit

Permalink
Add turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
allevo committed Feb 21, 2024
1 parent 1fe8ece commit 16a91cf
Show file tree
Hide file tree
Showing 10 changed files with 3,675 additions and 11 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]

jobs:
build:
name: Build and Test
timeout-minutes: 15
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Test
run: pnpm test
4 changes: 2 additions & 2 deletions examples/counter-domains/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "counter",
"name": "counter-domains",
"version": "1.0.0",
"description": "",
"main": "src/index.ts",
Expand Down Expand Up @@ -29,6 +29,6 @@
"vitest": "^1.2.2"
},
"dependencies": {
"seqflow-js": "link:../../packages/seqflow-js"
"seqflow-js": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"vitest": "^1.2.2"
},
"dependencies": {
"seqflow-js": "link:../../packages/seqflow-js"
"seqflow-js": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion examples/e-commerce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"vitest": "^1.2.2"
},
"dependencies": {
"seqflow-js": "link:../../packages/seqflow-js"
"seqflow-js": "workspace:*"
}
}
4 changes: 0 additions & 4 deletions examples/e-commerce/src/domains/cart/CartDomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ export class CartDomain {
}

const value = this.products.get(productId);

console.log(productId, value);

value[1] += 1;

updateLocalStorage(this.products);

this.eventTarget.dispatchEvent(
Expand Down
2 changes: 1 addition & 1 deletion examples/e-commerce/src/router.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ComponentParam, NavigationEvent } from "seqflow-js";
import { Header } from "./components/Header";
import { components } from "./domains/cart";
import { UserType } from "./domains/user";
import { Cart } from "./pages/cart";
Expand All @@ -10,6 +9,7 @@ import { Login } from "./pages/login";
import { Logout } from "./pages/logout";
import { Profile } from "./pages/profile";
import classes from "./router.module.css";
import { Header } from "./components/header";

async function NotFound({ dom: { render } }: ComponentParam) {
render(`
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"version": "0.0.1-beta.1",
"description": "",
"main": "index.js",
"scripts": {},
"scripts": {
"build": "turbo run build",
"test": "turbo run test"
},
"keywords": [],
"author": "",
"license": "MIT"
"license": "MIT",
"dependencies": {
"turbo": "^1.12.4"
}
}
Loading

0 comments on commit 16a91cf

Please sign in to comment.