Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/migrate-to-structurer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@platforma-open/milaboratories.sequence-embeddings.model': patch
'@platforma-open/milaboratories.sequence-embeddings.ui': patch
'@platforma-open/milaboratories.sequence-embeddings.workflow': patch
'@platforma-open/milaboratories.sequence-embeddings.software': patch
---

Migrate block onto the structurer (full SDK upgrade): block-tools 2.11.0, model/ui-vue/test 1.79.14, workflow-tengo 6.6.3. Adopts the canonical tool-managed layout (tsconfig, oxlint/oxfmt, turbo, block index, CI workflows, upgrade-sdk script).
22 changes: 6 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,45 @@ on:
workflow_dispatch: {}
jobs:
init:
if: github.repository != 'milaboratory/platforma-sequence-embeddings'
runs-on: ubuntu-latest
steps:
- uses: milaboratory/github-ci/actions/context/init@v4
with:
version-canonize: false
branch-versioning: main
run:
if: github.repository != 'milaboratory/platforma-sequence-embeddings'
needs:
- init

uses: milaboratory/github-ci/.github/workflows/node-simple-pnpm.yaml@v4
with:
app-name: 'Block: sequence-embeddings'
app-name: 'Block: Sequence Embeddings'
app-name-slug: 'block-sequence-embeddings'

node-version: '20.x'
build-script-name: 'build'
pnpm-recursive-build: false

test: false
test: true
test-script-name: 'test'
pnpm-recursive-tests: false
team-id: 'ciplopen'

publish-to-public: 'true'
package-path: 'block'
publish-to-public: true
create-tag: true
create-tag: 'true'

npmrc-config: |
{
"registries": {
"https://registry.npmjs.org/": {
"scopes": ["milaboratories", "platforma-open", "platforma-sdk"],
"scopes": ["milaboratories", "platforma-sdk", "platforma-open"],
"tokenVar": "NPMJS_TOKEN"
},
"https://npm.pkg.github.com/": {
"scopes": ["milaboratory"],
"tokenVar": "NODE_AUTH_TOKEN"
}
}
}

secrets:
env: |
{ "PL_LICENSE": ${{ toJSON(secrets.MI_LICENSE) }},
"MI_LICENSE": ${{ toJSON(secrets.MI_LICENSE) }},

"NPMJS_TOKEN": ${{ toJSON(secrets.NPMJS_TOKEN) }},
"PL_CI_TEST_USER": ${{ toJSON(secrets.PL_CI_TEST_USER) }},
"PL_CI_TEST_PASSWORD": ${{ toJSON(secrets.PL_CI_TEST_PASSWORD) }},
Expand All @@ -70,8 +60,8 @@ jobs:
"QUAY_USERNAME": ${{ toJSON(secrets.QUAY_USERNAME) }},
"QUAY_ROBOT_TOKEN": ${{ toJSON(secrets.QUAY_ROBOT_TOKEN) }} }

SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_BLOCKS_CI_CHANNEL }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

GH_ZEN_APP_ID: ${{ secrets.GH_ZEN_APP_ID }}
GH_ZEN_APP_PRIVATE_KEY: ${{ secrets.GH_ZEN_APP_PRIVATE_KEY }}
6 changes: 2 additions & 4 deletions .github/workflows/mark-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@ on:
workflow_dispatch: {}
jobs:
init:
if: github.repository != 'milaboratory/platforma-sequence-embeddings'
runs-on: ubuntu-latest
steps:
- uses: milaboratory/github-ci/actions/context/init@v4
with:
version-canonize: false
branch-versioning: main
run:
if: github.repository != 'milaboratory/platforma-sequence-embeddings'
needs:
- init
uses: milaboratory/github-ci/.github/workflows/block-mark-stable.yaml@v4
with:
app-name: 'Block: sequence-embeddings - Mark Stable'
app-name: 'Block: Sequence Embeddings - Mark Stable'
node-version: '20.x'
npmrc-config: |
{
Expand All @@ -32,5 +30,5 @@ jobs:
{ "NPMJS_TOKEN": ${{ toJSON(secrets.NPMJS_TOKEN) }},
"AWS_CI_IAM_MONOREPO_SIMPLE_ROLE": ${{ toJSON(secrets.AWS_CI_IAM_MONOREPO_SIMPLE_ROLE) }} }

SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_BLOCKS_CI_CHANNEL }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
7 changes: 0 additions & 7 deletions .prettierrc

This file was deleted.

