@sfdc-webapps/base-reference-app 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/digitalExperiences/webApplications/base-reference-app/.prettierignore +9 -0
  2. package/dist/digitalExperiences/webApplications/base-reference-app/.prettierrc +11 -0
  3. package/dist/digitalExperiences/webApplications/base-reference-app/README.md +73 -0
  4. package/dist/digitalExperiences/webApplications/base-reference-app/eslint.config.js +113 -0
  5. package/dist/digitalExperiences/webApplications/base-reference-app/index.html +13 -0
  6. package/dist/digitalExperiences/webApplications/base-reference-app/package-lock.json +5248 -0
  7. package/dist/digitalExperiences/webApplications/base-reference-app/package.json +42 -0
  8. package/dist/digitalExperiences/webApplications/base-reference-app/src/app.tsx +13 -0
  9. package/dist/digitalExperiences/webApplications/base-reference-app/src/assets/icons/book.svg +3 -0
  10. package/dist/digitalExperiences/webApplications/base-reference-app/src/assets/icons/copy.svg +4 -0
  11. package/dist/digitalExperiences/webApplications/base-reference-app/src/assets/icons/rocket.svg +3 -0
  12. package/dist/digitalExperiences/webApplications/base-reference-app/src/assets/icons/star.svg +3 -0
  13. package/dist/digitalExperiences/webApplications/base-reference-app/src/assets/images/codey-1.png +0 -0
  14. package/dist/digitalExperiences/webApplications/base-reference-app/src/assets/images/codey-2.png +0 -0
  15. package/dist/digitalExperiences/webApplications/base-reference-app/src/assets/images/codey-3.png +0 -0
  16. package/dist/digitalExperiences/webApplications/base-reference-app/src/assets/images/vibe-codey.svg +194 -0
  17. package/dist/digitalExperiences/webApplications/base-reference-app/src/pages/About.tsx +12 -0
  18. package/dist/digitalExperiences/webApplications/base-reference-app/src/pages/Home.tsx +12 -0
  19. package/dist/digitalExperiences/webApplications/base-reference-app/src/pages/NotFound.tsx +18 -0
  20. package/dist/digitalExperiences/webApplications/base-reference-app/src/routes.tsx +23 -0
  21. package/dist/digitalExperiences/webApplications/base-reference-app/src/styles/global.css +11 -0
  22. package/dist/digitalExperiences/webApplications/base-reference-app/tsconfig.json +38 -0
  23. package/dist/digitalExperiences/webApplications/base-reference-app/tsconfig.node.json +13 -0
  24. package/dist/digitalExperiences/webApplications/base-reference-app/vite-env.d.ts +1 -0
  25. package/dist/digitalExperiences/webApplications/base-reference-app/vite.config.ts +82 -0
  26. package/dist/digitalExperiences/webApplications/base-reference-app/vitest-env.d.ts +2 -0
  27. package/dist/digitalExperiences/webApplications/base-reference-app/vitest.config.ts +11 -0
  28. package/dist/digitalExperiences/webApplications/base-reference-app/vitest.setup.ts +1 -0
  29. package/dist/digitalExperiences/webApplications/base-reference-app/webapp.json +12 -0
  30. package/package.json +4 -1
  31. package/feature.ts +0 -5
  32. package/template/webApp/src/routes.tsx +0 -10
  33. package/tsconfig.app.json +0 -28
  34. package/tsconfig.json +0 -7
  35. package/tsconfig.node.json +0 -26
  36. /package/{template/webApp/src/__inherit__appLayout.tsx → dist/digitalExperiences/webApplications/base-reference-app/src/appLayout.tsx} +0 -0
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from 'vitest/config';
2
+ import react from '@vitejs/plugin-react';
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ test: {
7
+ globals: true,
8
+ environment: 'jsdom',
9
+ setupFiles: './vitest.setup.ts',
10
+ },
11
+ });
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom/vitest';
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "base-react-app",
3
+ "label": "Base React App",
4
+ "description": "Base React App for Salesforce Web Applications",
5
+ "version": "1.0.0",
6
+ "outputDir": "dist",
7
+ "routing": {
8
+ "trailingSlash": "never",
9
+ "fallback": "/index.html"
10
+ }
11
+ }
12
+
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@sfdc-webapps/base-reference-app",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Base reference app template",
5
5
  "license": "ISC",
6
6
  "author": "",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
+ "files": [
10
+ "dist"
11
+ ],
9
12
  "publishConfig": {
10
13
  "access": "public"
11
14
  },
package/feature.ts DELETED
@@ -1,5 +0,0 @@
1
- import type { Feature } from '../cli/src/types.js';
2
-
3
- const feature: Feature = {};
4
-
5
- export default feature;
@@ -1,10 +0,0 @@
1
- import type { RouteObject } from "react-router";
2
- import AppLayout from "./__inherit__appLayout";
3
-
4
- export const routes: RouteObject[] = [
5
- {
6
- path: '/',
7
- element: <AppLayout />,
8
- children: []
9
- }
10
- ]
package/tsconfig.app.json DELETED
@@ -1,28 +0,0 @@
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
-
11
- /* Bundler mode */
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "moduleDetection": "force",
16
- "noEmit": true,
17
- "jsx": "react-jsx",
18
-
19
- /* Linting */
20
- "strict": true,
21
- "noUnusedLocals": true,
22
- "noUnusedParameters": true,
23
- "erasableSyntaxOnly": true,
24
- "noFallthroughCasesInSwitch": true,
25
- "noUncheckedSideEffectImports": true
26
- },
27
- "include": ["template/webApp"]
28
- }
package/tsconfig.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- { "path": "./tsconfig.app.json" },
5
- { "path": "./tsconfig.node.json" }
6
- ]
7
- }
@@ -1,26 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
- "target": "ES2023",
5
- "lib": ["ES2023"],
6
- "module": "ESNext",
7
- "types": ["node"],
8
- "skipLibCheck": true,
9
-
10
- /* Bundler mode */
11
- "moduleResolution": "bundler",
12
- "allowImportingTsExtensions": true,
13
- "verbatimModuleSyntax": true,
14
- "moduleDetection": "force",
15
- "noEmit": true,
16
-
17
- /* Linting */
18
- "strict": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "erasableSyntaxOnly": true,
22
- "noFallthroughCasesInSwitch": true,
23
- "noUncheckedSideEffectImports": true
24
- },
25
- "include": ["vite.config.ts"]
26
- }