@usemosaik/plugin-smoke-test 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 mosaik-dev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Mosaik third-party plugin smoke-test fixture
2
+
3
+ This deliberately minimal package verifies the unreleased Milestone 15 project-local plugin flow.
4
+ It is not part of the Mosaik workspace and has no dependencies or build step.
5
+
6
+ When applied, it writes `mosaik-community-smoke-test.txt` in the generated project root. It supports
7
+ all five currently shipped generators so the smoke test does not depend on a particular starter.
8
+
9
+ The package intentionally does not export its package.json subpath. Successful discovery therefore
10
+ also verifies Mosaik's package-boundary fallback.
11
+
12
+ Do not treat this fixture as a production plugin or add it to `@usemosaik/cli` dependencies.
package/index.js ADDED
@@ -0,0 +1,33 @@
1
+ const metadata = {
2
+ id: "community-smoke-test",
3
+ displayName: "Community Smoke Test",
4
+ category: "testing",
5
+ version: "0.0.1",
6
+ tags: ["smoke-test", "community", "fixture"],
7
+ };
8
+
9
+ const compatibility = {
10
+ frameworks: ["react-ts", "react-js", "express-ts", "express-js", "nest-ts"],
11
+ languages: ["typescript", "javascript"],
12
+ };
13
+
14
+ const plugin = {
15
+ metadata,
16
+ compatibility,
17
+ dependencies: {},
18
+ devDependencies: {},
19
+ async install(ctx) {
20
+ await ctx.fs.writeFile(
21
+ `${ctx.targetDir}/mosaik-community-smoke-test.txt`,
22
+ "Third-party Mosaik plugin installation succeeded.\n",
23
+ );
24
+ ctx.logger.info("Added the third-party plugin smoke-test marker.");
25
+ },
26
+ async configure() {},
27
+ async cleanup(ctx) {
28
+ await ctx.fs.remove(`${ctx.targetDir}/mosaik-community-smoke-test.txt`);
29
+ },
30
+ };
31
+
32
+ export { plugin };
33
+ export default plugin;
@@ -0,0 +1,11 @@
1
+ {
2
+ "id": "community-smoke-test",
3
+ "displayName": "Community Smoke Test",
4
+ "category": "testing",
5
+ "version": "0.0.1",
6
+ "tags": [
7
+ "smoke-test",
8
+ "community",
9
+ "fixture"
10
+ ]
11
+ }
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@usemosaik/plugin-smoke-test",
3
+ "version": "0.0.1",
4
+ "description": "External plugin fixture for testing Mosaik project-local plugin discovery.",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./index.js"
8
+ },
9
+ "files": [
10
+ "index.js",
11
+ "mosaik.manifest.json",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
15
+ "mosaik": {
16
+ "type": "plugin",
17
+ "manifest": "./mosaik.manifest.json",
18
+ "entry": "./index.js"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "license": "MIT"
24
+ }