@aerogel/cli 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.eslintrc.js +7 -0
  2. package/bin/ag +4 -0
  3. package/dist/aerogel-cli.cjs.js +2 -0
  4. package/dist/aerogel-cli.cjs.js.map +1 -0
  5. package/dist/aerogel-cli.d.ts +10 -0
  6. package/dist/aerogel-cli.esm.js +2 -0
  7. package/dist/aerogel-cli.esm.js.map +1 -0
  8. package/noeldemartin.config.js +4 -0
  9. package/package.json +46 -0
  10. package/src/cli.ts +23 -0
  11. package/src/commands/Command.ts +59 -0
  12. package/src/commands/create.test.ts +25 -0
  13. package/src/commands/create.ts +69 -0
  14. package/src/commands/generate-component.test.ts +33 -0
  15. package/src/commands/generate-component.ts +65 -0
  16. package/src/commands/generate-model.test.ts +34 -0
  17. package/src/commands/generate-model.ts +73 -0
  18. package/src/lib/App.ts +25 -0
  19. package/src/lib/File.mock.ts +66 -0
  20. package/src/lib/File.ts +66 -0
  21. package/src/lib/Log.mock.ts +28 -0
  22. package/src/lib/Log.test.ts +21 -0
  23. package/src/lib/Log.ts +79 -0
  24. package/src/lib/Shell.mock.ts +20 -0
  25. package/src/lib/Shell.ts +28 -0
  26. package/src/lib/Template.ts +55 -0
  27. package/src/lib/utils.test.ts +33 -0
  28. package/src/lib/utils.ts +44 -0
  29. package/src/main.ts +3 -0
  30. package/src/testing/setup.ts +42 -0
  31. package/src/types/ts-reset.d.ts +1 -0
  32. package/templates/app/.github/workflows/ci.yml +17 -0
  33. package/templates/app/.nvmrc +1 -0
  34. package/templates/app/cypress/e2e/app.cy.ts +9 -0
  35. package/templates/app/cypress/support/e2e.ts +3 -0
  36. package/templates/app/cypress/tsconfig.json +12 -0
  37. package/templates/app/cypress.config.ts +8 -0
  38. package/templates/app/index.html +12 -0
  39. package/templates/app/package.json +44 -0
  40. package/templates/app/postcss.config.js +6 -0
  41. package/templates/app/src/App.vue +10 -0
  42. package/templates/app/src/assets/styles.css +3 -0
  43. package/templates/app/src/lang/en.yaml +3 -0
  44. package/templates/app/src/main.test.ts +9 -0
  45. package/templates/app/src/main.ts +9 -0
  46. package/templates/app/src/types/globals.d.ts +3 -0
  47. package/templates/app/src/types/shims.d.ts +7 -0
  48. package/templates/app/src/types/ts-reset.d.ts +1 -0
  49. package/templates/app/tailwind.config.js +5 -0
  50. package/templates/app/tsconfig.json +18 -0
  51. package/templates/app/vite.config.ts +21 -0
  52. package/templates/component/[component.name].vue +3 -0
  53. package/templates/component-story/[component.name].story.vue +7 -0
  54. package/templates/model/[model.name].schema.ts +7 -0
  55. package/templates/model/[model.name].ts +3 -0
  56. package/tsconfig.json +11 -0
  57. package/vite.config.ts +14 -0
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <Story>
3
+ <Variant title="Primary">
4
+ <<% component.name %> />
5
+ </Variant>
6
+ </Story>
7
+ </template>
@@ -0,0 +1,7 @@
1
+ import { <% soukaiImports %> } from 'soukai';
2
+
3
+ export default defineModelSchema({
4
+ fields: {
5
+ <% &model.fieldsDefinition %>
6
+ },
7
+ });
@@ -0,0 +1,3 @@
1
+ import Model from './<% model.name %>.schema';
2
+
3
+ export default class <% model.name %> extends Model {}
package/tsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "types": ["node"],
5
+ "baseUrl": ".",
6
+ "paths": {
7
+ "@/*": ["./src/*"]
8
+ }
9
+ },
10
+ "include": ["src/**/*.ts"]
11
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { defineConfig } from 'vitest/config';
2
+ import { resolve } from 'path';
3
+
4
+ export default defineConfig({
5
+ test: {
6
+ clearMocks: true,
7
+ setupFiles: ['./src/testing/setup.ts'],
8
+ },
9
+ resolve: {
10
+ alias: {
11
+ '@': resolve(__dirname, './src'),
12
+ },
13
+ },
14
+ });