mirror of
https://github.com/morten-olsen/bob.git
synced 2026-02-08 01:46:29 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f485f90e4 | ||
|
|
b01ce539b7 |
31
.github/workflows/release-package.yml
vendored
31
.github/workflows/release-package.yml
vendored
@@ -33,9 +33,9 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
pnpm install
|
pnpm install
|
||||||
pnpm run build
|
pnpm run build
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
env:
|
env:
|
||||||
ASSET_URL: https://mortenolsen.pro/bob
|
ASSET_URL: https://mortenolsen.pro/bob
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: lib
|
name: lib
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
@@ -44,6 +44,12 @@ jobs:
|
|||||||
packages/*/package.json
|
packages/*/package.json
|
||||||
package.json
|
package.json
|
||||||
README.md
|
README.md
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: web
|
||||||
|
retention-days: 5
|
||||||
|
path: |
|
||||||
|
packages/playground/dist
|
||||||
update-release-draft:
|
update-release-draft:
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
needs: build
|
needs: build
|
||||||
@@ -64,21 +70,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build, update-release-draft]
|
needs: [build, update-release-draft]
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
artifact_name: web
|
||||||
- uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: lib
|
|
||||||
path: ./
|
|
||||||
- name: Deploy 🚀
|
|
||||||
uses: JamesIves/github-pages-deploy-action@4.0.0
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
branch: gh-pages
|
|
||||||
folder: packages/playground/dist
|
|
||||||
release-npm:
|
release-npm:
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
],
|
],
|
||||||
"private": false,
|
"private": false,
|
||||||
"main": "./dist/cjs/index.js",
|
"main": "./dist/cjs/index.js",
|
||||||
"name": "bob-the-algorithm",
|
"name": "@bob-the-algorithm/core",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --build configs/tsconfig.libs.json"
|
"build": "tsc --build configs/tsconfig.libs.json"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bob-the-algorithm": "workspace:^",
|
"@bob-the-algorithm/core": "workspace:^",
|
||||||
"date-fns": "^2.30.0",
|
"date-fns": "^2.30.0",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0"
|
"react-dom": "^18.2.0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { calulation, plugins } from 'bob-the-algorithm';
|
import { calulation, plugins } from '@bob-the-algorithm/core';
|
||||||
import { createWorker } from '../../features/runner/worker';
|
import { createWorker } from '../../features/runner/worker';
|
||||||
import { convertResult } from '../../utils/graph';
|
import { convertResult } from '../../utils/graph';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { GraphNode } from 'bob-the-algorithm';
|
import { GraphNode } from '@bob-the-algorithm/core';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { ConvertedResult } from '../../utils/graph';
|
import { ConvertedResult } from '../../utils/graph';
|
||||||
import { format } from 'date-fns';
|
import { format } from 'date-fns';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { CalulationResult } from 'bob-the-algorithm';
|
import { CalulationResult } from '@bob-the-algorithm/core';
|
||||||
|
|
||||||
function msToHMS(ms: number) {
|
function msToHMS(ms: number) {
|
||||||
// 1- Convert to seconds:
|
// 1- Convert to seconds:
|
||||||
|
|||||||
2
pnpm-lock.yaml
generated
2
pnpm-lock.yaml
generated
@@ -30,7 +30,7 @@ importers:
|
|||||||
|
|
||||||
packages/playground:
|
packages/playground:
|
||||||
dependencies:
|
dependencies:
|
||||||
bob-the-algorithm:
|
'@bob-the-algorithm/core':
|
||||||
specifier: workspace:^
|
specifier: workspace:^
|
||||||
version: link:../algorithm
|
version: link:../algorithm
|
||||||
date-fns:
|
date-fns:
|
||||||
|
|||||||
Reference in New Issue
Block a user