@sealcode/sealgen 0.15.4 → 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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/dist/cli.js +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sealcode/sealgen",
3
- "version": "0.15.4",
3
+ "version": "0.15.5",
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",
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