Skip to content

Commit

Permalink
Revert web workflow example publishing
Browse files Browse the repository at this point in the history
The webbased example uses a mock file storage so there is no real purpose in publishing it
as its not really reusable
  • Loading branch information
tortmayr committed May 22, 2023
1 parent fd9ae05 commit 9fd0925
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
4 changes: 1 addition & 3 deletions examples/workflow-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
"node.d.ts",
"browser.d.ts",
"browser.js",
"bundle/wf-glsp-server-node.js",
"bundle/wf-glsp-server-webworker.js"
"bundle/wf-glsp-server-node.js"
],
"scripts": {
"build": "tsc -b && yarn bundle",
Expand All @@ -55,7 +54,6 @@
"lint": "eslint --ext .ts,.tsx ./src",
"lint:ci": "yarn lint -o eslint.xml -f checkstyle",
"prepare": "yarn clean && yarn build",
"prepublish": "yarn bundle && yarn bundle:browser",
"start": "node --enable-source-maps bundle/wf-glsp-server-node.js --port 5007",
"start:websocket": "node --enable-source-maps bundle/wf-glsp-server-node.js -w --port 8081",
"watch": "tsc -w"
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
"lint": "lerna run lint",
"lint:ci": "lerna run lint:ci",
"prepare": "lerna run prepare",
"prepublish": "lerna run prepublish",
"publish:latest": "yarn prepublish && lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
"publish:next": "yarn prepublish && SHA=$(git rev-parse --short HEAD) && lerna publish preminor --exact --canary --preid next.${SHA} --dist-tag next --no-git-reset --no-git-tag-version --no-push --ignore-scripts --yes --no-verify-access",
"publish:latest": "lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
"publish:next": "SHA=$(git rev-parse --short HEAD) && lerna publish preminor --exact --canary --preid next.${SHA} --dist-tag next --no-git-reset --no-git-tag-version --no-push --ignore-scripts --yes --no-verify-access",
"publish:prepare": "lerna version --ignore-scripts --yes --no-push",
"start": "yarn --cwd examples/workflow-server start",
"start:websocket": "yarn --cwd examples/workflow-server start:websocket",
Expand Down
26 changes: 24 additions & 2 deletions packages/layout-elk/src/di.config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/
import { DefaultModelState, GGraph, GModelElementConstructor, ModelState } from '@eclipse-glsp/server';
import { StubDiagramConfiguration } from '@eclipse-glsp/server/lib/common/test/mock-util';
import {
DefaultModelState,
DiagramConfiguration,
EdgeTypeHint,
GGraph,
GModelElementConstructor,
ModelState,
ServerLayoutKind,
ShapeTypeHint
} from '@eclipse-glsp/server';
import { expect } from 'chai';
import { Container, ContainerModule, injectable } from 'inversify';
import * as sinon from 'sinon';
Expand All @@ -28,6 +36,20 @@ class CustomLayoutConfigurator extends AbstractLayoutConfigurator {}
@injectable()
class CustomElementFilter extends DefaultElementFilter {}

class StubDiagramConfiguration implements DiagramConfiguration {
typeMapping = new Map<string, GModelElementConstructor>();

shapeTypeHints: ShapeTypeHint[] = [];

edgeTypeHints: EdgeTypeHint[] = [];

layoutKind = ServerLayoutKind.NONE;

needsClientLayout = true;

animatedUpdate = true;
}

describe('test configureELKLayoutModule', () => {
const sandbox = sinon.createSandbox();
const mockDiagramConfiguration = new StubDiagramConfiguration();
Expand Down

0 comments on commit 9fd0925

Please sign in to comment.