@aurelia/storybook 2.2.1 → 2.3.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 (140) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/README.md +18 -14
  3. package/dist/index.js +34 -14
  4. package/dist/index.js.map +1 -1
  5. package/dist/preset.js +30 -20
  6. package/dist/preset.js.map +1 -1
  7. package/dist/preview/render.d.ts +1 -1
  8. package/dist/preview/render.js +34 -14
  9. package/dist/preview/render.js.map +1 -1
  10. package/dist/preview.js +34 -14
  11. package/dist/preview.js.map +1 -1
  12. package/package.json +30 -15
  13. package/preset.js +2 -1
  14. package/.github/workflows/ci.yml +0 -61
  15. package/.github/workflows/publish.yml +0 -82
  16. package/.github/workflows/storybook-preview.yml +0 -62
  17. package/__tests__/create-aurelia-app.test.ts +0 -94
  18. package/__tests__/preset.test.ts +0 -78
  19. package/__tests__/preview.test.ts +0 -17
  20. package/__tests__/render.test.ts +0 -176
  21. package/__tests__/webpack.test.ts +0 -21
  22. package/apps/hello-world/.storybook/main.ts +0 -49
  23. package/apps/hello-world/.storybook/preview.ts +0 -1
  24. package/apps/hello-world/.stylelintrc.json +0 -5
  25. package/apps/hello-world/README.md +0 -28
  26. package/apps/hello-world/eslint.config.mjs +0 -25
  27. package/apps/hello-world/favicon.ico +0 -0
  28. package/apps/hello-world/index.html +0 -17
  29. package/apps/hello-world/package-lock.json +0 -9424
  30. package/apps/hello-world/package.json +0 -55
  31. package/apps/hello-world/src/components/feedback-form.html +0 -111
  32. package/apps/hello-world/src/components/feedback-form.ts +0 -45
  33. package/apps/hello-world/src/components/notification-center.html +0 -119
  34. package/apps/hello-world/src/components/notification-center.ts +0 -27
  35. package/apps/hello-world/src/components/stat-card.html +0 -107
  36. package/apps/hello-world/src/components/stat-card.ts +0 -41
  37. package/apps/hello-world/src/components/weather-widget.html +0 -89
  38. package/apps/hello-world/src/components/weather-widget.ts +0 -31
  39. package/apps/hello-world/src/hello-world.html +0 -48
  40. package/apps/hello-world/src/hello-world.ts +0 -17
  41. package/apps/hello-world/src/main.ts +0 -6
  42. package/apps/hello-world/src/my-app.html +0 -1
  43. package/apps/hello-world/src/my-app.ts +0 -3
  44. package/apps/hello-world/src/resource.d.ts +0 -15
  45. package/apps/hello-world/src/services/weather-service.ts +0 -15
  46. package/apps/hello-world/src/stories/feedback-form.stories.ts +0 -58
  47. package/apps/hello-world/src/stories/hello-world.stories.ts +0 -64
  48. package/apps/hello-world/src/stories/notification-center.stories.ts +0 -88
  49. package/apps/hello-world/src/stories/stat-card.stories.ts +0 -75
  50. package/apps/hello-world/src/stories/weather-widget.stories.ts +0 -62
  51. package/apps/hello-world/test/my-app.spec.ts +0 -15
  52. package/apps/hello-world/test/setup.ts +0 -29
  53. package/apps/hello-world/tsconfig.json +0 -19
  54. package/apps/hello-world/tsconfig.vitest.json +0 -11
  55. package/apps/hello-world/vite.config.ts +0 -17
  56. package/apps/hello-world/vitest.config.ts +0 -15
  57. package/apps/hello-world-rsbuild/.storybook/main.ts +0 -16
  58. package/apps/hello-world-rsbuild/.storybook/preview.ts +0 -1
  59. package/apps/hello-world-rsbuild/.stylelintrc.json +0 -5
  60. package/apps/hello-world-rsbuild/README.md +0 -28
  61. package/apps/hello-world-rsbuild/eslint.config.mjs +0 -25
  62. package/apps/hello-world-rsbuild/favicon.ico +0 -0
  63. package/apps/hello-world-rsbuild/index.html +0 -17
  64. package/apps/hello-world-rsbuild/package-lock.json +0 -11131
  65. package/apps/hello-world-rsbuild/package.json +0 -56
  66. package/apps/hello-world-rsbuild/src/components/feedback-form.html +0 -111
  67. package/apps/hello-world-rsbuild/src/components/feedback-form.ts +0 -45
  68. package/apps/hello-world-rsbuild/src/components/notification-center.html +0 -119
  69. package/apps/hello-world-rsbuild/src/components/notification-center.ts +0 -27
  70. package/apps/hello-world-rsbuild/src/components/stat-card.html +0 -107
  71. package/apps/hello-world-rsbuild/src/components/stat-card.ts +0 -41
  72. package/apps/hello-world-rsbuild/src/components/weather-widget.html +0 -89
  73. package/apps/hello-world-rsbuild/src/components/weather-widget.ts +0 -31
  74. package/apps/hello-world-rsbuild/src/hello-world.html +0 -48
  75. package/apps/hello-world-rsbuild/src/hello-world.ts +0 -17
  76. package/apps/hello-world-rsbuild/src/main.ts +0 -6
  77. package/apps/hello-world-rsbuild/src/my-app.html +0 -1
  78. package/apps/hello-world-rsbuild/src/my-app.ts +0 -3
  79. package/apps/hello-world-rsbuild/src/resource.d.ts +0 -15
  80. package/apps/hello-world-rsbuild/src/services/weather-service.ts +0 -15
  81. package/apps/hello-world-rsbuild/src/stories/feedback-form.stories.ts +0 -58
  82. package/apps/hello-world-rsbuild/src/stories/hello-world.stories.ts +0 -64
  83. package/apps/hello-world-rsbuild/src/stories/notification-center.stories.ts +0 -88
  84. package/apps/hello-world-rsbuild/src/stories/stat-card.stories.ts +0 -75
  85. package/apps/hello-world-rsbuild/src/stories/weather-widget.stories.ts +0 -62
  86. package/apps/hello-world-rsbuild/test/my-app.spec.ts +0 -15
  87. package/apps/hello-world-rsbuild/test/setup.ts +0 -29
  88. package/apps/hello-world-rsbuild/tsconfig.json +0 -19
  89. package/apps/hello-world-rsbuild/tsconfig.vitest.json +0 -11
  90. package/apps/hello-world-rsbuild/vite.config.ts +0 -17
  91. package/apps/hello-world-rsbuild/vitest.config.ts +0 -15
  92. package/apps/hello-world-webpack/.env.development +0 -0
  93. package/apps/hello-world-webpack/.storybook/main.ts +0 -14
  94. package/apps/hello-world-webpack/.storybook/preview.ts +0 -3
  95. package/apps/hello-world-webpack/.stylelintrc.json +0 -5
  96. package/apps/hello-world-webpack/README.md +0 -29
  97. package/apps/hello-world-webpack/eslint.config.mjs +0 -25
  98. package/apps/hello-world-webpack/favicon.ico +0 -0
  99. package/apps/hello-world-webpack/index.html +0 -15
  100. package/apps/hello-world-webpack/package-lock.json +0 -9828
  101. package/apps/hello-world-webpack/package.json +0 -52
  102. package/apps/hello-world-webpack/src/components/feedback-form.html +0 -111
  103. package/apps/hello-world-webpack/src/components/feedback-form.ts +0 -45
  104. package/apps/hello-world-webpack/src/components/notification-center.html +0 -119
  105. package/apps/hello-world-webpack/src/components/notification-center.ts +0 -27
  106. package/apps/hello-world-webpack/src/components/stat-card.html +0 -107
  107. package/apps/hello-world-webpack/src/components/stat-card.ts +0 -41
  108. package/apps/hello-world-webpack/src/components/weather-widget.html +0 -89
  109. package/apps/hello-world-webpack/src/components/weather-widget.ts +0 -31
  110. package/apps/hello-world-webpack/src/hello-world.html +0 -48
  111. package/apps/hello-world-webpack/src/hello-world.ts +0 -17
  112. package/apps/hello-world-webpack/src/main.ts +0 -6
  113. package/apps/hello-world-webpack/src/my-app.css +0 -3
  114. package/apps/hello-world-webpack/src/my-app.html +0 -1
  115. package/apps/hello-world-webpack/src/my-app.stories.ts +0 -17
  116. package/apps/hello-world-webpack/src/my-app.ts +0 -3
  117. package/apps/hello-world-webpack/src/resource.d.ts +0 -13
  118. package/apps/hello-world-webpack/src/services/weather-service.ts +0 -15
  119. package/apps/hello-world-webpack/src/stories/feedback-form.stories.ts +0 -58
  120. package/apps/hello-world-webpack/src/stories/hello-world.stories.ts +0 -64
  121. package/apps/hello-world-webpack/src/stories/notification-center.stories.ts +0 -88
  122. package/apps/hello-world-webpack/src/stories/stat-card.stories.ts +0 -75
  123. package/apps/hello-world-webpack/src/stories/weather-widget.stories.ts +0 -62
  124. package/apps/hello-world-webpack/tsconfig.json +0 -18
  125. package/apps/hello-world-webpack/webpack.config.js +0 -111
  126. package/jest.config.cjs +0 -9
  127. package/rollup.config.mjs +0 -52
  128. package/scripts/sync-versions.cjs +0 -55
  129. package/src/index.ts +0 -42
  130. package/src/preset.ts +0 -79
  131. package/src/preview/helpers.ts +0 -7
  132. package/src/preview/render.ts +0 -243
  133. package/src/preview/storybook-types-runtime.ts +0 -2
  134. package/src/preview/storybook-types.ts +0 -34
  135. package/src/preview/types-runtime.ts +0 -2
  136. package/src/preview/types.ts +0 -62
  137. package/src/preview.ts +0 -11
  138. package/src/webpack.ts +0 -40
  139. package/tsconfig.build.json +0 -5
  140. package/tsconfig.json +0 -15
