@sfdc-webapps/base-web-app 1.0.3

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/build.sh ADDED
@@ -0,0 +1,4 @@
1
+ #!/bin/bash
2
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
3
+ cp -r "$SCRIPT_DIR/src/." "$SCRIPT_DIR/dist/"
4
+
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@sfdc-webapps/base-web-app",
3
+ "version": "1.0.3",
4
+ "description": "Base web app template",
5
+ "license": "ISC",
6
+ "author": "",
7
+ "type": "module",
8
+ "main": "index.js",
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "scripts": {
13
+ "build": "bash build.sh",
14
+ "clean": "rm -rf dist",
15
+ "test": "vitest run",
16
+ "test:coverage": "vitest run --coverage"
17
+ },
18
+ "devDependencies": {
19
+ "@vitest/coverage-v8": "2.1.9",
20
+ "@types/node": "^24.10.1",
21
+ "vitest": "^2.1.8"
22
+ }
23
+ }
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <WebApplication xmlns="http://soap.sforce.com/2006/04/metadata">
3
+ <apiVersion><%= apiVersion %></apiVersion>
4
+ <masterLabel><%= masterLabel %></masterLabel>
5
+ <description>A Salesforce web application.</description>
6
+ <active>true</active>
7
+ </WebApplication>
package/src/index.html ADDED
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title><%= masterLabel %></title>
7
+ </head>
8
+ <body>
9
+ <h1><%= masterLabel %></h1>
10
+ </body>
11
+ </html>
@@ -0,0 +1,11 @@
1
+ {
2
+ "outputDir": "dist",
3
+ "routing": {
4
+ "rewrites": [
5
+ {
6
+ "route": "/*",
7
+ "rewrite": "index.html"
8
+ }
9
+ ]
10
+ }
11
+ }
@@ -0,0 +1,24 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ globals: true,
6
+ environment: 'node',
7
+ include: ['test/**/*.spec.ts'],
8
+ exclude: ['**/node_modules/**', '**/dist/**'],
9
+ passWithNoTests: true,
10
+ coverage: {
11
+ provider: 'v8',
12
+ reporter: ['text', 'json', 'html'],
13
+ exclude: [
14
+ '**/node_modules/**',
15
+ '**/dist/**',
16
+ '**/*.config.ts',
17
+ '**/*.config.js',
18
+ 'vitest.config.ts',
19
+ '**/vitest.config.ts',
20
+ ],
21
+ },
22
+ },
23
+ });
24
+