@miraiportal/vue-hello 1.0.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.
@@ -0,0 +1,32 @@
1
+ name: tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - '*.x'
8
+ pull_request:
9
+ schedule:
10
+ - cron: '0 0 * * *'
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ tests:
17
+ runs-on: ubuntu-latest
18
+
19
+ steps:
20
+ - name: Checkout code
21
+ uses: actions/checkout@v6
22
+
23
+ - name: Setup Node
24
+ uses: actions/setup-node@v6
25
+ with:
26
+ node-version: 22
27
+
28
+ - name: Install dependencies
29
+ run: npm install
30
+
31
+ - name: Execute tests
32
+ run: npm test
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Ask2AgentMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
package/.idea/php.xml ADDED
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="MessDetectorOptionsConfiguration">
4
+ <option name="transferred" value="true" />
5
+ </component>
6
+ <component name="PHPCSFixerOptionsConfiguration">
7
+ <option name="transferred" value="true" />
8
+ </component>
9
+ <component name="PHPCodeSnifferOptionsConfiguration">
10
+ <option name="highlightLevel" value="WARNING" />
11
+ <option name="transferred" value="true" />
12
+ </component>
13
+ <component name="PhpStanOptionsConfiguration">
14
+ <option name="transferred" value="true" />
15
+ </component>
16
+ <component name="PsalmOptionsConfiguration">
17
+ <option name="transferred" value="true" />
18
+ </component>
19
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
6
+ </component>
7
+ </project>
@@ -0,0 +1,94 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="7acc50b2-fd03-46fb-8a3a-36e8baeed34c" name="変更" comment="" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="ComposerSettings">
14
+ <execution />
15
+ </component>
16
+ <component name="CopilotPersistence">
17
+ <persistenceIdMap>
18
+ <entry key="_/Users/inoha_kudo/Projects/vue-hello" value="3ATscdPl4HOONf21H0VPmiSK9lR" />
19
+ </persistenceIdMap>
20
+ </component>
21
+ <component name="EmbeddingIndexingInfo">
22
+ <option name="cachedIndexableFilesCount" value="13" />
23
+ <option name="fileBasedEmbeddingIndicesEnabled" value="true" />
24
+ </component>
25
+ <component name="Git.Settings">
26
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
27
+ </component>
28
+ <component name="McpProjectServerCommands">
29
+ <commands />
30
+ <urls />
31
+ </component>
32
+ <component name="ProjectColorInfo">{
33
+ &quot;associatedIndex&quot;: 8
34
+ }</component>
35
+ <component name="ProjectId" id="3ATscdPl4HOONf21H0VPmiSK9lR" />
36
+ <component name="ProjectViewState">
37
+ <option name="hideEmptyMiddlePackages" value="true" />
38
+ <option name="showLibraryContents" value="true" />
39
+ </component>
40
+ <component name="PropertiesComponent">{
41
+ &quot;keyToString&quot;: {
42
+ &quot;ModuleVcsDetector.initialDetectionPerformed&quot;: &quot;true&quot;,
43
+ &quot;RunOnceActivity.MCP Project settings loaded&quot;: &quot;true&quot;,
44
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
45
+ &quot;RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252&quot;: &quot;true&quot;,
46
+ &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
47
+ &quot;RunOnceActivity.typescript.service.memoryLimit.init&quot;: &quot;true&quot;,
48
+ &quot;com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1&quot;: &quot;true&quot;,
49
+ &quot;git-widget-placeholder&quot;: &quot;main&quot;,
50
+ &quot;junie.onboarding.icon.badge.shown&quot;: &quot;true&quot;,
51
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
52
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
53
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
54
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
55
+ &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
56
+ &quot;to.speed.mode.migration.done&quot;: &quot;true&quot;,
57
+ &quot;ts.external.directory.path&quot;: &quot;/Users/inoha_kudo/Applications/PhpStorm.app/Contents/plugins/javascript-plugin/jsLanguageServicesImpl/external&quot;,
58
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
59
+ }
60
+ }</component>
61
+ <component name="SharedIndexes">
62
+ <attachedChunks>
63
+ <set>
64
+ <option value="bundled-js-predefined-d6986cc7102b-9b0f141eb926-JavaScript-PS-253.31033.138" />
65
+ <option value="bundled-php-predefined-a98d8de5180a-0e0d91225499-com.jetbrains.php.sharedIndexes-PS-253.31033.138" />
66
+ </set>
67
+ </attachedChunks>
68
+ </component>
69
+ <component name="TaskManager">
70
+ <task active="true" id="Default" summary="デフォルトタスク">
71
+ <changelist id="7acc50b2-fd03-46fb-8a3a-36e8baeed34c" name="変更" comment="" />
72
+ <created>1772627974849</created>
73
+ <option name="number" value="Default" />
74
+ <option name="presentableId" value="Default" />
75
+ <updated>1772627974849</updated>
76
+ <workItem from="1772627975879" duration="3379000" />
77
+ <workItem from="1772714168024" duration="113000" />
78
+ <workItem from="1772714759809" duration="489000" />
79
+ <workItem from="1772945305178" duration="122000" />
80
+ </task>
81
+ <servers />
82
+ </component>
83
+ <component name="TypeScriptGeneratedFilesManager">
84
+ <option name="version" value="3" />
85
+ </component>
86
+ <component name="github-copilot-workspace">
87
+ <instructionFileLocations>
88
+ <option value=".github/instructions" />
89
+ </instructionFileLocations>
90
+ <promptFileLocations>
91
+ <option value=".github/prompts" />
92
+ </promptFileLocations>
93
+ </component>
94
+ </project>
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@miraiportal/vue-hello",
3
+ "version": "1.0.2",
4
+ "license": "MIT",
5
+ "exports": {
6
+ ".": "./resources/js/index.ts"
7
+ },
8
+ "scripts": {
9
+ "test": "vitest run"
10
+ },
11
+ "devDependencies": {
12
+ "@testing-library/vue": "^8.1.0",
13
+ "@vitejs/plugin-vue": "^6.0.5",
14
+ "happy-dom": "^20.8.9",
15
+ "vite": "^8.0.3",
16
+ "vitest": "^4.1.2",
17
+ "vue": "^3.5.31"
18
+ },
19
+ "peerDependencies": {
20
+ "vue": "^3.5.29"
21
+ }
22
+ }
@@ -0,0 +1,9 @@
1
+ <script setup lang="ts">
2
+ defineProps<{
3
+ name: string;
4
+ }>();
5
+ </script>
6
+
7
+ <template>
8
+ <h1>Hello, {{ name }}!</h1>
9
+ </template>
@@ -0,0 +1 @@
1
+ export { default as HelloText } from './HelloText.vue';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,24 @@
1
+ import { render, screen } from '@testing-library/vue';
2
+ import HelloText from '../../components/HelloText.vue';
3
+
4
+ test('renders a greeting', () => {
5
+ render(HelloText, {
6
+ props: {
7
+ name: 'World',
8
+ },
9
+ });
10
+
11
+ screen.getByText('Hello, World!');
12
+ });
13
+
14
+ test('updates when name changes', async () => {
15
+ const { rerender } = render(HelloText, {
16
+ props: {
17
+ name: 'World',
18
+ },
19
+ });
20
+
21
+ await rerender({ name: 'Vue' });
22
+
23
+ screen.getByText('Hello, Vue!');
24
+ });
package/vite.config.ts ADDED
@@ -0,0 +1,22 @@
1
+ /// <reference types="vitest/config" />
2
+
3
+ import vue from '@vitejs/plugin-vue';
4
+ import { defineConfig } from 'vite';
5
+
6
+ export default defineConfig({
7
+ plugins: [
8
+ vue({
9
+ template: {
10
+ transformAssetUrls: {
11
+ base: null,
12
+ includeAbsolute: false,
13
+ },
14
+ },
15
+ }),
16
+ ],
17
+ test: {
18
+ globals: true,
19
+ environment: 'happy-dom',
20
+ include: ['resources/js/tests/**/*.test.ts'],
21
+ },
22
+ });