@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.
- package/.github/workflows/tests.yml +32 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/php.xml +19 -0
- package/.idea/vcs.xml +7 -0
- package/.idea/workspace.xml +94 -0
- package/package.json +22 -0
- package/resources/js/components/HelloText.vue +9 -0
- package/resources/js/components/index.ts +1 -0
- package/resources/js/index.ts +1 -0
- package/resources/js/tests/components/HelloText.test.ts +24 -0
- package/vite.config.ts +22 -0
|
@@ -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
|
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,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
|
+
"associatedIndex": 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
|
+
"keyToString": {
|
|
42
|
+
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
|
43
|
+
"RunOnceActivity.MCP Project settings loaded": "true",
|
|
44
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
45
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
|
46
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
47
|
+
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
48
|
+
"com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true",
|
|
49
|
+
"git-widget-placeholder": "main",
|
|
50
|
+
"junie.onboarding.icon.badge.shown": "true",
|
|
51
|
+
"node.js.detected.package.eslint": "true",
|
|
52
|
+
"node.js.detected.package.tslint": "true",
|
|
53
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
54
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
55
|
+
"nodejs_package_manager_path": "npm",
|
|
56
|
+
"to.speed.mode.migration.done": "true",
|
|
57
|
+
"ts.external.directory.path": "/Users/inoha_kudo/Applications/PhpStorm.app/Contents/plugins/javascript-plugin/jsLanguageServicesImpl/external",
|
|
58
|
+
"vue.rearranger.settings.migration": "true"
|
|
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 @@
|
|
|
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
|
+
});
|