express-todo 1.1.1 → 1.2.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.
Files changed (32) hide show
  1. package/bin/cli.js +1 -1
  2. package/bin/{v1/commands/express.js → v2/commands/simple.js} +5 -5
  3. package/bin/{v1 → v2}/core/resolveCommand.js +2 -2
  4. package/bin/{v1 → v2}/core/showUsage.js +5 -11
  5. package/package.json +1 -1
  6. /package/bin/{v1 → v2}/commands/exportCommands/express.js +0 -0
  7. /package/bin/{v1/commands/express → v2/commands/simple}/steps/announce.js +0 -0
  8. /package/bin/{v1/commands/express → v2/commands/simple}/steps/createProject.js +0 -0
  9. /package/bin/{v1/commands/express → v2/commands/simple}/steps/locateDestination.js +0 -0
  10. /package/bin/{v1/commands/express → v2/commands/simple}/steps/locateSource.js +0 -0
  11. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/.env +0 -0
  12. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/.env.local +0 -0
  13. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/.vscode/launch.json +0 -0
  14. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/Config/Schemas/BillsTable.json +0 -0
  15. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/Config/Schemas/ItemsTable.json +0 -0
  16. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/Config/Schemas/LedgerNames.json +0 -0
  17. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/Config/Schemas/StockItems.json +0 -0
  18. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/Config/api.json +0 -0
  19. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/Config/schema.json +0 -0
  20. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/Config/ui.json +0 -0
  21. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/Public/index.html +0 -0
  22. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/app.js +0 -0
  23. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/config.json +0 -0
  24. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/configLoader.js +0 -0
  25. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/package-lock.json +0 -0
  26. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/package.json +0 -0
  27. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/port.js +0 -0
  28. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/routes.js +0 -0
  29. /package/bin/{v1/commands/express → v2/commands/simple}/template/v7/server.js +0 -0
  30. /package/bin/{v1 → v2}/core/parseInput.js +0 -0
  31. /package/bin/{v1 → v2}/core/resolveFolderName.js +0 -0
  32. /package/bin/{v1 → v2}/start.js +0 -0
package/bin/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import getLatestVersion from "./core/getLatestVersion.js";
4
4
  import loadRunner from "./core/loadRunner.js";
@@ -1,11 +1,11 @@
1
- import { locateSource } from "./express/steps/locateSource.js";
2
- import { locateDestination } from "./express/steps/locateDestination.js";
3
- import { createProject } from "./express/steps/createProject.js";
4
- import { announce } from "./express/steps/announce.js";
1
+ import { locateSource } from "./simple/steps/locateSource.js";
2
+ import { locateDestination } from "./simple/steps/locateDestination.js";
3
+ import { createProject } from "./simple/steps/createProject.js";
4
+ import { announce } from "./simple/steps/announce.js";
5
5
 
6
6
  import resolveFolderName from "../core/resolveFolderName.js";
7
7
 
8
- export default ({ folderName =""}) => {
8
+ export default ({ folderName = "" }) => {
9
9
  const resolvedFolderName = resolveFolderName({
10
10
  name: folderName
11
11
  });
@@ -1,8 +1,8 @@
1
- import express from "../commands/express.js";
1
+ import simple from "../commands/simple.js";
2
2
 
3
3
  // resolveCommand.js
4
4
  const map = {
5
- express
5
+ simple
6
6
  };
7
7
 
8
8
  export default function resolveCommand(cmd) {
@@ -22,24 +22,18 @@ export default function showUsage(version) {
22
22
  const r = "\x1b[0m";
23
23
 
24
24
  console.log(`
25
- ${c}🚀 KSchema CLI v${version}${r}
25
+ ${c}🚀 express-todo v${version}${r}
26
26
 
27
27
  ${y}Usage:${r}
28
- ${g}npx @keshavsoft/kschema-cli${r} <command> [options]
28
+ ${g}npx @keshavsoft/express-todo${r} <command> [options]
29
29
 
30
30
  ${y}Commands:${r}
31
- ${g}init${r} Initialize a new schema setup
32
- ${g}express${r} Initialize a new express project
33
- ${g}tally${r} Initialize a new tally project
34
- ${g}generate-samples${r} Generate sample schema files
35
- ${g}accounts${r} Initialize a new express project for simple accounting
31
+ ${g}simple${r} Initialize a new simple express app
36
32
 
37
33
  ${y}Examples:${r}
38
- ${gray}npx @keshavsoft/kschema-cli init${r}
39
- ${gray}npx @keshavsoft/kschema-cli test users${r}
40
- ${gray}npx @keshavsoft/kschema-cli accounts${r}
34
+ ${gray}npx @keshavsoft/express-todo simple${r}
41
35
 
42
36
  ${y}Tip:${r}
43
- ${gray}npm i -g @keshavsoft/kschema-cli${r}
37
+ ${gray}npm i -g @keshavsoft/express-todo${r}
44
38
  `);
45
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-todo",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "description": "CLI to scaffold projects using templates",
5
5
  "keywords": [
6
6
  "cli",
File without changes
File without changes
File without changes