@@ -1,6 +0,0 @@
1
- import Aurelia from 'aurelia';
2
- import { MyApp } from './my-app';
3
-
4
- Aurelia
5
- .app(MyApp)
6
- .start();
@@ -1 +0,0 @@
1
- <h1>Hello World</h1>
@@ -1,3 +0,0 @@
1
- export class MyApp {
2
- // Your app logic
3
- }
@@ -1,15 +0,0 @@
1
- declare module '*.html' {
2
- import { IContainer, PartialBindableDefinition } from 'aurelia';
3
- export const name: string;
4
- export const template: string;
5
- export default template;
6
- export const dependencies: string[];
7
- export const containerless: boolean | undefined;
8
- export const bindables: Record<string, PartialBindableDefinition>;
9
- export const shadowOptions: { mode: 'open' | 'closed' } | undefined;
10
- export function register(container: IContainer): void;
11
- }
12
-
13
- declare module '*.css';
14
-
15
- declare module '*.au';
@@ -1,15 +0,0 @@
1
- import { DI } from 'aurelia';
2
-
3
- export interface WeatherSummary {
4
- location: string;
5
- condition: string;
6
- temperature: number;
7
- high: number;
8
- low: number;
9
- }
10
-
11
- export interface WeatherService {
12
- getWeather(location: string): Promise<WeatherSummary>;
13
- }
14
-
15
- export const IWeatherService = DI.createInterface<WeatherService>('IWeatherService');
@@ -1,58 +0,0 @@
1
- import { defineAureliaStory } from '@aurelia/storybook';
2
- import { fn, userEvent, within } from 'storybook/test';
3
- import { FeedbackForm } from '../components/feedback-form';
4
-
5
- type FeedbackFormArgs = {
6
- topics: string[];
7
- submitting?: boolean;
8
- onSubmit?: (payload: unknown) => void;
9
- };
10
-
11
- const meta = {
12
- title: 'Dashboard/FeedbackForm',
13
- component: FeedbackForm,
14
- parameters: {
15
- layout: 'centered',
16
- },
17
- render: (args: FeedbackFormArgs) =>
18
- defineAureliaStory({
19
- template: `<feedback-form topics.bind="topics"
20
- submitting.bind="submitting"
21
- on-submit.bind="onSubmit"></feedback-form>`,
22
- props: args,
23
- components: [FeedbackForm],
24
- }),
25
- };
26
-
27
- export default meta;
28
-
29
- export const DefaultForm = {
30
- args: {
31
- topics: ['Bug report', 'Feature request', 'General question'],
32
- onSubmit: fn(),
33
- submitting: false,
34
- },
35
- };
36
-
37
- export const SubmittingState = {
38
- args: {
39
- topics: ['Design review', 'Accessibility', 'Performance'],
40
- submitting: true,
41
- onSubmit: fn(),
42
- },
43
- };
44
-
45
- export const FillAndSubmit = {
46
- args: {
47
- topics: ['Beta feedback', 'Success story'],
48
- onSubmit: fn(),
49
- },
50
- play: async ({ canvasElement }) => {
51
- const canvas = within(canvasElement);
52
- await userEvent.type(canvas.getByLabelText('Name'), 'Jordan');
53
- await userEvent.type(canvas.getByLabelText('Email'), 'jordan@example.com');
54
- await userEvent.selectOptions(canvas.getByLabelText('Topic'), 'Success story');
55
- await userEvent.type(canvas.getByLabelText('Message'), 'The new timeline view is great');
56
- await userEvent.click(canvas.getByRole('button', { name: /send feedback/i }));
57
- },
58
- };
@@ -1,64 +0,0 @@
1
- import { defineAureliaStory } from '@aurelia/storybook';
2
- import { HelloWorld } from '../hello-world';
3
- import { fn, userEvent, within } from 'storybook/test';
4
-
5
- type HelloWorldArgs = {
6
- message?: string;
7
- onIncrement?: () => void;
8
- };
9
-
10
- const meta = {
11
- title: 'Example/HelloWorld',
12
- component: HelloWorld,
13
- render: (args: HelloWorldArgs) =>
14
- defineAureliaStory({
15
- template: `<hello-world message.bind="message" on-increment.bind="onIncrement"></hello-world>`,
16
- props: args,
17
- }),
18
- argTypes: {
19
- message: { control: 'text' },
20
- onIncrement: { action: 'increment' }
21
- }
22
- };
23
-
24
- export default meta;
25
-
26
- export const DefaultHelloWorld = {
27
- args: {
28
- message: 'Hello from Aurelia Storybook',
29
- onIncrement: fn()
30
- }
31
- };
32
-
33
- export const InteractiveHelloWorld = {
34
- args: {
35
- message: 'Try clicking the button!',
36
- onIncrement: fn()
37
- },
38
- play: async ({ canvasElement }: { canvasElement: HTMLElement }) => {
39
- const canvas = within(canvasElement);
40
- const button = canvas.getByRole('button');
41
- // Simulate three button clicks
42
- await userEvent.click(button);
43
- await userEvent.click(button);
44
- await userEvent.click(button);
45
- }
46
- };
47
-
48
- export const NoArgs = {
49
- render: () =>
50
- defineAureliaStory({
51
- template: `<hello-world></hello-world>`,
52
- })
53
- };
54
-
55
- export const WithCustomTemplate = {
56
- render: (args: HelloWorldArgs) =>
57
- defineAureliaStory({
58
- template: `<hello-world message.bind="message">Click me!</hello-world>`,
59
- props: args,
60
- }),
61
- args: {
62
- message: 'This is a custom message'
63
- }
64
- };
@@ -1,88 +0,0 @@
1
- import { defineAureliaStory } from '@aurelia/storybook';
2
- import { fn, userEvent, within } from 'storybook/test';
3
- import { NotificationCenter, NotificationItem } from '../components/notification-center';
4
-
5
- type NotificationCenterArgs = {
6
- notifications: NotificationItem[];
7
- maxVisible?: number;
8
- showTimestamp?: boolean;
9
- onDismiss?: (item: NotificationItem) => void;
10
- };
11
-
12
- const baseNotifications: NotificationItem[] = [
13
- {
14
- id: 1,
15
- title: 'Build succeeded',
16
- message: 'Main pipeline finished in 4m 12s.',
17
- level: 'success',
18
- timestamp: 'Today - 09:24',
19
- },
20
- {
21
- id: 2,
22
- title: 'New comment',
23
- message: 'Samira replied to your review on PR #512.',
24
- level: 'info',
25
- timestamp: 'Today - 08:51',
26
- },
27
- {
28
- id: 3,
29
- title: 'Usage warning',
30
- message: 'API quota is at 85% of the monthly allocation.',
31
- level: 'warning',
32
- timestamp: 'Yesterday - 17:05',
33
- },
34
- {
35
- id: 4,
36
- title: 'Error spike',
37
- message: 'Synthetic tests detected an uptick in 500s.',
38
- level: 'error',
39
- timestamp: 'Yesterday - 15:33',
40
- },
41
- ];
42
-
43
- const meta = {
44
- title: 'Dashboard/NotificationCenter',
45
- component: NotificationCenter,
46
- render: (args: NotificationCenterArgs) =>
47
- defineAureliaStory({
48
- template: `<notification-center notifications.bind="notifications"
49
- max-visible.bind="maxVisible"
50
- on-dismiss.bind="onDismiss"
51
- show-timestamp.bind="showTimestamp"></notification-center>`,
52
- props: args,
53
- components: [NotificationCenter],
54
- }),
55
- };
56
-
57
- export default meta;
58
-
59
- export const DefaultNotifications = {
60
- args: {
61
- notifications: baseNotifications,
62
- maxVisible: 3,
63
- showTimestamp: true,
64
- onDismiss: fn(),
65
- },
66
- };
67
-
68
- export const CompactList = {
69
- args: {
70
- notifications: baseNotifications.slice(0, 2),
71
- maxVisible: 2,
72
- onDismiss: fn(),
73
- showTimestamp: false,
74
- },
75
- };
76
-
77
- export const Interactions = {
78
- args: {
79
- notifications: baseNotifications,
80
- maxVisible: 4,
81
- onDismiss: fn(),
82
- },
83
- play: async ({ canvasElement }) => {
84
- const canvas = within(canvasElement);
85
- const dismissButtons = await canvas.findAllByRole('button', { name: /dismiss/i });
86
- await userEvent.click(dismissButtons[0]);
87
- },
88
- };
@@ -1,75 +0,0 @@
1
- import { defineAureliaStory } from '@aurelia/storybook';
2
- import { fn, userEvent, within } from 'storybook/test';
3
- import { StatCard } from '../components/stat-card';
4
-
5
- type StatCardArgs = {
6
- title: string;
7
- value: number | string;
8
- unit?: string;
9
- change?: number;
10
- changeCopy?: string;
11
- description?: string;
12
- onRefresh?: () => void;
13
- };
14
-
15
- const meta = {
16
- title: 'Dashboard/StatCard',
17
- component: StatCard,
18
- parameters: {
19
- layout: 'centered',
20
- },
21
- render: (args: StatCardArgs) =>
22
- defineAureliaStory({
23
- components: [StatCard],
24
- template: `<stat-card title.bind="title"
25
- value.bind="value"
26
- unit.bind="unit"
27
- change.bind="change"
28
- change-copy.bind="changeCopy"
29
- description.bind="description"
30
- on-refresh.bind="onRefresh"></stat-card>`,
31
- props: args,
32
- }),
33
- };
34
-
35
- export default meta;
36
-
37
- export const DefaultCard = {
38
- args: {
39
- title: 'Active users',
40
- value: 1284,
41
- unit: '',
42
- change: 12.5,
43
- changeCopy: 'vs last week',
44
- description: 'Rolling 7-day average of unique user sessions.',
45
- onRefresh: fn(),
46
- },
47
- };
48
-
49
- export const NegativeTrend = {
50
- args: {
51
- title: 'NPS score',
52
- value: 42,
53
- change: -6.3,
54
- changeCopy: 'vs previous survey',
55
- description: 'Direct feedback collected from in-app survey responses.',
56
- onRefresh: fn(),
57
- },
58
- };
59
-
60
- export const ManualRefreshDemo = {
61
- args: {
62
- title: 'Deploy success rate',
63
- value: '99.2',
64
- unit: '%',
65
- change: 1.1,
66
- changeCopy: 'vs last 24h',
67
- description: 'Completed deploys without rollbacks.',
68
- onRefresh: fn(),
69
- },
70
- play: async ({ canvasElement }) => {
71
- const canvas = within(canvasElement);
72
- const refreshButton = await canvas.findByRole('button', { name: /refresh metric/i });
73
- await userEvent.click(refreshButton);
74
- },
75
- };
@@ -1,62 +0,0 @@
1
- import { defineAureliaStory } from '@aurelia/storybook';
2
- import { Registration } from 'aurelia';
3
- import { fn, userEvent, within } from 'storybook/test';
4
- import { WeatherWidget } from '../components/weather-widget';
5
- import { IWeatherService, WeatherService, WeatherSummary } from '../services/weather-service';
6
-
7
- type WeatherWidgetArgs = {
8
- location: string;
9
- };
10
-
11
- const mockService: WeatherService = {
12
- async getWeather(location: string): Promise<WeatherSummary> {
13
- const safeLocation = location ?? '';
14
- return {
15
- location: safeLocation,
16
- condition: safeLocation.includes('Berlin') ? 'Cloudy' : 'Sunny',
17
- temperature: safeLocation.includes('Berlin') ? 16 : 24,
18
- high: safeLocation.includes('Berlin') ? 18 : 27,
19
- low: safeLocation.includes('Berlin') ? 11 : 19,
20
- };
21
- },
22
- };
23
-
24
- const meta = {
25
- title: 'Dashboard/WeatherWidget',
26
- component: WeatherWidget,
27
- parameters: {
28
- layout: 'centered',
29
- },
30
- render: (args: WeatherWidgetArgs) =>
31
- defineAureliaStory({
32
- template: `<weather-widget location.bind="location"></weather-widget>`,
33
- props: args,
34
- components: [WeatherWidget],
35
- items: [Registration.instance(IWeatherService, mockService)],
36
- }),
37
- };
38
-
39
- export default meta;
40
-
41
- export const DefaultWeather = {
42
- args: {
43
- location: 'Seattle, WA',
44
- },
45
- };
46
-
47
- export const EuropeanCity = {
48
- args: {
49
- location: 'Berlin, Germany',
50
- },
51
- };
52
-
53
- export const RefreshInteraction = {
54
- args: {
55
- location: 'Lisbon, Portugal',
56
- },
57
- play: async ({ canvasElement }) => {
58
- const canvas = within(canvasElement);
59
- const refreshButton = await canvas.findByRole('button', { name: /refresh/i });
60
- await userEvent.click(refreshButton);
61
- },
62
- };
@@ -1,15 +0,0 @@
1
- import { describe, it } from 'vitest';
2
- import { MyApp } from '../src/my-app';
3
- import { createFixture } from '@aurelia/testing';
4
-
5
- describe('my-app', () => {
6
- it('should render message', async () => {
7
- const { assertText } = await createFixture(
8
- '<my-app></my-app>',
9
- {},
10
- [MyApp],
11
- ).started;
12
-
13
- assertText('Hello World!', { compact: true });
14
- });
15
- });
@@ -1,29 +0,0 @@
1
- import { BrowserPlatform } from '@aurelia/platform-browser';
2
- import { setPlatform, onFixtureCreated, type IFixture } from '@aurelia/testing';
3
- import { beforeAll, afterEach } from 'vitest';
4
-
5
- // Sets up the Aurelia environment for testing
6
- function bootstrapTextEnv() {
7
- const platform = new BrowserPlatform(window);
8
- setPlatform(platform);
9
- BrowserPlatform.set(globalThis, platform);
10
- }
11
-
12
- const fixtures: IFixture<object>[] = [];
13
- beforeAll(() => {
14
- bootstrapTextEnv();
15
- onFixtureCreated(fixture => {
16
- fixtures.push(fixture);
17
- });
18
- });
19
-
20
- afterEach(() => {
21
- fixtures.forEach(async f => {
22
- try {
23
- await f.stop(true);
24
- } catch {
25
- // ignore
26
- }
27
- });
28
- fixtures.length = 0;
29
- });
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "module": "esnext",
4
- "moduleResolution": "bundler",
5
- "skipLibCheck": true,
6
- "target": "ES2017",
7
- "esModuleInterop": true,
8
- "resolveJsonModule": true,
9
- "importHelpers": true,
10
- "sourceMap": true
11
- },
12
- "include": [
13
- "src",
14
- "aurelia-sfc-plugin.js"
15
- ],
16
- "files": [
17
- "src/resource.d.ts"
18
- ]
19
- }
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "composite": true,
5
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
6
- "types": [
7
- "node",
8
- "jsdom"
9
- ]
10
- }
11
- }
@@ -1,17 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import aurelia from '@aurelia/vite-plugin';
3
-
4
- export default defineConfig({
5
- server: {
6
- open: !process.env.CI,
7
- port: 9000,
8
- },
9
- esbuild: {
10
- target: 'es2022'
11
- },
12
- plugins: [
13
- aurelia({
14
- useDev: true,
15
- }),
16
- ],
17
- });
@@ -1,15 +0,0 @@
1
- import { fileURLToPath } from "node:url";
2
- import { mergeConfig, defineConfig } from "vitest/config";
3
- import viteConfig from "./vite.config";
4
-
5
- export default mergeConfig(
6
- viteConfig,
7
- defineConfig({
8
- test: {
9
- environment: "jsdom",
10
- watch: false,
11
- root: fileURLToPath(new URL("./", import.meta.url)),
12
- setupFiles: ["./test/setup.ts"]
13
- },
14
- }),
15
- );
File without changes
@@ -1,14 +0,0 @@
1
- const config = {
2
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
3
- addons: [
4
- ],
5
- framework: {
6
- name: '@aurelia/storybook',
7
- options: {},
8
- },
9
- core: {
10
- builder: '@storybook/builder-webpack5',
11
- },
12
- docs: {},
13
- };
14
- export default config;
@@ -1,3 +0,0 @@
1
- // .storybook/preview.ts
2
- // Import the render function from the plugin package.
3
- export { render, renderToCanvas } from '@aurelia/storybook';
@@ -1,5 +0,0 @@
1
- {
2
- "extends": [
3
- "stylelint-config-standard"
4
- ]
5
- }
@@ -1,29 +0,0 @@
1
- # examples
2
-
3
- This project is bootstrapped by [aurelia/new](https://github.com/aurelia/new).
4
-
5
- ## Start dev web server
6
-
7
- npm start
8
-
9
- ## Build the app in production mode
10
-
11
- npm run build
12
-
13
- It builds all files to dist folder. To deploy to production server, copy all the `dist/*` files to production root folder.
14
-
15
- For example
16
- ```
17
- dist/index.html
18
- dist/foo.12345.js
19
- ```
20
- Copy to production root folder
21
- ```
22
- root_folder/index.html
23
- root_folder/foo.12345.js
24
- ```
25
-
26
-
27
- ## Analyze webpack bundle
28
-
29
- npm run analyze
@@ -1,25 +0,0 @@
1
- import eslint from "@eslint/js";
2
- import tseslint from 'typescript-eslint';
3
- import tsParser from "@typescript-eslint/parser";
4
- import globals from "globals";
5
-
6
- export default [
7
- eslint.configs.recommended,
8
- ...tseslint.configs.recommended,
9
- {
10
- files: ["**/*.ts"],
11
-
12
- languageOptions: {
13
- globals: {
14
- ...globals.builtin,
15
- ...globals.nodeBuiltin,
16
- ...globals.browser,
17
- ...globals.node,
18
- },
19
-
20
- parser: tsParser,
21
- ecmaVersion: 2019,
22
- sourceType: "module",
23
- },
24
- }
25
- ];
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <title>Aurelia</title>
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <base href="/">
9
- </head>
10
-
11
- <body>
12
- <my-app></my-app>
13
- </body>
14
-
15
- </html>