@sealcode/sealgen 0.15.3 → 0.15.5

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.15.3",
3
+ "version": "0.15.5",
4
4
  "description": "Module to automate adding routes and collections to a sealious application",
5
- "main": "dist/index.js",
5
+ "main": "lib/index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "prebuild": "npm run lint && rm -rf lib",
@@ -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",
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
package/dist/index.js DELETED
@@ -1,25 +0,0 @@
1
- import * as Controls from "./forms/controls/controls.js";
2
- export * from "./forms/fields/field.js";
3
- import * as Fields from "./forms/fields/fields.js";
4
- export * from "./page/mountable.js";
5
- export * from "./page/page.js";
6
- export * from "./page/stateful-page.js";
7
- export * from "./forms/form-types.js";
8
- export * from "./forms/form.js";
9
- export * from "./page/props-parser.js";
10
- export * from "./utils/utils.js";
11
- export * from "./page/list.js";
12
- export * from "./page/sealious-list.js";
13
- export * from "./utils/translate.js";
14
- import * as sanitize from "./sanitize.js";
15
- export * from "./forms/multiform.js";
16
- import * as Components from "./components/components.js";
17
- export * from "./mount.js";
18
- export * from "./page/default-list-filters.js";
19
- export {
20
- Components,
21
- Controls,
22
- Fields,
23
- sanitize
24
- };
25
- //# sourceMappingURL=index.js.map