Skip to content
Open
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
19 changes: 6 additions & 13 deletions toolbox/fdc3-conformance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,27 @@
"license": "Apache-2.0",
"scripts": {
"copy": "shx mkdir -p ./dist && shx cp -R static/* ./dist",
"build": "webpack build && npm run copy",
"build": "vite build && npm run copy",
"serve": "npx http-server ./dist -p 3001 -c-1",
"dev": "npm run clean && npm run build && npm run serve",
"clean": "rimraf dist"
},
"dependencies": {
"@finos/fdc3": "2.2.2-beta.1",
"buffer": "^6.0.3",
"chai": "^4.3.6",
"mocha": "^10.0.0",
"process": "^0.11.10",
"source-map-support": "^0.5.21",
"stream-browserify": "^3.0.0",
"util": "^0.12.4",
"window": "^1.0.0"
"source-map-support": "^0.5.21"
},
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/mocha": "^10.0.10",
"css-loader": "^6.7.2",
"http-server": "^14.1.1",
"prettier": "3.4.1",
"replace-in-file": "^6.3.5",
"rimraf": "^5.0.0",
"shx": "^0.3.4",
"style-loader": "^3.3.1",
"ts-loader": "^9.2.7",
"typescript": "^5.6.3",
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2"
"vite": "^6.4.1",
"vite-plugin-css-injected-by-js": "^3.5.2",
"vite-plugin-node-polyfills": "^0.23.0"
}
}
6 changes: 2 additions & 4 deletions toolbox/fdc3-conformance/src/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import { getAgent } from '@finos/fdc3';
import { getPackMembers, getPackNames, executeTestsInBrowser, executeManualTestsInBrowser } from './testSuite';
import { ProgressReporter } from './progressReporter';

// eslint-disable-next-line @typescript-eslint/no-require-imports
require('mocha/mocha.css');
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('source-map-support/browser-source-map-support.js');
import 'mocha/mocha.css';
import 'source-map-support/browser-source-map-support.js';

mocha.setup('bdd');
mocha.reporter(ProgressReporter);
Expand Down
6 changes: 1 addition & 5 deletions toolbox/fdc3-conformance/static/apps/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@
i.e. It should not fail to raise the intent or resolve it to multiple applications.</p>
</div>
<p id="context"></p>
<script src="../../lib/fdc3-compliance.js"></script>
<script>
// no idea why but this doesn't seem to work when added in the above script.
sourceMapSupport.install();
</script>
<script type="module" src="../../lib/fdc3-compliance.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p>Conformance Framework Basic Mock app</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>

<script src="../../lib/basic.js"></script>
<script type="module" src="../../lib/basic.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/channels/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p>This app is only used by the conformance framework for test purposes</p>
<p></p>

<script src="../../lib/channel.js"></script>
<script type="module" src="../../lib/channel.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/general/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<p>Conformance Framework Mock App</p>
<p>This app is only used by the conformance framework for test purposes.</p>

<script src="../../lib/general.js"></script>
<script type="module" src="../../lib/general.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-a/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<p>Conformance Framework Mock Intent App A</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>
<script src="../../lib/intent-a.js"></script>
<script type="module" src="../../lib/intent-a.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-b/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<p>Conformance Framework Mock Intent App B</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>
<script src="../../lib/intent-b.js"></script>
<script type="module" src="../../lib/intent-b.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-c/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p>Conformance Framework Mock Intent App C</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>

<script src="../../lib/intent-c.js"></script>
<script type="module" src="../../lib/intent-c.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-e/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<p>Conformance Framework Mock Intent App E</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>
<script src="../../lib/intent-e.js"></script>
<script type="module" src="../../lib/intent-e.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-f/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<p>Conformance Framework Mock Intent App F</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>
<script src="../../lib/intent-f.js"></script>
<script type="module" src="../../lib/intent-f.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-g/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<p>Conformance Framework Mock Intent App G</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>
<script src="../../lib/intent-g.js"></script>
<script type="module" src="../../lib/intent-g.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-h/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<p>Conformance Framework Mock Intent App H</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>
<script src="../../lib/intent-h.js"></script>
<script type="module" src="../../lib/intent-h.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-i/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<p>Conformance Framework Mock Intent App I</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>
<script src="../../lib/intent-i.js"></script>
<script type="module" src="../../lib/intent-i.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-j/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<p>Conformance Framework Mock Intent App J</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>
<script src="../../lib/intent-j.js"></script>
<script type="module" src="../../lib/intent-j.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/intent-k/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<p>Conformance Framework Mock Intent App K</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>
<script src="../../lib/intent-k.js"></script>
<script type="module" src="../../lib/intent-k.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/metadata/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p>Conformance Framework Metadata App</p>
<p>This app is only used by the conformance framework for intent test purposes.</p>

<script src="../../lib/metadata.js"></script>
<script type="module" src="../../lib/metadata.js"></script>

</body>

Expand Down
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/open-a/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<p>Conformance Framework Open App A</p>
<p>This app is only used by the conformance framework for test purposes.</p>

<script src="../../lib/open-a.js"></script>
<script type="module" src="../../lib/open-a.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion toolbox/fdc3-conformance/static/apps/open-b/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
<p>Conformance Framework Open App B</p>
<p>This app is only used by the conformance framework for test purposes.</p>
<script src="../../lib/open-b.js"></script>
<script type="module" src="../../lib/open-b.js"></script>

</body>
</html>
40 changes: 40 additions & 0 deletions toolbox/fdc3-conformance/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/**
* SPDX-License-Identifier: Apache-2.0
* Copyright FINOS FDC3 contributors - see NOTICE file
*/
import { defineConfig } from 'vite';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';

export default defineConfig({
build: {
outDir: 'dist/lib',
rollupOptions: {
input: {
'fdc3-compliance': './src/test/index.ts',
channel: './src/mock/channel.ts',
general: './src/mock/general.ts',
metadata: './src/mock/metadata.ts',
'intent-a': './src/mock/intent-a.ts',
'intent-b': './src/mock/intent-b.ts',
'intent-c': './src/mock/intent-c.ts',
'intent-d': './src/mock/intent-d.ts',
'intent-e': './src/mock/intent-e.ts',
'intent-f': './src/mock/intent-f.ts',
'intent-g': './src/mock/intent-g.ts',
'intent-h': './src/mock/intent-h.ts',
'intent-i': './src/mock/intent-i.ts',
'intent-j': './src/mock/intent-j.ts',
'intent-k': './src/mock/intent-k.ts',
basic: './src/mock/basic.ts',
'open-a': './src/mock/open-a.ts',
},
output: {
entryFileNames: '[name].js',
chunkFileNames: '[name].js',
format: 'es',
},
},
},
plugins: [nodePolyfills(), cssInjectedByJsPlugin()],
});
70 changes: 0 additions & 70 deletions toolbox/fdc3-conformance/webpack.config.js

This file was deleted.

Loading