create-dovite 2.0.1 → 2.2.2

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 (37) hide show
  1. package/README.md +20 -16
  2. package/index.js +10 -4
  3. package/package.json +8 -4
  4. package/src/files.js +40 -1
  5. package/src/prompts.js +2 -0
  6. package/src/setup.js +56 -33
  7. package/templates/react-js/public/thumbnail.png +0 -0
  8. package/templates/react-js/src/App.jsx +3 -9
  9. package/templates/react-js/src/pages/index.css +96 -0
  10. package/templates/react-js/src/pages/index.jsx +340 -0
  11. package/templates/react-ts/public/thumbnail.png +0 -0
  12. package/templates/react-ts/src/App.tsx +3 -9
  13. package/templates/react-ts/src/pages/index.css +96 -0
  14. package/templates/react-ts/src/pages/index.tsx +347 -0
  15. package/templates/vue-js/jsconfig.json +7 -0
  16. package/templates/vue-js/public/manifest.json +12 -0
  17. package/templates/vue-js/public/thumbnail.png +0 -0
  18. package/templates/vue-js/src/API/currentUserContext.js +61 -0
  19. package/templates/vue-js/src/API/dataApi.js +238 -0
  20. package/templates/vue-js/src/API/domoAPI.js +311 -0
  21. package/templates/vue-js/src/App.vue +9 -0
  22. package/templates/vue-js/src/index.css +1 -0
  23. package/templates/vue-js/src/main.js +6 -0
  24. package/templates/vue-js/src/pages/index.vue +699 -0
  25. package/templates/vue-js/vite.config.js +40 -0
  26. package/templates/vue-ts/public/manifest.json +12 -0
  27. package/templates/vue-ts/public/thumbnail.png +0 -0
  28. package/templates/vue-ts/src/API/currentUserContext.ts +76 -0
  29. package/templates/vue-ts/src/API/dataApi.ts +284 -0
  30. package/templates/vue-ts/src/API/domoAPI.ts +340 -0
  31. package/templates/vue-ts/src/App.vue +9 -0
  32. package/templates/vue-ts/src/index.css +1 -0
  33. package/templates/vue-ts/src/main.ts +6 -0
  34. package/templates/vue-ts/src/pages/index.vue +706 -0
  35. package/templates/vue-ts/tsconfig.app.json +31 -0
  36. package/templates/vue-ts/tsconfig.json +17 -0
  37. package/templates/vue-ts/vite.config.ts +43 -0
@@ -0,0 +1,31 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "target": "ES2022",
5
+ "useDefineForClassFields": true,
6
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
+ "module": "ESNext",
8
+ "types": ["vite/client"],
9
+ "skipLibCheck": true,
10
+ "baseUrl": ".",
11
+ "paths": {
12
+ "@/*": ["./src/*"]
13
+ },
14
+ /* Bundler mode */
15
+ "moduleResolution": "bundler",
16
+ "allowImportingTsExtensions": true,
17
+ "verbatimModuleSyntax": true,
18
+ "moduleDetection": "force",
19
+ "noEmit": true,
20
+ "jsx": "preserve",
21
+
22
+ /* Linting */
23
+ "strict": true,
24
+ "noUnusedLocals": true,
25
+ "noUnusedParameters": true,
26
+ "erasableSyntaxOnly": true,
27
+ "noFallthroughCasesInSwitch": true,
28
+ "noUncheckedSideEffectImports": true
29
+ },
30
+ "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
31
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ {
5
+ "path": "./tsconfig.app.json"
6
+ },
7
+ {
8
+ "path": "./tsconfig.node.json"
9
+ }
10
+ ],
11
+ "compilerOptions": {
12
+ "baseUrl": ".",
13
+ "paths": {
14
+ "@/*": ["./src/*"]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,43 @@
1
+ import { defineConfig } from "vite";
2
+ import vue from "@vitejs/plugin-vue";
3
+ import path from "path";
4
+ import { Proxy } from "@domoinc/ryuu-proxy";
5
+ import manifest from "./public/manifest.json";
6
+ import tailwindcss from "@tailwindcss/vite";
7
+
8
+ const config = { manifest };
9
+ const proxy = new Proxy(config);
10
+
11
+ // https://vite.dev/config/
12
+ export default defineConfig({
13
+ plugins: [
14
+ vue(),
15
+ tailwindcss(),
16
+ {
17
+ name: "ryuu-proxy",
18
+ configureServer(server) {
19
+ // Patch the `res` object to add `status` and `send` methods
20
+ server.middlewares.use((_req: any, res: any, next: any) => {
21
+ res.status = function (code: number) {
22
+ this.statusCode = code;
23
+ return this;
24
+ };
25
+ res.send = function (body: string) {
26
+ this.setHeader("Content-Type", "text/plain");
27
+ this.end(body);
28
+ };
29
+ next();
30
+ });
31
+
32
+ // Use the proxy middleware
33
+ server.middlewares.use(proxy.express());
34
+ },
35
+ },
36
+ ],
37
+ define: { "process.env": {} },
38
+ resolve: {
39
+ alias: {
40
+ "@": path.resolve(__dirname, "./src"),
41
+ },
42
+ },
43
+ });