Skip to content

Commit 9fd0925

Browse files
committed
Revert web workflow example publishing
The webbased example uses a mock file storage so there is no real purpose in publishing it as its not really reusable
1 parent fd9ae05 commit 9fd0925

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

examples/workflow-server/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
"node.d.ts",
4545
"browser.d.ts",
4646
"browser.js",
47-
"bundle/wf-glsp-server-node.js",
48-
"bundle/wf-glsp-server-webworker.js"
47+
"bundle/wf-glsp-server-node.js"
4948
],
5049
"scripts": {
5150
"build": "tsc -b && yarn bundle",
@@ -55,7 +54,6 @@
5554
"lint": "eslint --ext .ts,.tsx ./src",
5655
"lint:ci": "yarn lint -o eslint.xml -f checkstyle",
5756
"prepare": "yarn clean && yarn build",
58-
"prepublish": "yarn bundle && yarn bundle:browser",
5957
"start": "node --enable-source-maps bundle/wf-glsp-server-node.js --port 5007",
6058
"start:websocket": "node --enable-source-maps bundle/wf-glsp-server-node.js -w --port 8081",
6159
"watch": "tsc -w"

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
"lint": "lerna run lint",
1717
"lint:ci": "lerna run lint:ci",
1818
"prepare": "lerna run prepare",
19-
"prepublish": "lerna run prepublish",
20-
"publish:latest": "yarn prepublish && lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
21-
"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",
19+
"publish:latest": "lerna publish from-git --no-git-reset --no-git-tag-version --no-verify-access --no-push",
20+
"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",
2221
"publish:prepare": "lerna version --ignore-scripts --yes --no-push",
2322
"start": "yarn --cwd examples/workflow-server start",
2423
"start:websocket": "yarn --cwd examples/workflow-server start:websocket",

packages/layout-elk/src/di.config.spec.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@
1313
*
1414
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
1515
********************************************************************************/
16-
import { DefaultModelState, GGraph, GModelElementConstructor, ModelState } from '@eclipse-glsp/server';
17-
import { StubDiagramConfiguration } from '@eclipse-glsp/server/lib/common/test/mock-util';
16+
import {
17+
DefaultModelState,
18+
DiagramConfiguration,
19+
EdgeTypeHint,
20+
GGraph,
21+
GModelElementConstructor,
22+
ModelState,
23+
ServerLayoutKind,
24+
ShapeTypeHint
25+
} from '@eclipse-glsp/server';
1826
import { expect } from 'chai';
1927
import { Container, ContainerModule, injectable } from 'inversify';
2028
import * as sinon from 'sinon';
@@ -28,6 +36,20 @@ class CustomLayoutConfigurator extends AbstractLayoutConfigurator {}
2836
@injectable()
2937
class CustomElementFilter extends DefaultElementFilter {}
3038

39+
class StubDiagramConfiguration implements DiagramConfiguration {
40+
typeMapping = new Map<string, GModelElementConstructor>();
41+
42+
shapeTypeHints: ShapeTypeHint[] = [];
43+
44+
edgeTypeHints: EdgeTypeHint[] = [];
45+
46+
layoutKind = ServerLayoutKind.NONE;
47+
48+
needsClientLayout = true;
49+
50+
animatedUpdate = true;
51+
}
52+
3153
describe('test configureELKLayoutModule', () => {
3254
const sandbox = sinon.createSandbox();
3355
const mockDiagramConfiguration = new StubDiagramConfiguration();

0 commit comments

Comments
 (0)