1 change: 1 addition & 0 deletions .structure
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1}
6 changes: 6 additions & 0 deletions block/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare const blockSpec: {
type: "dev-v2";
folder: string;
};

export { blockSpec };
8 changes: 8 additions & 0 deletions block/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const blockSpec = {
type: "dev-v2",
folder: __dirname,
};

module.exports = {
blockSpec,
};
25 changes: 13 additions & 12 deletions block/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
{
"name": "@platforma-open/milaboratories.sequence-embeddings",
"version": "1.1.0",
"files": [
"index.d.ts",
"index.js"
],
"scripts": {
"build": "shx rm -rf ./block-pack && block-tools pack",
"mark-stable": "block-tools mark-stable -r 's3://milab-euce1-prod-pkgs-s3-block-registry/pub/releases/?region=eu-central-1'",
"prepublishOnly": "block-tools pack && block-tools publish -r 's3://milab-euce1-prod-pkgs-s3-block-registry/pub/releases/?region=eu-central-1'",
"do-pack": "shx rm -f *.tgz && block-tools pack && pnpm pack && shx mv *.tgz package.tgz"
},
"files": [
"index.d.ts",
"index.js"
],
"dependencies": {
"@platforma-sdk/model": "catalog:",
"@platforma-open/milaboratories.sequence-embeddings.workflow": "workspace:*",
"@platforma-open/milaboratories.sequence-embeddings.model": "workspace:*",
"@platforma-open/milaboratories.sequence-embeddings.ui": "workspace:*"
"@platforma-open/milaboratories.sequence-embeddings.ui": "workspace:*",
"@platforma-open/milaboratories.sequence-embeddings.workflow": "workspace:*",
"@platforma-sdk/model": "catalog:"
},
"devDependencies": {
"@platforma-sdk/block-tools": "catalog:",
"shx": "catalog:"
},
"packageManager": "pnpm@9.12.0",
"block": {
"components": {
"workflow": "@platforma-open/milaboratories.sequence-embeddings.workflow/dist/tengo/tpl/main.plj.gz",
Expand Down Expand Up @@ -47,9 +52,5 @@
"logo": "file:../logos/organization-logo.png"
}
}
},
"devDependencies": {
"@platforma-sdk/block-tools": "catalog:"
},
"packageManager": "pnpm@9.14.4"
}
}
3 changes: 2 additions & 1 deletion model/.oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"ignorePatterns": ["dist", "CHANGELOG.md"]
"extends": ["node_modules/@milaboratories/ts-builder/configs/oxfmt.json"],
"ignorePatterns": ["dist", "coverage", "CHANGELOG.md"]
}
3 changes: 2 additions & 1 deletion model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.1.0",
"description": "Block model",
"type": "module",
"main": "dist/index.js",
"main": "dist/index.cjs",
"module": "dist/index.js",
Comment thread
julenmendieta marked this conversation as resolved.
"types": "dist/index.d.ts",
"exports": {
".": {
Expand Down
10 changes: 2 additions & 8 deletions model/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"extends": "@milaboratories/ts-configs/tsconfig.node.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
"extends": "@milaboratories/ts-configs/block/model",
"include": ["src/**/*"]
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
"build": "turbo run build",
"build:dev": "env PL_PKG_DEV=local turbo run build",
"build:dev-remote": "env PL_PKG_DEV=local PL_DOCKER_BUILD=1 PL_DOCKER_AUTOPUSH=1 turbo run build",
"test": "env PL_PKG_DEV=local turbo run test --concurrency 1 --env-mode=loose",
"test": "env PL_PKG_DEV=local turbo run test --concurrency 1",
"test:dry-run": "env PL_PKG_DEV=local turbo run test --dry-run=json",
"mark-stable": "turbo run mark-stable",
"watch": "turbo watch build",
"changeset": "changeset",
"version-packages": "changeset version",
"update-sdk": "block-tools update-deps"
"update-sdk": "block-tools structure refresh --update-deps-only",
"do-pack": "turbo run do-pack",
"upgrade-sdk": "block-tools structure refresh --update-deps-only && pnpm i && block-tools structure refresh && pnpm i && pnpm fmt"
},
"devDependencies": {
"@changesets/cli": "catalog:",
Expand All @@ -28,5 +30,5 @@
"oxfmt": "*",
"oxlint": "*"
},
"packageManager": "pnpm@9.14.4"
"packageManager": "pnpm@9.12.0"
Comment thread
julenmendieta marked this conversation as resolved.
}
Loading
Loading