@genesislcap/foundation-cli 14.129.0 → 14.131.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.
@@ -1 +1 @@
1
- {"version":3,"file":"designSystem.d.ts","sourceRoot":"","sources":["../../../../src/plop/generators/designSystem/designSystem.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAoBrD,eAAO,MAAM,qBAAqB,EAAE,mBAoYnC,CAAC"}
1
+ {"version":3,"file":"designSystem.d.ts","sourceRoot":"","sources":["../../../../src/plop/generators/designSystem/designSystem.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAoBrD,eAAO,MAAM,qBAAqB,EAAE,mBA0YnC,CAAC"}
@@ -157,6 +157,12 @@ exports.designSystemGenerator = {
157
157
  });
158
158
  });
159
159
  return [
160
+ () => {
161
+ const source = path_1.default.resolve(__dirname, `../../templates/design-system/.storybook`);
162
+ const target = path_1.default.resolve(__dirname, `${outputDir}/${dsPrefix}-design-system/.storybook`);
163
+ (0, utils_1.copyFiles)(source, target);
164
+ return `Copied files form ${source} to ${target}`;
165
+ },
160
166
  () => {
161
167
  const source = path_1.default.resolve(__dirname, `../../templates/design-system/_common`);
162
168
  const target = path_1.default.resolve(__dirname, `${outputDir}/${dsPrefix}-design-system/src/_common`);
@@ -0,0 +1,24 @@
1
+ import type { StorybookConfig } from '@storybook/builder-vite';
2
+
3
+ const config: StorybookConfig = {
4
+ addons: ['@storybook/addon-coverage', '@storybook/addon-links', '@storybook/addon-essentials'],
5
+ core: {
6
+ builder: '@storybook/builder-vite',
7
+ },
8
+ docs: {
9
+ autodocs: true
10
+ },
11
+ framework: {
12
+ name: '@storybook/web-components-vite'
13
+ },
14
+ stories: ['../src'],
15
+ async viteFinal(config, options) {
16
+ // Add your configuration here
17
+
18
+ config.optimizeDeps?.include?.push('./src');
19
+ console.log(config);
20
+ return config;
21
+ },
22
+ };
23
+
24
+ export default config;
@@ -0,0 +1,11 @@
1
+ <style>
2
+ html, body, #root {
3
+ margin: 0;
4
+ display: flex;
5
+ flex-direction: column;
6
+ height: 100%;
7
+ }
8
+ </style>
9
+ <script>
10
+ window.global = window;
11
+ </script>
@@ -0,0 +1,17 @@
1
+ import { html } from 'lit-html';
2
+
3
+ const withThemeProvider = (Story) => html`
4
+ ${Story()}
5
+ `;
6
+
7
+ export const decorators = [withThemeProvider];
8
+
9
+ export const parameters = {
10
+ actions: { argTypesRegex: "^on[A-Z].*" },
11
+ controls: {
12
+ matchers: {
13
+ color: /(background|color)$/i,
14
+ date: /Date$/,
15
+ },
16
+ },
17
+ }
@@ -22,10 +22,13 @@
22
22
  "clean": "rimraf dist tsconfig.tsbuildinfo",
23
23
  "dev": "npm run dev:tsc",
24
24
  "dev:rollup": "genx dev -b rollup",
25
- "dev:tsc": "genx dev -b ts"
25
+ "dev:tsc": "genx dev -b ts",
26
+ "start": "npm run storybook",
27
+ "storybook": "storybook dev -p 6006",
28
+ "test-storybook": "test-storybook -- --coverage --passWithNoTests"
26
29
  },
27
30
  "devDependencies": {
28
- "@genesislcap/genx": "^14.14.0",
31
+ "@genesislcap/genx": "{{baseDsPackageVersion}}",
29
32
  "@playwright/test": "^1.18.1",
30
33
  "@storybook/addon-essentials": "^7.6.7",
31
34
  "@storybook/addon-links": "^7.6.7",
@@ -40,12 +43,11 @@
40
43
  },
41
44
  "dependencies": {
42
45
  "{{baseDsPackageName}}": "{{baseDsPackageVersion}}",
43
- "@microsoft/fast-colors": "^5.1.4",
44
- "@microsoft/fast-components": "^2.21.3",
45
- "@microsoft/fast-element": "^1.7.0",
46
- "@microsoft/fast-foundation": "^2.33.2",
47
- "@microsoft/fast-router": "^0.4.2",
48
- "@microsoft/fast-web-utilities": "^5.0.2",
46
+ "@microsoft/fast-colors": "^5.3.1",
47
+ "@microsoft/fast-components": "^2.30.6",
48
+ "@microsoft/fast-element": "^1.12.0",
49
+ "@microsoft/fast-foundation": "^2.49.4",
50
+ "@microsoft/fast-web-utilities": "^5.4.1",
49
51
  "tslib": "^2.3.1"
50
52
  },
51
53
  "repository": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-cli",
3
3
  "description": "Genesis Foundation CLI",
4
- "version": "14.129.0",
4
+ "version": "14.131.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "3c5fc48788499117b7acb540f96adb11bc4f05d3"
69
+ "gitHead": "9700c4db04186e6579ff05be972fbab156dd0272"
70
70
  }