@maka/maka-cli 5.2.4 → 5.2.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.
- package/package.json +4 -3
- package/bundle/typescript/package.json +0 -118
- package/bundle/typescript/src/README.md +0 -37
- package/bundle/typescript/src/command.d.ts +0 -37
- package/bundle/typescript/src/command.js +0 -231
- package/bundle/typescript/src/command.js.map +0 -1
- package/bundle/typescript/src/commands/_index.d.ts +0 -26
- package/bundle/typescript/src/commands/_index.js +0 -28
- package/bundle/typescript/src/commands/_index.js.map +0 -1
- package/bundle/typescript/src/commands/ai/_index.d.ts +0 -2
- package/bundle/typescript/src/commands/ai/_index.js +0 -3
- package/bundle/typescript/src/commands/ai/_index.js.map +0 -1
- package/bundle/typescript/src/commands/ai/ai.command.d.ts +0 -3
- package/bundle/typescript/src/commands/ai/ai.command.js +0 -83
- package/bundle/typescript/src/commands/ai/ai.command.js.map +0 -1
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.js +0 -964
- package/bundle/typescript/src/commands/ai/mcp.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/_index.d.ts +0 -16
- package/bundle/typescript/src/commands/aws/_index.js +0 -17
- package/bundle/typescript/src/commands/aws/_index.js.map +0 -1
- package/bundle/typescript/src/commands/aws/aws.command.d.ts +0 -3
- package/bundle/typescript/src/commands/aws/aws.command.js +0 -15
- package/bundle/typescript/src/commands/aws/aws.command.js.map +0 -1
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.js +0 -38
- package/bundle/typescript/src/commands/aws/cecr.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.js +0 -41
- package/bundle/typescript/src/commands/aws/chz.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.js +0 -199
- package/bundle/typescript/src/commands/aws/ci.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.js +0 -42
- package/bundle/typescript/src/commands/aws/ckp.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.js +0 -43
- package/bundle/typescript/src/commands/aws/csg.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.js +0 -31
- package/bundle/typescript/src/commands/aws/decr.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/di.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/di.sub.cmd.js +0 -35
- package/bundle/typescript/src/commands/aws/di.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.js +0 -25
- package/bundle/typescript/src/commands/aws/dkp.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.js +0 -57
- package/bundle/typescript/src/commands/aws/dsg.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.js +0 -32
- package/bundle/typescript/src/commands/aws/lecr.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.js +0 -39
- package/bundle/typescript/src/commands/aws/rbi.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.js +0 -104
- package/bundle/typescript/src/commands/aws/rdn.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.js +0 -52
- package/bundle/typescript/src/commands/aws/rkp.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.js +0 -74
- package/bundle/typescript/src/commands/aws/sth.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.js +0 -45
- package/bundle/typescript/src/commands/aws/ti.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/build/_index.d.ts +0 -2
- package/bundle/typescript/src/commands/build/_index.js +0 -3
- package/bundle/typescript/src/commands/build/_index.js.map +0 -1
- package/bundle/typescript/src/commands/build/build.d.ts +0 -3
- package/bundle/typescript/src/commands/build/build.js +0 -98
- package/bundle/typescript/src/commands/build/build.js.map +0 -1
- package/bundle/typescript/src/commands/build/docker.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/build/docker.sub.cmd.js +0 -138
- package/bundle/typescript/src/commands/build/docker.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/create.d.ts +0 -1
- package/bundle/typescript/src/commands/create.js +0 -645
- package/bundle/typescript/src/commands/create.js.map +0 -1
- package/bundle/typescript/src/commands/debug.d.ts +0 -1
- package/bundle/typescript/src/commands/debug.js +0 -95
- package/bundle/typescript/src/commands/debug.js.map +0 -1
- package/bundle/typescript/src/commands/deploy/_index.d.ts +0 -3
- package/bundle/typescript/src/commands/deploy/_index.js +0 -4
- package/bundle/typescript/src/commands/deploy/_index.js.map +0 -1
- package/bundle/typescript/src/commands/deploy/deploy.command.d.ts +0 -3
- package/bundle/typescript/src/commands/deploy/deploy.command.js +0 -24
- package/bundle/typescript/src/commands/deploy/deploy.command.js.map +0 -1
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.js +0 -152
- package/bundle/typescript/src/commands/deploy/galaxy.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js +0 -543
- package/bundle/typescript/src/commands/deploy/ubuntu.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/_index.d.ts +0 -5
- package/bundle/typescript/src/commands/game/_index.js +0 -7
- package/bundle/typescript/src/commands/game/_index.js.map +0 -1
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.js +0 -12
- package/bundle/typescript/src/commands/game/battleship.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/play.command.d.ts +0 -3
- package/bundle/typescript/src/commands/game/play.command.js +0 -18
- package/bundle/typescript/src/commands/game/play.command.js.map +0 -1
- package/bundle/typescript/src/commands/game/pong.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/pong.sub.cmd.js +0 -12
- package/bundle/typescript/src/commands/game/pong.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.d.ts +0 -9
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js +0 -26
- package/bundle/typescript/src/commands/game/sideQuest/commands/command-registry.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.d.ts +0 -23
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.js +0 -24
- package/bundle/typescript/src/commands/game/sideQuest/commands/command.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js +0 -33
- package/bundle/typescript/src/commands/game/sideQuest/commands/drop.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js +0 -69
- package/bundle/typescript/src/commands/game/sideQuest/commands/equip.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js +0 -58
- package/bundle/typescript/src/commands/game/sideQuest/commands/give.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js +0 -63
- package/bundle/typescript/src/commands/game/sideQuest/commands/go.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js +0 -36
- package/bundle/typescript/src/commands/game/sideQuest/commands/kill.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js +0 -74
- package/bundle/typescript/src/commands/game/sideQuest/commands/lock.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.d.ts +0 -10
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js +0 -137
- package/bundle/typescript/src/commands/game/sideQuest/commands/look.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.js +0 -26
- package/bundle/typescript/src/commands/game/sideQuest/commands/read.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js +0 -31
- package/bundle/typescript/src/commands/game/sideQuest/commands/say.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js +0 -24
- package/bundle/typescript/src/commands/game/sideQuest/commands/search.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js +0 -23
- package/bundle/typescript/src/commands/game/sideQuest/commands/solve.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.js +0 -33
- package/bundle/typescript/src/commands/game/sideQuest/commands/store.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js +0 -41
- package/bundle/typescript/src/commands/game/sideQuest/commands/take.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.d.ts +0 -9
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js +0 -54
- package/bundle/typescript/src/commands/game/sideQuest/commands/talk.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js +0 -13
- package/bundle/typescript/src/commands/game/sideQuest/commands/unequip.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js +0 -53
- package/bundle/typescript/src/commands/game/sideQuest/commands/unlock.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js +0 -34
- package/bundle/typescript/src/commands/game/sideQuest/commands/use.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.d.ts +0 -9
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.js +0 -17
- package/bundle/typescript/src/commands/game/sideQuest/factories/command-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.d.ts +0 -5
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js +0 -25
- package/bundle/typescript/src/commands/game/sideQuest/factories/item-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.d.ts +0 -10
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js +0 -36
- package/bundle/typescript/src/commands/game/sideQuest/factories/npc-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js +0 -24
- package/bundle/typescript/src/commands/game/sideQuest/factories/puzzle-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js +0 -19
- package/bundle/typescript/src/commands/game/sideQuest/factories/room-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js +0 -126
- package/bundle/typescript/src/commands/game/sideQuest/factories/scene-factory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/game.d.ts +0 -38
- package/bundle/typescript/src/commands/game/sideQuest/game.js +0 -384
- package/bundle/typescript/src/commands/game/sideQuest/game.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.js +0 -9
- package/bundle/typescript/src/commands/game/sideQuest/models/_index.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/door.d.ts +0 -23
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js +0 -42
- package/bundle/typescript/src/commands/game/sideQuest/models/door.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.d.ts +0 -47
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js +0 -110
- package/bundle/typescript/src/commands/game/sideQuest/models/inventory.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/item.d.ts +0 -56
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js +0 -145
- package/bundle/typescript/src/commands/game/sideQuest/models/item.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.d.ts +0 -36
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js +0 -407
- package/bundle/typescript/src/commands/game/sideQuest/models/npc.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/player.d.ts +0 -58
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js +0 -357
- package/bundle/typescript/src/commands/game/sideQuest/models/player.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.d.ts +0 -34
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js +0 -67
- package/bundle/typescript/src/commands/game/sideQuest/models/puzzle.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/room.d.ts +0 -69
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js +0 -246
- package/bundle/typescript/src/commands/game/sideQuest/models/room.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.d.ts +0 -72
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js +0 -310
- package/bundle/typescript/src/commands/game/sideQuest/models/scene.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.d.ts +0 -0
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/_index.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene1.json +0 -281
- package/bundle/typescript/src/commands/game/sideQuest/scenes/scene2.json +0 -397
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.d.ts +0 -47
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js +0 -52
- package/bundle/typescript/src/commands/game/sideQuest/types/enums.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.d.ts +0 -62
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/player-equipment.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/exit-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.d.ts +0 -23
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/item-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.d.ts +0 -22
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/lifestyle-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.d.ts +0 -6
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/npc-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/player-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.d.ts +0 -11
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/puzzle-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.d.ts +0 -16
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/room-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.d.ts +0 -20
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.js +0 -2
- package/bundle/typescript/src/commands/game/sideQuest/types/seed/scene-seed.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.d.ts +0 -152
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js +0 -90
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/abstracts.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.d.ts +0 -8
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.js +0 -10
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/direction-enum.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.d.ts +0 -25
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.js +0 -27
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/equipment-enum.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.d.ts +0 -69
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js +0 -80
- package/bundle/typescript/src/commands/game/sideQuest/types/shared/item-enum.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/ui.d.ts +0 -7
- package/bundle/typescript/src/commands/game/sideQuest/ui.js +0 -72
- package/bundle/typescript/src/commands/game/sideQuest/ui.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.d.ts +0 -16
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js +0 -67
- package/bundle/typescript/src/commands/game/sideQuest/utilities/logger.js.map +0 -1
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js +0 -68
- package/bundle/typescript/src/commands/game/sideQuest.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/snake.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/snake.sub.cmd.js +0 -12
- package/bundle/typescript/src/commands/game/snake.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.js +0 -12
- package/bundle/typescript/src/commands/game/tetris.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/generate.d.ts +0 -1
- package/bundle/typescript/src/commands/generate.js +0 -42
- package/bundle/typescript/src/commands/generate.js.map +0 -1
- package/bundle/typescript/src/commands/get/_index.d.ts +0 -4
- package/bundle/typescript/src/commands/get/_index.js +0 -5
- package/bundle/typescript/src/commands/get/_index.js.map +0 -1
- package/bundle/typescript/src/commands/get/get.command.d.ts +0 -3
- package/bundle/typescript/src/commands/get/get.command.js +0 -13
- package/bundle/typescript/src/commands/get/get.command.js.map +0 -1
- package/bundle/typescript/src/commands/get/global.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/get/global.sub.cmd.js +0 -20
- package/bundle/typescript/src/commands/get/global.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/get/local.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/get/local.sub.cmd.js +0 -14
- package/bundle/typescript/src/commands/get/local.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.js +0 -21
- package/bundle/typescript/src/commands/get/whoami.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/help.d.ts +0 -1
- package/bundle/typescript/src/commands/help.js +0 -12
- package/bundle/typescript/src/commands/help.js.map +0 -1
- package/bundle/typescript/src/commands/install.d.ts +0 -1
- package/bundle/typescript/src/commands/install.js +0 -269
- package/bundle/typescript/src/commands/install.js.map +0 -1
- package/bundle/typescript/src/commands/jsdoc.d.ts +0 -1
- package/bundle/typescript/src/commands/jsdoc.js +0 -62
- package/bundle/typescript/src/commands/jsdoc.js.map +0 -1
- package/bundle/typescript/src/commands/lint.d.ts +0 -1
- package/bundle/typescript/src/commands/lint.js +0 -127
- package/bundle/typescript/src/commands/lint.js.map +0 -1
- package/bundle/typescript/src/commands/login.d.ts +0 -1
- package/bundle/typescript/src/commands/login.js +0 -168
- package/bundle/typescript/src/commands/login.js.map +0 -1
- package/bundle/typescript/src/commands/logout.d.ts +0 -1
- package/bundle/typescript/src/commands/logout.js +0 -95
- package/bundle/typescript/src/commands/logout.js.map +0 -1
- package/bundle/typescript/src/commands/logs.d.ts +0 -1
- package/bundle/typescript/src/commands/logs.js +0 -35
- package/bundle/typescript/src/commands/logs.js.map +0 -1
- package/bundle/typescript/src/commands/maka.cmd.d.ts +0 -5
- package/bundle/typescript/src/commands/maka.cmd.js +0 -57
- package/bundle/typescript/src/commands/maka.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/murder.d.ts +0 -1
- package/bundle/typescript/src/commands/murder.js +0 -31
- package/bundle/typescript/src/commands/murder.js.map +0 -1
- package/bundle/typescript/src/commands/profile.d.ts +0 -1
- package/bundle/typescript/src/commands/profile.js +0 -277
- package/bundle/typescript/src/commands/profile.js.map +0 -1
- package/bundle/typescript/src/commands/proxy.d.ts +0 -1
- package/bundle/typescript/src/commands/proxy.js +0 -168
- package/bundle/typescript/src/commands/proxy.js.map +0 -1
- package/bundle/typescript/src/commands/reconfig.d.ts +0 -1
- package/bundle/typescript/src/commands/reconfig.js +0 -69
- package/bundle/typescript/src/commands/reconfig.js.map +0 -1
- package/bundle/typescript/src/commands/register.d.ts +0 -1
- package/bundle/typescript/src/commands/register.js +0 -104
- package/bundle/typescript/src/commands/register.js.map +0 -1
- package/bundle/typescript/src/commands/run/_index.d.ts +0 -2
- package/bundle/typescript/src/commands/run/_index.js +0 -3
- package/bundle/typescript/src/commands/run/_index.js.map +0 -1
- package/bundle/typescript/src/commands/run/docker.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/run/docker.sub.cmd.js +0 -82
- package/bundle/typescript/src/commands/run/docker.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/run/run.command.d.ts +0 -3
- package/bundle/typescript/src/commands/run/run.command.js +0 -200
- package/bundle/typescript/src/commands/run/run.command.js.map +0 -1
- package/bundle/typescript/src/commands/set/_index.d.ts +0 -3
- package/bundle/typescript/src/commands/set/_index.js +0 -4
- package/bundle/typescript/src/commands/set/_index.js.map +0 -1
- package/bundle/typescript/src/commands/set/global.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/set/global.sub.cmd.js +0 -115
- package/bundle/typescript/src/commands/set/global.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/set/local.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/set/local.sub.cmd.js +0 -18
- package/bundle/typescript/src/commands/set/local.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/set/set.command.d.ts +0 -3
- package/bundle/typescript/src/commands/set/set.command.js +0 -16
- package/bundle/typescript/src/commands/set/set.command.js.map +0 -1
- package/bundle/typescript/src/commands/ssh.d.ts +0 -1
- package/bundle/typescript/src/commands/ssh.js +0 -43
- package/bundle/typescript/src/commands/ssh.js.map +0 -1
- package/bundle/typescript/src/commands/ssl.d.ts +0 -1
- package/bundle/typescript/src/commands/ssl.js +0 -109
- package/bundle/typescript/src/commands/ssl.js.map +0 -1
- package/bundle/typescript/src/commands/testCmd/_index.d.ts +0 -3
- package/bundle/typescript/src/commands/testCmd/_index.js +0 -4
- package/bundle/typescript/src/commands/testCmd/_index.js.map +0 -1
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.js +0 -131
- package/bundle/typescript/src/commands/testCmd/jest.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js +0 -133
- package/bundle/typescript/src/commands/testCmd/mocha.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/testCmd/test.command.d.ts +0 -3
- package/bundle/typescript/src/commands/testCmd/test.command.js +0 -15
- package/bundle/typescript/src/commands/testCmd/test.command.js.map +0 -1
- package/bundle/typescript/src/commands/undo.d.ts +0 -1
- package/bundle/typescript/src/commands/undo.js +0 -12
- package/bundle/typescript/src/commands/undo.js.map +0 -1
- package/bundle/typescript/src/commands/uninstall.d.ts +0 -1
- package/bundle/typescript/src/commands/uninstall.js +0 -76
- package/bundle/typescript/src/commands/uninstall.js.map +0 -1
- package/bundle/typescript/src/commands/version/_index.d.ts +0 -4
- package/bundle/typescript/src/commands/version/_index.js +0 -5
- package/bundle/typescript/src/commands/version/_index.js.map +0 -1
- package/bundle/typescript/src/commands/version/list.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/version/list.sub.cmd.js +0 -55
- package/bundle/typescript/src/commands/version/list.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.d.ts +0 -3
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.js +0 -21
- package/bundle/typescript/src/commands/version/meteor.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/version/use.sub.cmd.d.ts +0 -1
- package/bundle/typescript/src/commands/version/use.sub.cmd.js +0 -83
- package/bundle/typescript/src/commands/version/use.sub.cmd.js.map +0 -1
- package/bundle/typescript/src/commands/version/version.d.ts +0 -3
- package/bundle/typescript/src/commands/version/version.js +0 -59
- package/bundle/typescript/src/commands/version/version.js.map +0 -1
- package/bundle/typescript/src/error.d.ts +0 -12
- package/bundle/typescript/src/error.js +0 -13
- package/bundle/typescript/src/error.js.map +0 -1
- package/bundle/typescript/src/exec.d.ts +0 -2
- package/bundle/typescript/src/exec.js +0 -17
- package/bundle/typescript/src/exec.js.map +0 -1
- package/bundle/typescript/src/generator.d.ts +0 -48
- package/bundle/typescript/src/generator.js +0 -394
- package/bundle/typescript/src/generator.js.map +0 -1
- package/bundle/typescript/src/generators/_index.d.ts +0 -18
- package/bundle/typescript/src/generators/_index.js +0 -19
- package/bundle/typescript/src/generators/_index.js.map +0 -1
- package/bundle/typescript/src/generators/api.d.ts +0 -1
- package/bundle/typescript/src/generators/api.js +0 -257
- package/bundle/typescript/src/generators/api.js.map +0 -1
- package/bundle/typescript/src/generators/aws/_index.d.ts +0 -2
- package/bundle/typescript/src/generators/aws/_index.js +0 -3
- package/bundle/typescript/src/generators/aws/_index.js.map +0 -1
- package/bundle/typescript/src/generators/aws/aws.d.ts +0 -3
- package/bundle/typescript/src/generators/aws/aws.js +0 -16
- package/bundle/typescript/src/generators/aws/aws.js.map +0 -1
- package/bundle/typescript/src/generators/aws/cloudformation/_index.d.ts +0 -2
- package/bundle/typescript/src/generators/aws/cloudformation/_index.js +0 -3
- package/bundle/typescript/src/generators/aws/cloudformation/_index.js.map +0 -1
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.d.ts +0 -3
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.js +0 -21
- package/bundle/typescript/src/generators/aws/cloudformation/cloudformation.js.map +0 -1
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.d.ts +0 -3
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +0 -69
- package/bundle/typescript/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js.map +0 -1
- package/bundle/typescript/src/generators/collection.d.ts +0 -1
- package/bundle/typescript/src/generators/collection.js +0 -78
- package/bundle/typescript/src/generators/collection.js.map +0 -1
- package/bundle/typescript/src/generators/component.d.ts +0 -1
- package/bundle/typescript/src/generators/component.js +0 -99
- package/bundle/typescript/src/generators/component.js.map +0 -1
- package/bundle/typescript/src/generators/config.d.ts +0 -1
- package/bundle/typescript/src/generators/config.js +0 -75
- package/bundle/typescript/src/generators/config.js.map +0 -1
- package/bundle/typescript/src/generators/dbc.d.ts +0 -1
- package/bundle/typescript/src/generators/dbc.js +0 -85
- package/bundle/typescript/src/generators/dbc.js.map +0 -1
- package/bundle/typescript/src/generators/dockerfile.d.ts +0 -1
- package/bundle/typescript/src/generators/dockerfile.js +0 -42
- package/bundle/typescript/src/generators/dockerfile.js.map +0 -1
- package/bundle/typescript/src/generators/hook.d.ts +0 -1
- package/bundle/typescript/src/generators/hook.js +0 -112
- package/bundle/typescript/src/generators/hook.js.map +0 -1
- package/bundle/typescript/src/generators/kits/_index.d.ts +0 -5
- package/bundle/typescript/src/generators/kits/_index.js +0 -6
- package/bundle/typescript/src/generators/kits/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/_index.d.ts +0 -4
- package/bundle/typescript/src/generators/kits/auth/_index.js +0 -5
- package/bundle/typescript/src/generators/kits/auth/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/auth.generator.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/auth/auth.generator.js +0 -21
- package/bundle/typescript/src/generators/kits/auth/auth.generator.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.js +0 -895
- package/bundle/typescript/src/generators/kits/auth/auth0-meteor.auth.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.js +0 -213
- package/bundle/typescript/src/generators/kits/auth/basic-meteor.auth.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.js +0 -138
- package/bundle/typescript/src/generators/kits/auth/provider.auth.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/esri/_index.d.ts +0 -2
- package/bundle/typescript/src/generators/kits/esri/_index.js +0 -3
- package/bundle/typescript/src/generators/kits/esri/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/esri/esri.generator.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/esri/esri.generator.js +0 -31
- package/bundle/typescript/src/generators/kits/esri/esri.generator.js.map +0 -1
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.js +0 -85
- package/bundle/typescript/src/generators/kits/esri/map.esri.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/frames/_index.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/frames/_index.js +0 -2
- package/bundle/typescript/src/generators/kits/frames/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/frames/frames.generator.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/frames/frames.generator.js +0 -166
- package/bundle/typescript/src/generators/kits/frames/frames.generator.js.map +0 -1
- package/bundle/typescript/src/generators/kits/kit.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/kit.js +0 -17
- package/bundle/typescript/src/generators/kits/kit.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/_index.d.ts +0 -4
- package/bundle/typescript/src/generators/kits/mui/_index.js +0 -5
- package/bundle/typescript/src/generators/kits/mui/_index.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.d.ts +0 -2
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js +0 -228
- package/bundle/typescript/src/generators/kits/mui/auth.mui.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.d.ts +0 -2
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.js +0 -158
- package/bundle/typescript/src/generators/kits/mui/auth0.mui.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.d.ts +0 -1
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.js +0 -210
- package/bundle/typescript/src/generators/kits/mui/frame.mui.gen.js.map +0 -1
- package/bundle/typescript/src/generators/kits/mui/mui.generator.d.ts +0 -3
- package/bundle/typescript/src/generators/kits/mui/mui.generator.js +0 -79
- package/bundle/typescript/src/generators/kits/mui/mui.generator.js.map +0 -1
- package/bundle/typescript/src/generators/layout.d.ts +0 -1
- package/bundle/typescript/src/generators/layout.js +0 -116
- package/bundle/typescript/src/generators/layout.js.map +0 -1
- package/bundle/typescript/src/generators/maka.gen.d.ts +0 -5
- package/bundle/typescript/src/generators/maka.gen.js +0 -26
- package/bundle/typescript/src/generators/maka.gen.js.map +0 -1
- package/bundle/typescript/src/generators/methods.d.ts +0 -1
- package/bundle/typescript/src/generators/methods.js +0 -65
- package/bundle/typescript/src/generators/methods.js.map +0 -1
- package/bundle/typescript/src/generators/package.d.ts +0 -1
- package/bundle/typescript/src/generators/package.js +0 -71
- package/bundle/typescript/src/generators/package.js.map +0 -1
- package/bundle/typescript/src/generators/page.d.ts +0 -1
- package/bundle/typescript/src/generators/page.js +0 -194
- package/bundle/typescript/src/generators/page.js.map +0 -1
- package/bundle/typescript/src/generators/publish.d.ts +0 -1
- package/bundle/typescript/src/generators/publish.js +0 -75
- package/bundle/typescript/src/generators/publish.js.map +0 -1
- package/bundle/typescript/src/generators/route.d.ts +0 -1
- package/bundle/typescript/src/generators/route.js +0 -68
- package/bundle/typescript/src/generators/route.js.map +0 -1
- package/bundle/typescript/src/generators/services/_index.d.ts +0 -4
- package/bundle/typescript/src/generators/services/_index.js +0 -5
- package/bundle/typescript/src/generators/services/_index.js.map +0 -1
- package/bundle/typescript/src/generators/services/logger.d.ts +0 -1
- package/bundle/typescript/src/generators/services/logger.js +0 -50
- package/bundle/typescript/src/generators/services/logger.js.map +0 -1
- package/bundle/typescript/src/generators/services/openssl.d.ts +0 -1
- package/bundle/typescript/src/generators/services/openssl.js +0 -38
- package/bundle/typescript/src/generators/services/openssl.js.map +0 -1
- package/bundle/typescript/src/generators/services/service.d.ts +0 -3
- package/bundle/typescript/src/generators/services/service.js +0 -16
- package/bundle/typescript/src/generators/services/service.js.map +0 -1
- package/bundle/typescript/src/generators/services/translation.d.ts +0 -1
- package/bundle/typescript/src/generators/services/translation.js +0 -149
- package/bundle/typescript/src/generators/services/translation.js.map +0 -1
- package/bundle/typescript/src/maka.d.ts +0 -2
- package/bundle/typescript/src/maka.js +0 -26
- package/bundle/typescript/src/maka.js.map +0 -1
- package/bundle/typescript/src/templates/aws/cloudformation/create-ec2-instance.template +0 -14
- package/bundle/typescript/src/templates/meteor/api/api.js +0 -20
- package/bundle/typescript/src/templates/meteor/api/api.js.ts +0 -20
- package/bundle/typescript/src/templates/meteor/api/apollo-gateway.js +0 -50
- package/bundle/typescript/src/templates/meteor/api/apollo-gateway.js.ts +0 -55
- package/bundle/typescript/src/templates/meteor/api/graphql-api.js +0 -63
- package/bundle/typescript/src/templates/meteor/api/graphql-api.js.ts +0 -69
- package/bundle/typescript/src/templates/meteor/api/methods.js +0 -39
- package/bundle/typescript/src/templates/meteor/api/methods.js.ts +0 -40
- package/bundle/typescript/src/templates/meteor/api/register-api.js +0 -3
- package/bundle/typescript/src/templates/meteor/api/register-api.js.ts +0 -3
- package/bundle/typescript/src/templates/meteor/api/resolvers.js +0 -9
- package/bundle/typescript/src/templates/meteor/api/resolvers.js.ts +0 -9
- package/bundle/typescript/src/templates/meteor/api/tests.js +0 -0
- package/bundle/typescript/src/templates/meteor/api/tests.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/api/typeDefs.js +0 -6
- package/bundle/typescript/src/templates/meteor/api/typeDefs.js.ts +0 -6
- package/bundle/typescript/src/templates/meteor/app/client/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/client/body.html +0 -3
- package/bundle/typescript/src/templates/meteor/app/client/head.html +0 -12
- package/bundle/typescript/src/templates/meteor/app/client/main.js +0 -15
- package/bundle/typescript/src/templates/meteor/app/client/main.js.jsx +0 -15
- package/bundle/typescript/src/templates/meteor/app/client/main.js.ts +0 -15
- package/bundle/typescript/src/templates/meteor/app/client/main.js.tsx +0 -15
- package/bundle/typescript/src/templates/meteor/app/imports/api/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js +0 -20
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.jsx +0 -107
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.ts +0 -20
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/index.js.tsx +0 -108
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js +0 -39
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.jsx +0 -33
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.ts +0 -24
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/routes.js.tsx +0 -33
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js +0 -9
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.jsx +0 -9
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.ts +0 -9
- package/bundle/typescript/src/templates/meteor/app/imports/startup/client/templates.js.tsx +0 -9
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js +0 -1
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.jsx +0 -20
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.ts +0 -1
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/index.js.tsx +0 -20
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +0 -28
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +0 -28
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/templates.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/lib/templates.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js +0 -1
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.jsx +0 -98
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/app/imports/startup/server/index.js.tsx +0 -98
- package/bundle/typescript/src/templates/meteor/app/imports/ui/test-helpers.js +0 -24
- package/bundle/typescript/src/templates/meteor/app/imports/ui/test-helpers.js.ts +0 -24
- package/bundle/typescript/src/templates/meteor/app/lib/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/lib/main.js +0 -3
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.jsx +0 -3
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.ts +0 -3
- package/bundle/typescript/src/templates/meteor/app/lib/main.js.tsx +0 -3
- package/bundle/typescript/src/templates/meteor/app/maka.d.ts +0 -504
- package/bundle/typescript/src/templates/meteor/app/meteor.d.ts +0 -954
- package/bundle/typescript/src/templates/meteor/app/packages/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/private/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/favicon.ico +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/maka-144x144.png +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/maka-192x192.png +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/maka-512x512.png +0 -0
- package/bundle/typescript/src/templates/meteor/app/public/manifest.json +0 -27
- package/bundle/typescript/src/templates/meteor/app/public/sw.js +0 -30
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.jsx +0 -30
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.ts +0 -30
- package/bundle/typescript/src/templates/meteor/app/public/sw.js.tsx +0 -30
- package/bundle/typescript/src/templates/meteor/app/server/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js +0 -179
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.jsx +0 -179
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.ts +0 -179
- package/bundle/typescript/src/templates/meteor/app/server/helmet-csp.js.tsx +0 -179
- package/bundle/typescript/src/templates/meteor/app/server/main.js +0 -13
- package/bundle/typescript/src/templates/meteor/app/server/main.js.jsx +0 -13
- package/bundle/typescript/src/templates/meteor/app/server/main.js.ts +0 -13
- package/bundle/typescript/src/templates/meteor/app/server/main.js.tsx +0 -13
- package/bundle/typescript/src/templates/meteor/app/tsconfig.json +0 -40
- package/bundle/typescript/src/templates/meteor/collection/collection.js +0 -51
- package/bundle/typescript/src/templates/meteor/collection/collection.js.ts +0 -55
- package/bundle/typescript/src/templates/meteor/collection/tests.js +0 -27
- package/bundle/typescript/src/templates/meteor/collection/tests.js.ts +0 -27
- package/bundle/typescript/src/templates/meteor/config/docker-compose.yaml +0 -17
- package/bundle/typescript/src/templates/meteor/config/pm2.config.js +0 -27
- package/bundle/typescript/src/templates/meteor/config/process.env +0 -5
- package/bundle/typescript/src/templates/meteor/config/settings.json +0 -11
- package/bundle/typescript/src/templates/meteor/config/ssh.json +0 -6
- package/bundle/typescript/src/templates/meteor/dbc/config.js +0 -70
- package/bundle/typescript/src/templates/meteor/dbc/config.js.ts +0 -70
- package/bundle/typescript/src/templates/meteor/dbc/conn.js +0 -37
- package/bundle/typescript/src/templates/meteor/dbc/conn.js.ts +0 -37
- package/bundle/typescript/src/templates/meteor/dbc/register-dbc.js +0 -3
- package/bundle/typescript/src/templates/meteor/dbc/register-dbc.js.ts +0 -3
- package/bundle/typescript/src/templates/meteor/method/method.js +0 -48
- package/bundle/typescript/src/templates/meteor/method/method.js.ts +0 -48
- package/bundle/typescript/src/templates/meteor/package/client/package.js +0 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/package/client/package.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/package/lib/package.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/package.js +0 -37
- package/bundle/typescript/src/templates/meteor/package/package.js.jsx +0 -37
- package/bundle/typescript/src/templates/meteor/package/package.js.ts +0 -36
- package/bundle/typescript/src/templates/meteor/package/package.js.tsx +0 -37
- package/bundle/typescript/src/templates/meteor/package/server/package.js +0 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js.jsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js.ts +0 -0
- package/bundle/typescript/src/templates/meteor/package/server/package.js.tsx +0 -0
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.jsx +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.ts +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/client/package.js.tsx +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.jsx +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.ts +0 -5
- package/bundle/typescript/src/templates/meteor/package/tests/server/package.js.tsx +0 -5
- package/bundle/typescript/src/templates/meteor/project/.maka/config.json +0 -29
- package/bundle/typescript/src/templates/meteor/project/.maka/history.json +0 -1
- package/bundle/typescript/src/templates/meteor/project/README.md +0 -33
- package/bundle/typescript/src/templates/meteor/project/build/.gitkeep +0 -0
- package/bundle/typescript/src/templates/meteor/project/build/README +0 -4
- package/bundle/typescript/src/templates/meteor/project/gitignore +0 -9
- package/bundle/typescript/src/templates/meteor/project/package.json +0 -29
- package/bundle/typescript/src/templates/meteor/publish/publish.js +0 -3
- package/bundle/typescript/src/templates/meteor/publish/publish.js.ts +0 -3
- package/bundle/typescript/src/templates/meteor/service/logger/logger.js +0 -27
- package/bundle/typescript/src/templates/meteor/service/logger/logger.js.ts +0 -27
- package/bundle/typescript/src/templates/meteor/stylesheet/stylesheet.css +0 -5
- package/bundle/typescript/src/templates/meteor/stylesheet/stylesheet.css.less +0 -5
- package/bundle/typescript/src/templates/meteor/template/template-tests.js +0 -1
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.jsx +0 -55
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.ts +0 -1
- package/bundle/typescript/src/templates/meteor/template/template-tests.js.tsx +0 -55
- package/bundle/typescript/src/templates/meteor/template/template.css +0 -3
- package/bundle/typescript/src/templates/meteor/template/template.css.less +0 -3
- package/bundle/typescript/src/templates/meteor/template/template.css.scss +0 -3
- package/bundle/typescript/src/templates/meteor/template/template.html +0 -5
- package/bundle/typescript/src/templates/meteor/template/template.js +0 -20
- package/bundle/typescript/src/templates/meteor/template/template.js.jsx +0 -77
- package/bundle/typescript/src/templates/meteor/template/template.js.ts +0 -1
- package/bundle/typescript/src/templates/meteor/template/template.js.tsx +0 -89
- package/bundle/typescript/src/templates/react/component/component.css +0 -6
- package/bundle/typescript/src/templates/react/component/component.css.less +0 -6
- package/bundle/typescript/src/templates/react/component/component.css.scss +0 -3
- package/bundle/typescript/src/templates/react/component/component.js.jsx +0 -54
- package/bundle/typescript/src/templates/react/component/component.js.tsx +0 -59
- package/bundle/typescript/src/templates/react/hook/hook.css +0 -3
- package/bundle/typescript/src/templates/react/hook/hook.css.scss +0 -3
- package/bundle/typescript/src/templates/react/hook/hook.js.jsx +0 -19
- package/bundle/typescript/src/templates/react/hook/hook.js.tsx +0 -18
- package/bundle/typescript/src/templates/react/kit/auth/provider/authentication-provider.js.jsx +0 -293
- package/bundle/typescript/src/templates/react/kit/auth/provider/authentication-provider.js.tsx +0 -329
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-client.js.jsx +0 -178
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-client.js.tsx +0 -178
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-config.js.jsx +0 -59
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-config.js.tsx +0 -67
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-methods.js.jsx +0 -273
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-methods.js.tsx +0 -275
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-validator.js.jsx +0 -182
- package/bundle/typescript/src/templates/react/kit/auth/service/auth0-validator.js.tsx +0 -199
- package/bundle/typescript/src/templates/react/kit/auth/service/meteor-auth-service.js.jsx +0 -138
- package/bundle/typescript/src/templates/react/kit/auth/service/meteor-auth-service.js.tsx +0 -136
- package/bundle/typescript/src/templates/react/kit/esri/map/basic-map.js.jsx +0 -29
- package/bundle/typescript/src/templates/react/kit/esri/map/basic-map.js.tsx +0 -32
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.css +0 -63
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.jsx +0 -153
- package/bundle/typescript/src/templates/react/kit/frames/frames-demo.tsx +0 -164
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.css +0 -105
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.jsx +0 -158
- package/bundle/typescript/src/templates/react/kit/frames/workspace-manager.tsx +0 -166
- package/bundle/typescript/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.jsx +0 -34
- package/bundle/typescript/src/templates/react/kit/mui/auth/forgot-password/basic-forgot-password-page.js.tsx +0 -33
- package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.jsx +0 -53
- package/bundle/typescript/src/templates/react/kit/mui/auth/login/basic-login-page.js.tsx +0 -53
- package/bundle/typescript/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.jsx +0 -25
- package/bundle/typescript/src/templates/react/kit/mui/auth/logout/basic-logout-page.js.tsx +0 -25
- package/bundle/typescript/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.jsx +0 -41
- package/bundle/typescript/src/templates/react/kit/mui/auth/password-reset/basic-password-reset-page.js.tsx +0 -35
- package/bundle/typescript/src/templates/react/kit/mui/auth/register/basic-register-page.js.jsx +0 -33
- package/bundle/typescript/src/templates/react/kit/mui/auth/register/basic-register-page.js.tsx +0 -33
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth-callback.js.jsx +0 -71
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth-callback.js.tsx +0 -71
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-account-settings.js.jsx +0 -123
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-account-settings.js.tsx +0 -123
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-login-button.js.jsx +0 -56
- package/bundle/typescript/src/templates/react/kit/mui/auth0/auth0-login-button.js.tsx +0 -74
- package/bundle/typescript/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +0 -43
- package/bundle/typescript/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +0 -43
- package/bundle/typescript/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +0 -121
- package/bundle/typescript/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +0 -117
- package/bundle/typescript/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.jsx +0 -41
- package/bundle/typescript/src/templates/react/kit/mui/frame/footers/basic-sticky-footer.js.tsx +0 -41
- package/bundle/typescript/src/templates/react/route/route.js +0 -8
- package/bundle/typescript/src/templates/react/route/route.js.jsx +0 -5
- package/bundle/typescript/src/templates/react/route/route.js.ts +0 -8
- package/bundle/typescript/src/templates/react/route/route.js.tsx +0 -5
- package/bundle/typescript/src/templates/react/test/test.js +0 -1
- package/bundle/typescript/src/templates/react/test/test.js.jsx +0 -38
- package/bundle/typescript/src/templates/react/test/test.js.ts +0 -1
- package/bundle/typescript/src/templates/react/test/test.js.tsx +0 -38
- package/bundle/typescript/src/templates/service/docker/Dockerfile +0 -54
- package/bundle/typescript/src/templates/service/eslint/babel.config.js +0 -15
- package/bundle/typescript/src/templates/service/eslint/config.eslint.js +0 -57
- package/bundle/typescript/src/templates/service/i18n/i18n.js +0 -33
- package/bundle/typescript/src/templates/service/i18n/i18n.js.ts +0 -33
- package/bundle/typescript/src/templates/service/i18n/index.js +0 -0
- package/bundle/typescript/src/templates/service/i18n/index.js.jsx +0 -0
- package/bundle/typescript/src/templates/service/i18n/locales.js +0 -3
- package/bundle/typescript/src/templates/service/i18n/locales.js.ts +0 -3
- package/bundle/typescript/src/templates/service/openssl/openssl.conf +0 -22
- package/bundle/typescript/src/templates/service/test/jest/jest.config.js +0 -6
- package/bundle/typescript/src/templates/service/test/jest/jest.setup.js +0 -7
- package/bundle/typescript/src/tool.d.ts +0 -74
- package/bundle/typescript/src/tool.js +0 -217
- package/bundle/typescript/src/tool.js.map +0 -1
- package/bundle/typescript/src/tools/actions/actions.class.d.ts +0 -25
- package/bundle/typescript/src/tools/actions/actions.class.js +0 -20
- package/bundle/typescript/src/tools/actions/actions.class.js.map +0 -1
- package/bundle/typescript/src/tools/aws/aws.class.d.ts +0 -51
- package/bundle/typescript/src/tools/aws/aws.class.js +0 -802
- package/bundle/typescript/src/tools/aws/aws.class.js.map +0 -1
- package/bundle/typescript/src/tools/aws/aws.interfaces.d.ts +0 -364
- package/bundle/typescript/src/tools/aws/aws.interfaces.js +0 -255
- package/bundle/typescript/src/tools/aws/aws.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/cfg/cfg.class.d.ts +0 -42
- package/bundle/typescript/src/tools/cfg/cfg.class.js +0 -402
- package/bundle/typescript/src/tools/cfg/cfg.class.js.map +0 -1
- package/bundle/typescript/src/tools/docker/docker.class.d.ts +0 -10
- package/bundle/typescript/src/tools/docker/docker.class.js +0 -46
- package/bundle/typescript/src/tools/docker/docker.class.js.map +0 -1
- package/bundle/typescript/src/tools/docker/docker.interfaces.d.ts +0 -18
- package/bundle/typescript/src/tools/docker/docker.interfaces.js +0 -2
- package/bundle/typescript/src/tools/docker/docker.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/fsi/fsi.class.d.ts +0 -130
- package/bundle/typescript/src/tools/fsi/fsi.class.js +0 -685
- package/bundle/typescript/src/tools/fsi/fsi.class.js.map +0 -1
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.d.ts +0 -190
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js +0 -64
- package/bundle/typescript/src/tools/fsi/fsi.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/https/https.class.d.ts +0 -13
- package/bundle/typescript/src/tools/https/https.class.js +0 -302
- package/bundle/typescript/src/tools/https/https.class.js.map +0 -1
- package/bundle/typescript/src/tools/https/https.interface.d.ts +0 -40
- package/bundle/typescript/src/tools/https/https.interface.js +0 -2
- package/bundle/typescript/src/tools/https/https.interface.js.map +0 -1
- package/bundle/typescript/src/tools/log/log.class.d.ts +0 -33
- package/bundle/typescript/src/tools/log/log.class.js +0 -206
- package/bundle/typescript/src/tools/log/log.class.js.map +0 -1
- package/bundle/typescript/src/tools/log/log.interfaces.d.ts +0 -7
- package/bundle/typescript/src/tools/log/log.interfaces.js +0 -2
- package/bundle/typescript/src/tools/log/log.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/mpi/mpi.class.d.ts +0 -26
- package/bundle/typescript/src/tools/mpi/mpi.class.js +0 -523
- package/bundle/typescript/src/tools/mpi/mpi.class.js.map +0 -1
- package/bundle/typescript/src/tools/options/options.class.d.ts +0 -11
- package/bundle/typescript/src/tools/options/options.class.js +0 -64
- package/bundle/typescript/src/tools/options/options.class.js.map +0 -1
- package/bundle/typescript/src/tools/pkg/pkg.class.d.ts +0 -31
- package/bundle/typescript/src/tools/pkg/pkg.class.js +0 -314
- package/bundle/typescript/src/tools/pkg/pkg.class.js.map +0 -1
- package/bundle/typescript/src/tools/progress/progress.class.d.ts +0 -12
- package/bundle/typescript/src/tools/progress/progress.class.js +0 -42
- package/bundle/typescript/src/tools/progress/progress.class.js.map +0 -1
- package/bundle/typescript/src/tools/scaffold/scaffold.class.d.ts +0 -198
- package/bundle/typescript/src/tools/scaffold/scaffold.class.js +0 -868
- package/bundle/typescript/src/tools/scaffold/scaffold.class.js.map +0 -1
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.d.ts +0 -4
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.js +0 -42
- package/bundle/typescript/src/tools/spawn-async/spawn-async.class.js.map +0 -1
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.d.ts +0 -6
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.js +0 -2
- package/bundle/typescript/src/tools/spawn-async/spawn-async.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/ssh/ssh.class.d.ts +0 -11
- package/bundle/typescript/src/tools/ssh/ssh.class.js +0 -120
- package/bundle/typescript/src/tools/ssh/ssh.class.js.map +0 -1
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.d.ts +0 -21
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.js +0 -2
- package/bundle/typescript/src/tools/ssh/ssh.interfaces.js.map +0 -1
- package/bundle/typescript/src/tools/ssl/ssl.class.d.ts +0 -17
- package/bundle/typescript/src/tools/ssl/ssl.class.js +0 -54
- package/bundle/typescript/src/tools/ssl/ssl.class.js.map +0 -1
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.d.ts +0 -0
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.js +0 -1
- package/bundle/typescript/src/tools/ssl/ssl.interfaces.js.map +0 -1
|
@@ -1,895 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import { Generator } from '../../../generator.js';
|
|
4
|
-
import { Log } from '../../../tools/log/log.class.js';
|
|
5
|
-
import AuthGen from './auth.generator.js';
|
|
6
|
-
import MakaGen from '../../../generators/maka.gen.js';
|
|
7
|
-
import { ClientEngines, } from '../../../tools/fsi/fsi.interfaces.js';
|
|
8
|
-
Generator.create({
|
|
9
|
-
name: 'auth0',
|
|
10
|
-
aliases: ['a0'],
|
|
11
|
-
usage: 'maka {generate, g}:{kit, k}:{auth, a}:{auth0, a0}',
|
|
12
|
-
shortDesc: 'Generate Auth0 authentication integration with Meteor accounts',
|
|
13
|
-
validOpts: [{
|
|
14
|
-
name: 'force',
|
|
15
|
-
boolFlag: true,
|
|
16
|
-
description: 'Overwrite existing files'
|
|
17
|
-
}],
|
|
18
|
-
isPro: true,
|
|
19
|
-
resourceNameRequired: false,
|
|
20
|
-
mustBeInMakaProject: true,
|
|
21
|
-
requiredEngines: {
|
|
22
|
-
client: ClientEngines.REACT,
|
|
23
|
-
},
|
|
24
|
-
description: `
|
|
25
|
-
This kit generates an Auth0 authentication integration for your Meteor application.
|
|
26
|
-
|
|
27
|
-
It includes:
|
|
28
|
-
- Auth0 client SDK configuration
|
|
29
|
-
- Server-side JWT token validation with JWKS
|
|
30
|
-
- Account linking between Auth0 and Meteor
|
|
31
|
-
- Seamless integration with existing authentication provider
|
|
32
|
-
`
|
|
33
|
-
}, async function (args, opts) {
|
|
34
|
-
const { fsi, pkg, scaffold, projectConfig } = this;
|
|
35
|
-
try {
|
|
36
|
-
const shouldForce = opts.force || false;
|
|
37
|
-
const projectDirectory = fsi.findProjectDirectory();
|
|
38
|
-
const appPath = fsi.findAppDirectory();
|
|
39
|
-
const isSsr = projectConfig.engines.ssr === 'meteor';
|
|
40
|
-
const jsEngine = projectConfig.engines.js;
|
|
41
|
-
Log.info('Setting up Auth0 authentication...');
|
|
42
|
-
// Install required npm packages
|
|
43
|
-
Log.info('Installing Auth0 dependencies...');
|
|
44
|
-
await pkg.checkNpmPackage(['@auth0/auth0-spa-js', 'jsonwebtoken', 'jwks-rsa'], { shouldInstall: true });
|
|
45
|
-
// Ensure auth provider exists
|
|
46
|
-
await MakaGen.processAndRunGenerator('kit:auth:provider', [], { force: shouldForce, cwd: projectDirectory, config: projectConfig });
|
|
47
|
-
// Ensure auth/roles publish exists
|
|
48
|
-
await MakaGen.processAndRunGenerator('publish', ['auth/roles'], { force: shouldForce, globalPublish: true, cwd: projectDirectory, config: projectConfig });
|
|
49
|
-
const resourceTopLevelPathLib = '/imports/startup/lib';
|
|
50
|
-
const resourceTopLevelPathClient = isSsr ? '/imports/startup/lib' : '/imports/startup/client';
|
|
51
|
-
const resourceTopLevelPathServer = '/imports/startup/server';
|
|
52
|
-
// ===================================================================================
|
|
53
|
-
// 1. Generate Auth0 Configuration (Shared)
|
|
54
|
-
// ===================================================================================
|
|
55
|
-
const pathToAuth0Config = scaffold.pathFromApp({
|
|
56
|
-
pathParts: [
|
|
57
|
-
resourceTopLevelPathLib,
|
|
58
|
-
'',
|
|
59
|
-
'',
|
|
60
|
-
'auth0-config'
|
|
61
|
-
]
|
|
62
|
-
});
|
|
63
|
-
await scaffold.template({
|
|
64
|
-
srcPath: `kit/auth/service/auth0-config.js`,
|
|
65
|
-
destPath: `${pathToAuth0Config}.${jsEngine}`,
|
|
66
|
-
framework: 'react',
|
|
67
|
-
context: {},
|
|
68
|
-
config: projectConfig,
|
|
69
|
-
force: shouldForce,
|
|
70
|
-
ignore: false
|
|
71
|
-
});
|
|
72
|
-
// ===================================================================================
|
|
73
|
-
// 2. Generate Auth0 Client (Client-side)
|
|
74
|
-
// ===================================================================================
|
|
75
|
-
const pathToAuth0Client = scaffold.pathFromApp({
|
|
76
|
-
pathParts: [
|
|
77
|
-
resourceTopLevelPathClient,
|
|
78
|
-
'',
|
|
79
|
-
'',
|
|
80
|
-
'auth0-client'
|
|
81
|
-
]
|
|
82
|
-
});
|
|
83
|
-
await scaffold.template({
|
|
84
|
-
srcPath: `kit/auth/service/auth0-client.js`,
|
|
85
|
-
destPath: `${pathToAuth0Client}.${jsEngine}`,
|
|
86
|
-
framework: 'react',
|
|
87
|
-
context: {},
|
|
88
|
-
config: projectConfig,
|
|
89
|
-
force: shouldForce,
|
|
90
|
-
ignore: false
|
|
91
|
-
});
|
|
92
|
-
// ===================================================================================
|
|
93
|
-
// 3. Generate Auth0 Validator (Server-side)
|
|
94
|
-
// ===================================================================================
|
|
95
|
-
const pathToAuth0Validator = scaffold.pathFromApp({
|
|
96
|
-
pathParts: [
|
|
97
|
-
resourceTopLevelPathServer,
|
|
98
|
-
'',
|
|
99
|
-
'',
|
|
100
|
-
'auth0-validator'
|
|
101
|
-
]
|
|
102
|
-
});
|
|
103
|
-
await scaffold.template({
|
|
104
|
-
srcPath: `kit/auth/service/auth0-validator.js`,
|
|
105
|
-
destPath: `${pathToAuth0Validator}.${jsEngine}`,
|
|
106
|
-
framework: 'react',
|
|
107
|
-
context: {},
|
|
108
|
-
config: projectConfig,
|
|
109
|
-
force: shouldForce,
|
|
110
|
-
ignore: false
|
|
111
|
-
});
|
|
112
|
-
// ===================================================================================
|
|
113
|
-
// 4. Generate Auth0 Methods (Server-side)
|
|
114
|
-
// ===================================================================================
|
|
115
|
-
const pathToAuth0Methods = scaffold.pathFromApp({
|
|
116
|
-
pathParts: [
|
|
117
|
-
resourceTopLevelPathServer,
|
|
118
|
-
'methods',
|
|
119
|
-
'',
|
|
120
|
-
'auth0-methods'
|
|
121
|
-
]
|
|
122
|
-
});
|
|
123
|
-
await scaffold.template({
|
|
124
|
-
srcPath: `kit/auth/service/auth0-methods.js`,
|
|
125
|
-
destPath: `${pathToAuth0Methods}.${jsEngine}`,
|
|
126
|
-
framework: 'react',
|
|
127
|
-
context: {},
|
|
128
|
-
config: projectConfig,
|
|
129
|
-
force: shouldForce,
|
|
130
|
-
ignore: false
|
|
131
|
-
});
|
|
132
|
-
// ===================================================================================
|
|
133
|
-
// 5. Update authentication-service with Auth0 methods
|
|
134
|
-
// ===================================================================================
|
|
135
|
-
const pathToAuthService = scaffold.pathFromApp({
|
|
136
|
-
pathParts: [
|
|
137
|
-
resourceTopLevelPathClient,
|
|
138
|
-
'',
|
|
139
|
-
'',
|
|
140
|
-
'authentication-service'
|
|
141
|
-
]
|
|
142
|
-
});
|
|
143
|
-
// Import Auth0 client functions
|
|
144
|
-
await scaffold.injectAtBeginningOfFile({
|
|
145
|
-
filePath: `${pathToAuthService}.${jsEngine}`,
|
|
146
|
-
content: `import {
|
|
147
|
-
loginWithAuth0Redirect,
|
|
148
|
-
loginWithAuth0Popup,
|
|
149
|
-
handleAuth0Callback,
|
|
150
|
-
logoutAuth0,
|
|
151
|
-
getAuth0IdToken,
|
|
152
|
-
getAuth0AccessToken,
|
|
153
|
-
refreshAuth0Token,
|
|
154
|
-
} from './auth0-client';
|
|
155
|
-
`
|
|
156
|
-
});
|
|
157
|
-
// Add Auth0 methods to AuthService class
|
|
158
|
-
const auth0Methods = `
|
|
159
|
-
// ============================================================================
|
|
160
|
-
// Auth0 Authentication Methods
|
|
161
|
-
// ============================================================================
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Login with Auth0 using redirect flow
|
|
165
|
-
* User will be redirected to Auth0 login page
|
|
166
|
-
*/
|
|
167
|
-
static async loginWithAuth0Redirect() {
|
|
168
|
-
try {
|
|
169
|
-
await loginWithAuth0Redirect();
|
|
170
|
-
} catch (error) {
|
|
171
|
-
console.error('Auth0 redirect login failed:', error);
|
|
172
|
-
throw error;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Login with Auth0 using popup flow
|
|
178
|
-
* Returns the authenticated Meteor user
|
|
179
|
-
*/
|
|
180
|
-
static async loginWithAuth0Popup() {
|
|
181
|
-
try {
|
|
182
|
-
// Open Auth0 login popup and get tokens
|
|
183
|
-
const { idToken, accessToken } = await loginWithAuth0Popup();
|
|
184
|
-
|
|
185
|
-
// Call Meteor method to validate token and create/link user
|
|
186
|
-
const result = await Meteor.callAsync('auth0.login', idToken, accessToken);
|
|
187
|
-
|
|
188
|
-
// Login to Meteor with the generated token
|
|
189
|
-
return new Promise((resolve, reject) => {
|
|
190
|
-
Meteor.loginWithToken(result.token, (error) => {
|
|
191
|
-
if (error) {
|
|
192
|
-
reject(error);
|
|
193
|
-
} else {
|
|
194
|
-
resolve(Meteor.user());
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
} catch (error) {
|
|
199
|
-
console.error('Auth0 popup login failed:', error);
|
|
200
|
-
throw error;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Handle Auth0 callback after redirect
|
|
206
|
-
* Call this method on your callback page
|
|
207
|
-
*/
|
|
208
|
-
static async handleAuth0Callback() {
|
|
209
|
-
try {
|
|
210
|
-
// Handle the redirect and get tokens
|
|
211
|
-
const { idToken, accessToken } = await handleAuth0Callback();
|
|
212
|
-
|
|
213
|
-
// Call Meteor method to validate token and create/link user
|
|
214
|
-
const result = await Meteor.callAsync('auth0.login', idToken, accessToken);
|
|
215
|
-
|
|
216
|
-
// Login to Meteor with the generated token
|
|
217
|
-
return new Promise((resolve, reject) => {
|
|
218
|
-
Meteor.loginWithToken(result.token, (error) => {
|
|
219
|
-
if (error) {
|
|
220
|
-
reject(error);
|
|
221
|
-
} else {
|
|
222
|
-
resolve(Meteor.user());
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
});
|
|
226
|
-
} catch (error) {
|
|
227
|
-
console.error('Auth0 callback handling failed:', error);
|
|
228
|
-
throw error;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Link Auth0 account to currently logged in Meteor user
|
|
234
|
-
*/
|
|
235
|
-
static async linkAuth0Account() {
|
|
236
|
-
try {
|
|
237
|
-
// Get current Auth0 tokens
|
|
238
|
-
const idToken = await getAuth0IdToken();
|
|
239
|
-
const accessToken = await getAuth0AccessToken();
|
|
240
|
-
|
|
241
|
-
// Call Meteor method to link accounts
|
|
242
|
-
await Meteor.callAsync('auth0.linkAccount', idToken, accessToken);
|
|
243
|
-
|
|
244
|
-
return true;
|
|
245
|
-
} catch (error) {
|
|
246
|
-
console.error('Auth0 account linking failed:', error);
|
|
247
|
-
throw error;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* Unlink Auth0 account from current user
|
|
253
|
-
*/
|
|
254
|
-
static async unlinkAuth0Account() {
|
|
255
|
-
try {
|
|
256
|
-
await Meteor.callAsync('auth0.unlinkAccount');
|
|
257
|
-
return true;
|
|
258
|
-
} catch (error) {
|
|
259
|
-
console.error('Auth0 account unlinking failed:', error);
|
|
260
|
-
throw error;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* Logout from both Auth0 and Meteor
|
|
266
|
-
*/
|
|
267
|
-
static async logoutAuth0() {
|
|
268
|
-
try {
|
|
269
|
-
// Logout from Meteor first
|
|
270
|
-
await this.deauthenticateUser();
|
|
271
|
-
|
|
272
|
-
// Then logout from Auth0
|
|
273
|
-
await logoutAuth0();
|
|
274
|
-
} catch (error) {
|
|
275
|
-
console.error('Auth0 logout failed:', error);
|
|
276
|
-
throw error;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Silently refresh the Auth0 token and update Meteor session
|
|
282
|
-
* This is called automatically when the token is about to expire
|
|
283
|
-
* Returns the updated expiry time
|
|
284
|
-
*/
|
|
285
|
-
static async refreshAuth0Token() {
|
|
286
|
-
try {
|
|
287
|
-
// Get fresh tokens from Auth0 silently (using refresh token)
|
|
288
|
-
const { idToken, accessToken } = await refreshAuth0Token();
|
|
289
|
-
|
|
290
|
-
// Call Meteor method to validate and update tokens
|
|
291
|
-
const result = await Meteor.callAsync('auth0.refreshToken', idToken, accessToken);
|
|
292
|
-
|
|
293
|
-
return result;
|
|
294
|
-
} catch (error) {
|
|
295
|
-
console.error('Auth0 token refresh failed:', error);
|
|
296
|
-
throw error;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
`;
|
|
300
|
-
await scaffold.injectIntoFile({
|
|
301
|
-
filePath: `${pathToAuthService}.${jsEngine}`,
|
|
302
|
-
content: auth0Methods,
|
|
303
|
-
begin: 'static async resetPasswordWithToken',
|
|
304
|
-
end: '}\n\nexport default AuthService',
|
|
305
|
-
replace: false
|
|
306
|
-
});
|
|
307
|
-
// ===================================================================================
|
|
308
|
-
// 6. Update authentication-provider with Auth0 context methods
|
|
309
|
-
// ===================================================================================
|
|
310
|
-
const pathToAuthProvider = scaffold.pathFromApp({
|
|
311
|
-
pathParts: [
|
|
312
|
-
resourceTopLevelPathClient,
|
|
313
|
-
'',
|
|
314
|
-
'',
|
|
315
|
-
'authentication-provider'
|
|
316
|
-
]
|
|
317
|
-
});
|
|
318
|
-
// Import AuthService if not already imported
|
|
319
|
-
await scaffold.injectAtBeginningOfFile({
|
|
320
|
-
filePath: `${pathToAuthProvider}.${jsEngine}`,
|
|
321
|
-
content: `import AuthService from './authentication-service';
|
|
322
|
-
`
|
|
323
|
-
});
|
|
324
|
-
// Add Auth0 methods to context value
|
|
325
|
-
const auth0ProviderMethods = ` loginWithAuth0Redirect: AuthService.loginWithAuth0Redirect,
|
|
326
|
-
loginWithAuth0Popup: AuthService.loginWithAuth0Popup,
|
|
327
|
-
linkAuth0Account: AuthService.linkAuth0Account,
|
|
328
|
-
unlinkAuth0Account: AuthService.unlinkAuth0Account,
|
|
329
|
-
`;
|
|
330
|
-
await scaffold.injectIntoFile({
|
|
331
|
-
filePath: `${pathToAuthProvider}.${jsEngine}`,
|
|
332
|
-
content: auth0ProviderMethods,
|
|
333
|
-
begin: 'const contextValue = useMemo\\(\\(\\) => \\(\\{',
|
|
334
|
-
end: '\\}\\), \\[',
|
|
335
|
-
replace: false
|
|
336
|
-
});
|
|
337
|
-
// Update the authentication-provider to delegate to AuthService
|
|
338
|
-
const authProviderFilePath = `${pathToAuthProvider}.${jsEngine}`;
|
|
339
|
-
let authProviderContent = fs.readFileSync(authProviderFilePath, 'utf8');
|
|
340
|
-
// Replace placeholder auth functions with AuthService delegations
|
|
341
|
-
authProviderContent = authProviderContent
|
|
342
|
-
// Replace authenticateUser function
|
|
343
|
-
.replace(/const authenticateUser = async \(username[^}]*\{[\s\S]*?throw new Error\('Invalid credentials'\);[\s\S]*?\};/, `const authenticateUser = async (username, password) => {
|
|
344
|
-
return AuthService.authenticateUser(username, password);
|
|
345
|
-
};`)
|
|
346
|
-
// Replace authenticateToken function
|
|
347
|
-
.replace(/const authenticateToken = async \(\)[^}]*\{[\s\S]*?throw new Error\('Invalid token'\);[\s\S]*?\};/, `const authenticateToken = async () => {
|
|
348
|
-
return AuthService.authenticateToken();
|
|
349
|
-
};`)
|
|
350
|
-
// Replace getUserAuthorizations function
|
|
351
|
-
.replace(/const getUserAuthorizations = async \(user[^}]*\{[\s\S]*?return \[\];[\s\S]*?\};/, `const getUserAuthorizations = async (user) => {
|
|
352
|
-
return AuthService.getUserAuthorizations(user?._id);
|
|
353
|
-
};`)
|
|
354
|
-
// Replace deauthenticateUser function
|
|
355
|
-
.replace(/const deauthenticateUser = async \(\)[^}]*\{[\s\S]*?return true;[\s\S]*?\};/, `const deauthenticateUser = async () => {
|
|
356
|
-
return AuthService.deauthenticateUser();
|
|
357
|
-
};`)
|
|
358
|
-
// Replace sendForgotPasswordEmail function
|
|
359
|
-
.replace(/const sendForgotPasswordEmail = async \(email[^}]*\{[\s\S]*?return true;[\s\S]*?\};/, `const sendForgotPasswordEmail = async (email) => {
|
|
360
|
-
return AuthService.sendForgotPasswordEmail(email);
|
|
361
|
-
};`)
|
|
362
|
-
// Replace registerNewUser function
|
|
363
|
-
.replace(/const registerNewUser = async \(email, password[^}]*\{[\s\S]*?return true;[\s\S]*?\};/, `const registerNewUser = async (email, password) => {
|
|
364
|
-
return AuthService.registerNewUser(email, password);
|
|
365
|
-
};`)
|
|
366
|
-
// Replace resetPasswordWithToken function
|
|
367
|
-
.replace(/const resetPasswordWithToken = async \(token, password[^}]*\{[\s\S]*?return true;[\s\S]*?\};/, `const resetPasswordWithToken = async (token, password) => {
|
|
368
|
-
return AuthService.resetPasswordWithToken(token, password);
|
|
369
|
-
};`);
|
|
370
|
-
fs.writeFileSync(authProviderFilePath, authProviderContent, 'utf8');
|
|
371
|
-
// Add automatic Auth0 token refresh monitoring
|
|
372
|
-
const auth0TokenRefreshHook = jsEngine === 'tsx' ? `
|
|
373
|
-
// Auth0 automatic token refresh
|
|
374
|
-
// This hook monitors the Auth0 token expiration and refreshes it 15 seconds before expiry
|
|
375
|
-
useEffect(() => {
|
|
376
|
-
if (!currentUser) return;
|
|
377
|
-
|
|
378
|
-
let refreshTimer: NodeJS.Timeout;
|
|
379
|
-
|
|
380
|
-
const scheduleTokenRefresh = async () => {
|
|
381
|
-
try {
|
|
382
|
-
// Check if user has Auth0 account linked
|
|
383
|
-
const user = Meteor.user();
|
|
384
|
-
if (!user?.services?.auth0) return;
|
|
385
|
-
|
|
386
|
-
// Get token expiry from server
|
|
387
|
-
const tokenInfo = await Meteor.callAsync('auth0.checkTokenValidity');
|
|
388
|
-
|
|
389
|
-
if (!tokenInfo.isValid) {
|
|
390
|
-
// Token already expired, refresh immediately
|
|
391
|
-
await AuthService.refreshAuth0Token();
|
|
392
|
-
scheduleTokenRefresh(); // Schedule next refresh
|
|
393
|
-
} else if (tokenInfo.expiresAt) {
|
|
394
|
-
// Calculate time until 15 seconds before expiry
|
|
395
|
-
const expiresAt = new Date(tokenInfo.expiresAt).getTime();
|
|
396
|
-
const now = Date.now();
|
|
397
|
-
const refreshIn = expiresAt - now - 15000; // Refresh 15 seconds before expiry
|
|
398
|
-
|
|
399
|
-
if (refreshIn > 0) {
|
|
400
|
-
// Schedule refresh
|
|
401
|
-
refreshTimer = setTimeout(async () => {
|
|
402
|
-
try {
|
|
403
|
-
await AuthService.refreshAuth0Token();
|
|
404
|
-
scheduleTokenRefresh(); // Schedule next refresh after successful refresh
|
|
405
|
-
} catch (error) {
|
|
406
|
-
console.error('Failed to refresh Auth0 token:', error);
|
|
407
|
-
// If refresh fails, user will be logged out when token expires
|
|
408
|
-
}
|
|
409
|
-
}, refreshIn);
|
|
410
|
-
} else {
|
|
411
|
-
// Less than 15 seconds until expiry, refresh now
|
|
412
|
-
await AuthService.refreshAuth0Token();
|
|
413
|
-
scheduleTokenRefresh();
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
} catch (error) {
|
|
417
|
-
console.error('Error scheduling token refresh:', error);
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
scheduleTokenRefresh();
|
|
422
|
-
|
|
423
|
-
return () => {
|
|
424
|
-
if (refreshTimer) {
|
|
425
|
-
clearTimeout(refreshTimer);
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
}, [currentUser]);
|
|
429
|
-
` : `
|
|
430
|
-
// Auth0 automatic token refresh
|
|
431
|
-
// This hook monitors the Auth0 token expiration and refreshes it 15 seconds before expiry
|
|
432
|
-
useEffect(() => {
|
|
433
|
-
if (!currentUser) return;
|
|
434
|
-
|
|
435
|
-
let refreshTimer;
|
|
436
|
-
|
|
437
|
-
const scheduleTokenRefresh = async () => {
|
|
438
|
-
try {
|
|
439
|
-
// Check if user has Auth0 account linked
|
|
440
|
-
const user = Meteor.user();
|
|
441
|
-
if (!user?.services?.auth0) return;
|
|
442
|
-
|
|
443
|
-
// Get token expiry from server
|
|
444
|
-
const tokenInfo = await Meteor.callAsync('auth0.checkTokenValidity');
|
|
445
|
-
|
|
446
|
-
if (!tokenInfo.isValid) {
|
|
447
|
-
// Token already expired, refresh immediately
|
|
448
|
-
await AuthService.refreshAuth0Token();
|
|
449
|
-
scheduleTokenRefresh(); // Schedule next refresh
|
|
450
|
-
} else if (tokenInfo.expiresAt) {
|
|
451
|
-
// Calculate time until 15 seconds before expiry
|
|
452
|
-
const expiresAt = new Date(tokenInfo.expiresAt).getTime();
|
|
453
|
-
const now = Date.now();
|
|
454
|
-
const refreshIn = expiresAt - now - 15000; // Refresh 15 seconds before expiry
|
|
455
|
-
|
|
456
|
-
if (refreshIn > 0) {
|
|
457
|
-
// Schedule refresh
|
|
458
|
-
refreshTimer = setTimeout(async () => {
|
|
459
|
-
try {
|
|
460
|
-
await AuthService.refreshAuth0Token();
|
|
461
|
-
scheduleTokenRefresh(); // Schedule next refresh after successful refresh
|
|
462
|
-
} catch (error) {
|
|
463
|
-
console.error('Failed to refresh Auth0 token:', error);
|
|
464
|
-
// If refresh fails, user will be logged out when token expires
|
|
465
|
-
}
|
|
466
|
-
}, refreshIn);
|
|
467
|
-
} else {
|
|
468
|
-
// Less than 15 seconds until expiry, refresh now
|
|
469
|
-
await AuthService.refreshAuth0Token();
|
|
470
|
-
scheduleTokenRefresh();
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
} catch (error) {
|
|
474
|
-
console.error('Error scheduling token refresh:', error);
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
scheduleTokenRefresh();
|
|
479
|
-
|
|
480
|
-
return () => {
|
|
481
|
-
if (refreshTimer) {
|
|
482
|
-
clearTimeout(refreshTimer);
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
}, [currentUser]);
|
|
486
|
-
`;
|
|
487
|
-
await scaffold.injectIntoFile({
|
|
488
|
-
filePath: authProviderFilePath,
|
|
489
|
-
content: auth0TokenRefreshHook,
|
|
490
|
-
begin: 'useEffect\\(\\(\\) => \\{[\\s\\S]*?clearTimeout\\(logoutTimer\\);[\\s\\S]*?\\};[\\s\\S]*?\\}, \\[currentUser, timeoutDuration\\]\\);',
|
|
491
|
-
end: 'const contextValue = useMemo',
|
|
492
|
-
replace: false
|
|
493
|
-
});
|
|
494
|
-
// ===================================================================================
|
|
495
|
-
// 7. Import auth0-methods on server startup
|
|
496
|
-
// ===================================================================================
|
|
497
|
-
const serverIndexFilePath = scaffold.pathFromApp({
|
|
498
|
-
pathParts: [
|
|
499
|
-
'imports',
|
|
500
|
-
'startup',
|
|
501
|
-
'server',
|
|
502
|
-
'index'
|
|
503
|
-
]
|
|
504
|
-
});
|
|
505
|
-
await scaffold.injectAtEndOfFile({
|
|
506
|
-
filePath: `${serverIndexFilePath}.${jsEngine}`,
|
|
507
|
-
content: `import './methods/auth0-methods';
|
|
508
|
-
`
|
|
509
|
-
});
|
|
510
|
-
// ===================================================================================
|
|
511
|
-
// 8. Create settings.json example file
|
|
512
|
-
// ===================================================================================
|
|
513
|
-
const settingsExamplePath = path.join(projectDirectory, 'settings.auth0.json');
|
|
514
|
-
const settingsExample = {
|
|
515
|
-
public: {
|
|
516
|
-
auth0: {
|
|
517
|
-
domain: 'YOUR_AUTH0_DOMAIN.auth0.com',
|
|
518
|
-
clientId: 'YOUR_AUTH0_CLIENT_ID',
|
|
519
|
-
audience: 'https://YOUR_AUTH0_DOMAIN.auth0.com/api/v2/',
|
|
520
|
-
redirectUri: 'http://localhost:3000/auth/callback',
|
|
521
|
-
scope: 'openid profile email'
|
|
522
|
-
}
|
|
523
|
-
},
|
|
524
|
-
auth0: {
|
|
525
|
-
domain: 'YOUR_AUTH0_DOMAIN.auth0.com',
|
|
526
|
-
clientId: 'YOUR_AUTH0_CLIENT_ID',
|
|
527
|
-
clientSecret: 'YOUR_AUTH0_CLIENT_SECRET',
|
|
528
|
-
audience: 'https://YOUR_AUTH0_DOMAIN.auth0.com/api/v2/',
|
|
529
|
-
redirectUri: 'http://localhost:3000/auth/callback',
|
|
530
|
-
scope: 'openid profile email'
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
if (!fsi.isFile(settingsExamplePath) || shouldForce) {
|
|
534
|
-
fsi.writeToFile({
|
|
535
|
-
filePath: settingsExamplePath,
|
|
536
|
-
data: JSON.stringify(settingsExample, null, 2)
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
// ===================================================================================
|
|
540
|
-
// 9. Create .env.example file
|
|
541
|
-
// ===================================================================================
|
|
542
|
-
const envExamplePath = path.join(projectDirectory, '.env.auth0.example');
|
|
543
|
-
const envExample = `# Auth0 Configuration
|
|
544
|
-
# Copy this to your settings.json or .env file and fill in your Auth0 credentials
|
|
545
|
-
|
|
546
|
-
AUTH0_DOMAIN=your-domain.auth0.com
|
|
547
|
-
AUTH0_CLIENT_ID=your_client_id
|
|
548
|
-
AUTH0_CLIENT_SECRET=your_client_secret
|
|
549
|
-
AUTH0_AUDIENCE=https://your-domain.auth0.com/api/v2/
|
|
550
|
-
AUTH0_REDIRECT_URI=http://localhost:3000/auth/callback
|
|
551
|
-
AUTH0_SCOPE=openid profile email
|
|
552
|
-
`;
|
|
553
|
-
if (!fsi.isFile(envExamplePath) || shouldForce) {
|
|
554
|
-
fsi.writeToFile({
|
|
555
|
-
filePath: envExamplePath,
|
|
556
|
-
data: envExample
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
// ===================================================================================
|
|
560
|
-
// 10. Create README documentation
|
|
561
|
-
// ===================================================================================
|
|
562
|
-
const readmePath = path.join(projectDirectory, 'README.auth0.md');
|
|
563
|
-
const readmeContent = `# Auth0 Authentication Integration
|
|
564
|
-
|
|
565
|
-
This document explains how Auth0 authentication has been integrated into your Meteor application.
|
|
566
|
-
|
|
567
|
-
## Overview
|
|
568
|
-
|
|
569
|
-
This integration provides a complete Auth0 authentication solution that:
|
|
570
|
-
|
|
571
|
-
- ✅ Supports both redirect and popup login flows
|
|
572
|
-
- ✅ Validates JWT tokens server-side using JWKS
|
|
573
|
-
- ✅ Automatically creates or links Meteor user accounts
|
|
574
|
-
- ✅ Allows account linking for existing users
|
|
575
|
-
- ✅ Provides seamless integration with your existing AuthContext
|
|
576
|
-
|
|
577
|
-
## Architecture
|
|
578
|
-
|
|
579
|
-
### Client-Side Components
|
|
580
|
-
|
|
581
|
-
**\`${resourceTopLevelPathLib}/auth0-config.${jsEngine}\`**
|
|
582
|
-
- Centralized Auth0 configuration
|
|
583
|
-
- Reads settings from \`Meteor.settings.public.auth0\`
|
|
584
|
-
- Provides configuration for both client and server
|
|
585
|
-
|
|
586
|
-
**\`${resourceTopLevelPathClient}/auth0-client.${jsEngine}\`**
|
|
587
|
-
- Auth0 SDK wrapper functions
|
|
588
|
-
- Handles login redirects and popups
|
|
589
|
-
- Manages Auth0 client instance
|
|
590
|
-
- Retrieves ID tokens
|
|
591
|
-
|
|
592
|
-
**\`${resourceTopLevelPathClient}/authentication-service.${jsEngine}\`**
|
|
593
|
-
- Extended with Auth0 authentication methods
|
|
594
|
-
- Bridges Auth0 with Meteor accounts
|
|
595
|
-
- Provides static methods for all Auth0 operations
|
|
596
|
-
|
|
597
|
-
**\`${resourceTopLevelPathClient}/authentication-provider.${jsEngine}\`**
|
|
598
|
-
- Context updated with Auth0 methods
|
|
599
|
-
- Makes Auth0 functions available throughout your app
|
|
600
|
-
|
|
601
|
-
### Server-Side Components
|
|
602
|
-
|
|
603
|
-
**\`${resourceTopLevelPathServer}/auth0-validator.${jsEngine}\`**
|
|
604
|
-
- JWT token validation using JWKS
|
|
605
|
-
- Verifies token signature and claims
|
|
606
|
-
- Creates/updates user accounts from Auth0 data
|
|
607
|
-
|
|
608
|
-
**\`${resourceTopLevelPathServer}/methods/auth0-methods.${jsEngine}\`**
|
|
609
|
-
- Meteor methods for Auth0 operations
|
|
610
|
-
- \`auth0.login\` - Authenticates with ID token
|
|
611
|
-
- \`auth0.linkAccount\` - Links Auth0 to existing user
|
|
612
|
-
- \`auth0.unlinkAccount\` - Removes Auth0 link
|
|
613
|
-
|
|
614
|
-
## Setup Instructions
|
|
615
|
-
|
|
616
|
-
### 1. Configure Auth0 Application
|
|
617
|
-
|
|
618
|
-
1. Go to [Auth0 Dashboard](https://manage.auth0.com/)
|
|
619
|
-
2. Create a new application (Single Page Application)
|
|
620
|
-
3. Configure the following settings:
|
|
621
|
-
- **Allowed Callback URLs**: \`http://localhost:3000/auth/callback\`
|
|
622
|
-
- **Allowed Logout URLs**: \`http://localhost:3000\`
|
|
623
|
-
- **Allowed Web Origins**: \`http://localhost:3000\`
|
|
624
|
-
- **Allowed Origins (CORS)**: \`http://localhost:3000\`
|
|
625
|
-
|
|
626
|
-
### 2. Update Configuration
|
|
627
|
-
|
|
628
|
-
Edit \`settings.auth0.json\` with your Auth0 credentials:
|
|
629
|
-
|
|
630
|
-
\`\`\`json
|
|
631
|
-
{
|
|
632
|
-
"public": {
|
|
633
|
-
"auth0": {
|
|
634
|
-
"domain": "your-domain.auth0.com",
|
|
635
|
-
"clientId": "your_client_id",
|
|
636
|
-
"audience": "https://your-domain.auth0.com/api/v2/",
|
|
637
|
-
"redirectUri": "http://localhost:3000/auth/callback",
|
|
638
|
-
"scope": "openid profile email"
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
"auth0": {
|
|
642
|
-
"domain": "your-domain.auth0.com",
|
|
643
|
-
"clientId": "your_client_id",
|
|
644
|
-
"clientSecret": "your_client_secret",
|
|
645
|
-
"audience": "https://your-domain.auth0.com/api/v2/",
|
|
646
|
-
"redirectUri": "http://localhost:3000/auth/callback",
|
|
647
|
-
"scope": "openid profile email"
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
\`\`\`
|
|
651
|
-
|
|
652
|
-
### 3. Start Your Application
|
|
653
|
-
|
|
654
|
-
\`\`\`bash
|
|
655
|
-
cd app
|
|
656
|
-
meteor --settings ../settings.auth0.json
|
|
657
|
-
\`\`\`
|
|
658
|
-
|
|
659
|
-
## Usage
|
|
660
|
-
|
|
661
|
-
### Using Auth0 in Components
|
|
662
|
-
|
|
663
|
-
The Auth0 methods are available through the AuthContext:
|
|
664
|
-
|
|
665
|
-
\`\`\`${jsEngine === 'tsx' ? 'typescript' : 'javascript'}
|
|
666
|
-
import React, { useContext } from 'react';
|
|
667
|
-
import { AuthContext } from '${resourceTopLevelPathClient}/authentication-provider';
|
|
668
|
-
|
|
669
|
-
function LoginButton() {
|
|
670
|
-
const auth = useContext(AuthContext);
|
|
671
|
-
|
|
672
|
-
const handleLogin = async () => {
|
|
673
|
-
try {
|
|
674
|
-
// Option 1: Redirect flow (recommended)
|
|
675
|
-
await auth.loginWithAuth0Redirect?.();
|
|
676
|
-
|
|
677
|
-
// Option 2: Popup flow
|
|
678
|
-
// const user = await auth.loginWithAuth0Popup?.();
|
|
679
|
-
// console.log('Logged in user:', user);
|
|
680
|
-
} catch (error) {
|
|
681
|
-
console.error('Login failed:', error);
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
|
-
|
|
685
|
-
return <button onClick={handleLogin}>Login with Auth0</button>;
|
|
686
|
-
}
|
|
687
|
-
\`\`\`
|
|
688
|
-
|
|
689
|
-
### Using AuthService Directly
|
|
690
|
-
|
|
691
|
-
You can also use the AuthService static methods:
|
|
692
|
-
|
|
693
|
-
\`\`\`${jsEngine === 'tsx' ? 'typescript' : 'javascript'}
|
|
694
|
-
import AuthService from '${resourceTopLevelPathClient}/authentication-service';
|
|
695
|
-
|
|
696
|
-
// Redirect login
|
|
697
|
-
await AuthService.loginWithAuth0Redirect();
|
|
698
|
-
|
|
699
|
-
// Popup login
|
|
700
|
-
const user = await AuthService.loginWithAuth0Popup();
|
|
701
|
-
|
|
702
|
-
// Handle callback (use in callback page)
|
|
703
|
-
const user = await AuthService.handleAuth0Callback();
|
|
704
|
-
|
|
705
|
-
// Link Auth0 to logged-in user
|
|
706
|
-
await AuthService.linkAuth0Account();
|
|
707
|
-
|
|
708
|
-
// Unlink Auth0 account
|
|
709
|
-
await AuthService.unlinkAuth0Account();
|
|
710
|
-
|
|
711
|
-
// Logout from both Auth0 and Meteor
|
|
712
|
-
await AuthService.logoutAuth0();
|
|
713
|
-
\`\`\`
|
|
714
|
-
|
|
715
|
-
## Authentication Flow
|
|
716
|
-
|
|
717
|
-
### Redirect Flow
|
|
718
|
-
|
|
719
|
-
1. User clicks login button
|
|
720
|
-
2. \`loginWithAuth0Redirect()\` redirects to Auth0 login page
|
|
721
|
-
3. User authenticates with Auth0
|
|
722
|
-
4. Auth0 redirects back to \`/auth/callback\`
|
|
723
|
-
5. Callback page calls \`handleAuth0Callback()\`
|
|
724
|
-
6. Server validates JWT and creates/links Meteor user
|
|
725
|
-
7. User is logged into Meteor and redirected to home page
|
|
726
|
-
|
|
727
|
-
### Popup Flow
|
|
728
|
-
|
|
729
|
-
1. User clicks login button
|
|
730
|
-
2. \`loginWithAuth0Popup()\` opens Auth0 login in popup
|
|
731
|
-
3. User authenticates with Auth0
|
|
732
|
-
4. Popup closes and ID token is returned
|
|
733
|
-
5. Server validates JWT and creates/links Meteor user
|
|
734
|
-
6. User is logged into Meteor
|
|
735
|
-
7. Component receives user object
|
|
736
|
-
|
|
737
|
-
## Account Linking
|
|
738
|
-
|
|
739
|
-
Users can link their Auth0 account to an existing Meteor account:
|
|
740
|
-
|
|
741
|
-
\`\`\`${jsEngine === 'tsx' ? 'typescript' : 'javascript'}
|
|
742
|
-
// User must be logged in first
|
|
743
|
-
const auth = useContext(AuthContext);
|
|
744
|
-
await auth.linkAuth0Account?.();
|
|
745
|
-
\`\`\`
|
|
746
|
-
|
|
747
|
-
This allows users to:
|
|
748
|
-
- Login with either Meteor credentials or Auth0
|
|
749
|
-
- Maintain a single user account with multiple login methods
|
|
750
|
-
- Unlink Auth0 if they no longer want to use it
|
|
751
|
-
|
|
752
|
-
## User Data Structure
|
|
753
|
-
|
|
754
|
-
When a user logs in with Auth0, their Meteor user document includes:
|
|
755
|
-
|
|
756
|
-
\`\`\`javascript
|
|
757
|
-
{
|
|
758
|
-
_id: "userId",
|
|
759
|
-
emails: [{ address: "user@example.com", verified: true }],
|
|
760
|
-
profile: { name: "John Doe" },
|
|
761
|
-
services: {
|
|
762
|
-
auth0: {
|
|
763
|
-
id: "auth0|123456789",
|
|
764
|
-
email: "user@example.com",
|
|
765
|
-
name: "John Doe",
|
|
766
|
-
picture: "https://...",
|
|
767
|
-
email_verified: true
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
\`\`\`
|
|
772
|
-
|
|
773
|
-
## Security Features
|
|
774
|
-
|
|
775
|
-
- **JWT Validation**: Tokens are verified using Auth0's JWKS endpoint
|
|
776
|
-
- **Token Expiration**: Tokens are checked for expiration
|
|
777
|
-
- **Issuer Verification**: Ensures tokens come from your Auth0 domain
|
|
778
|
-
- **Audience Verification**: Validates tokens are for your application
|
|
779
|
-
- **Account Linking Protection**: Prevents duplicate account linking
|
|
780
|
-
|
|
781
|
-
## Troubleshooting
|
|
782
|
-
|
|
783
|
-
### "Login failed: Invalid token" Error After Successful Login
|
|
784
|
-
|
|
785
|
-
If you see this error message even though you're logged in, it's because the placeholder token validation code is still running. The Auth0 kit automatically comments out this code, but if you see this error:
|
|
786
|
-
|
|
787
|
-
1. Check your \`authentication-provider.${jsEngine}\` file
|
|
788
|
-
2. Look for the \`loginUserWithToken\` call in the \`useEffect\` hook
|
|
789
|
-
3. Ensure it's commented out (the generator does this automatically)
|
|
790
|
-
4. Meteor's authentication system handles token validation automatically
|
|
791
|
-
|
|
792
|
-
### "Invalid token" Error During Login
|
|
793
|
-
|
|
794
|
-
- Check that your Auth0 domain and clientId are correct
|
|
795
|
-
- Verify the token hasn't expired
|
|
796
|
-
- Ensure your Auth0 application settings are configured correctly
|
|
797
|
-
- Make sure the domain in settings.json doesn't include \`https://\` (the kit handles this automatically)
|
|
798
|
-
|
|
799
|
-
### "Auth0 configuration missing" Error
|
|
800
|
-
|
|
801
|
-
- Make sure you're starting Meteor with \`--settings ../settings.auth0.json\`
|
|
802
|
-
- Verify the settings file contains all required Auth0 configuration
|
|
803
|
-
|
|
804
|
-
### Callback URL Mismatch
|
|
805
|
-
|
|
806
|
-
- Ensure the callback URL in Auth0 dashboard matches your \`redirectUri\`
|
|
807
|
-
- For production, update the callback URL to your production domain
|
|
808
|
-
|
|
809
|
-
### CORS Errors
|
|
810
|
-
|
|
811
|
-
- Add your domain to "Allowed Web Origins" in Auth0 dashboard
|
|
812
|
-
- Ensure "Allowed Origins (CORS)" includes your domain
|
|
813
|
-
|
|
814
|
-
## API Reference
|
|
815
|
-
|
|
816
|
-
### AuthService Methods
|
|
817
|
-
|
|
818
|
-
#### \`loginWithAuth0Redirect()\`
|
|
819
|
-
Redirects user to Auth0 login page. User will leave your application.
|
|
820
|
-
|
|
821
|
-
**Returns**: Promise<void>
|
|
822
|
-
|
|
823
|
-
#### \`loginWithAuth0Popup()\`
|
|
824
|
-
Opens Auth0 login in a popup window. User stays on your application.
|
|
825
|
-
|
|
826
|
-
**Returns**: Promise<User>
|
|
827
|
-
|
|
828
|
-
#### \`handleAuth0Callback()\`
|
|
829
|
-
Handles the OAuth callback after redirect. Call this on your callback page.
|
|
830
|
-
|
|
831
|
-
**Returns**: Promise<User>
|
|
832
|
-
|
|
833
|
-
#### \`linkAuth0Account()\`
|
|
834
|
-
Links Auth0 account to currently logged-in Meteor user.
|
|
835
|
-
|
|
836
|
-
**Returns**: Promise<boolean>
|
|
837
|
-
|
|
838
|
-
**Throws**: Error if user not logged in or account already linked
|
|
839
|
-
|
|
840
|
-
#### \`unlinkAuth0Account()\`
|
|
841
|
-
Removes Auth0 link from current user.
|
|
842
|
-
|
|
843
|
-
**Returns**: Promise<boolean>
|
|
844
|
-
|
|
845
|
-
**Throws**: Error if Auth0 is the only login method
|
|
846
|
-
|
|
847
|
-
#### \`logoutAuth0()\`
|
|
848
|
-
Logs out from both Meteor and Auth0.
|
|
849
|
-
|
|
850
|
-
**Returns**: Promise<void>
|
|
851
|
-
|
|
852
|
-
## Next Steps
|
|
853
|
-
|
|
854
|
-
1. **Generate UI Components**: Run \`maka g:k:m:auth0\` to generate MUI login components
|
|
855
|
-
2. **Customize User Profile**: Add additional user fields from Auth0 token
|
|
856
|
-
3. **Add Roles**: Integrate with \`alanning:roles\` for authorization
|
|
857
|
-
4. **Production Setup**: Update callback URLs for production domain
|
|
858
|
-
5. **Social Connections**: Enable social login providers in Auth0 dashboard
|
|
859
|
-
|
|
860
|
-
## Additional Resources
|
|
861
|
-
|
|
862
|
-
- [Auth0 Documentation](https://auth0.com/docs)
|
|
863
|
-
- [Auth0 SPA SDK](https://auth0.com/docs/libraries/auth0-spa-js)
|
|
864
|
-
- [Meteor Accounts](https://docs.meteor.com/api/accounts.html)
|
|
865
|
-
- [JWT.io](https://jwt.io/) - Debug JWT tokens
|
|
866
|
-
|
|
867
|
-
## Support
|
|
868
|
-
|
|
869
|
-
For issues specific to this integration, please check:
|
|
870
|
-
- Auth0 dashboard for application configuration
|
|
871
|
-
- Browser console for client-side errors
|
|
872
|
-
- Meteor server logs for server-side errors
|
|
873
|
-
- Network tab to inspect Auth0 API calls
|
|
874
|
-
`;
|
|
875
|
-
if (!fsi.isFile(readmePath) || shouldForce) {
|
|
876
|
-
fsi.writeToFile({
|
|
877
|
-
filePath: readmePath,
|
|
878
|
-
data: readmeContent
|
|
879
|
-
});
|
|
880
|
-
Log.success('✓ Created README.auth0.md documentation');
|
|
881
|
-
}
|
|
882
|
-
Log.success('\n✓ Auth0 authentication integration generated successfully!');
|
|
883
|
-
Log.info('\nNext steps:');
|
|
884
|
-
Log.info('1. Configure your Auth0 application at https://manage.auth0.com/');
|
|
885
|
-
Log.info('2. Update settings.auth0.json with your Auth0 credentials');
|
|
886
|
-
Log.info('3. Start your app with: meteor --settings ../settings.auth0.json');
|
|
887
|
-
Log.info('4. Use AuthService.loginWithAuth0Redirect() or AuthService.loginWithAuth0Popup() in your components');
|
|
888
|
-
Log.info('\n📖 For detailed documentation, see README.auth0.md');
|
|
889
|
-
}
|
|
890
|
-
catch (e) {
|
|
891
|
-
Log.error(e);
|
|
892
|
-
process.exit(1);
|
|
893
|
-
}
|
|
894
|
-
}, async function () { }, AuthGen);
|
|
895
|
-
//# sourceMappingURL=auth0-meteor.auth.gen.js.map
|