@sealcode/sealgen 0.15.4 → 0.15.6

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.
@@ -93,6 +93,6 @@ describe("add route test", () => {
93
93
  if (res.status != 200) {
94
94
  throw new Error("url generated by add-route exists but doesnt return 200");
95
95
  }
96
- });
96
+ }).timeout(100 * 1e3);
97
97
  });
98
98
  //# sourceMappingURL=add-route.test.js.map
@@ -19,7 +19,8 @@ class Photo extends File {
19
19
  ${this.imageRouter.image(await file.getPath(), {
20
20
  resolutions: [100],
21
21
  sizesAttr: "100px",
22
- imgStyle: await this.getImgStyle()
22
+ imgStyle: await this.getImgStyle(),
23
+ alt: "Image preview"
23
24
  })}
24
25
  </div>`;
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.15.4",
3
+ "version": "0.15.6",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "cover-html": "npm run test-reports && nyc report --reporter lcov --exclude \"\" && xdg-open coverage/lcov-report/index.html"
21
21
  },
22
22
  "bin": {
23
- "sealgen": "./dist/cli.js"
23
+ "sealgen": "./lib/cli.js"
24
24
  },
25
25
  "author": "",
26
26
  "license": "ISC",
@@ -102,5 +102,5 @@ describe("add route test", () => {
102
102
  if (res.status != 200) {
103
103
  throw new Error("url generated by add-route exists but doesnt return 200");
104
104
  }
105
- });
105
+ }).timeout(100 * 1000);
106
106
  });
@@ -35,6 +35,7 @@ export class Photo extends File {
35
35
  resolutions: [100],
36
36
  sizesAttr: "100px",
37
37
  imgStyle: await this.getImgStyle(),
38
+ alt: "Image preview",
38
39
  })}
39
40
  </div>`;
40
41
  }
package/dist/cli.js DELETED
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env node
2
- import { addCollection } from "./add-collection.js";
3
- import { addJDDComponent } from "./add-jdd-component.js";
4
- import { addRoute } from "./add-route.js";
5
- import { buildProject } from "./build.js";
6
- import { generate_css_includes } from "./find-css-includes.js";
7
- import { generateCollections } from "./generate-collections.js";
8
- import { generateComponents } from "./generate-components.js";
9
- import { generateRoutes } from "./generate-routes.js";
10
- import { makeEnv } from "./make-env.js";
11
- import yargs from "yargs/yargs";
12
- import { getFonts } from "./get-fonts.js";
13
- import { generateStimulusControllers } from "./generate-stimulus.js";
14
- const actions = {
15
- "add-collection": addCollection,
16
- "add-route": addRoute,
17
- "generate-collections": generateCollections,
18
- "generate-components": generateComponents,
19
- "generate-routes": generateRoutes,
20
- "generate-css-includes": generate_css_includes,
21
- build: buildProject,
22
- default: async function() {
23
- console.log("Usage: `npx sealgen <action>`");
24
- console.log(
25
- `Available actions: ${Object.keys(actions).filter((e) => e != "default").join(", ")}`
26
- );
27
- },
28
- "make-env": makeEnv,
29
- "add-component": addJDDComponent,
30
- "get-fonts": getFonts,
31
- "generate-stimulus": generateStimulusControllers
32
- };
33
- void async function() {
34
- const action = process.argv.at(2);
35
- const fn = actions[action || "default"] || actions.default;
36
- const args = yargs(process.argv).argv;
37
- await fn(args);
38
- }();
39
- //# sourceMappingURL=cli.js.map