Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita8a27df

Browse files
authored
Initial commit
0 parents  commita8a27df

28 files changed

+9120
-0
lines changed

‎.github/renovate.json5‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema":"https://docs.renovatebot.com/renovate-schema.json",
3+
"extends":["config:base","schedule:monthly","group:allNonMajor"],
4+
"rangeStrategy":"bump",
5+
"packageRules":[{"depTypeList":["peerDependencies"],"enabled":false}]
6+
}

‎.github/workflows/release.yml‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This action will publish the package to npm and create a GitHub release.
2+
name:Release
3+
4+
on:
5+
# Run `npm run bump` to bump the version and create a git tag.
6+
push:
7+
tags:
8+
-"v*"
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents:write
14+
id-token:write
15+
16+
jobs:
17+
publish:
18+
runs-on:ubuntu-latest
19+
steps:
20+
-name:Checkout
21+
uses:actions/checkout@v4
22+
23+
-name:Install Pnpm
24+
run:corepack enable
25+
26+
-name:Setup Node.js
27+
uses:actions/setup-node@v4
28+
with:
29+
node-version:22
30+
cache:"pnpm"
31+
32+
-name:Install Dependencies
33+
run:pnpm install
34+
35+
-name:Publish
36+
uses:JS-DevTools/npm-publish@v3
37+
with:
38+
token:${{ secrets.NPM_TOKEN }}
39+
40+
-name:Create GitHub Release
41+
uses:ncipollo/release-action@v1
42+
with:
43+
generateReleaseNotes:"true"

‎.github/workflows/test.yml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name:Test
2+
3+
# Controls when the action will run.
4+
on:
5+
# Triggers the workflow on pull request events but only for the main branch
6+
pull_request:
7+
branches:[main]
8+
push:
9+
branches:[main]
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
test:
16+
runs-on:${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os:[ubuntu-latest, windows-latest]
20+
21+
# Steps represent a sequence of tasks that will be executed as part of the job
22+
steps:
23+
-name:Checkout
24+
uses:actions/checkout@v4
25+
26+
-name:Install Pnpm
27+
run:corepack enable
28+
29+
-name:Setup Node.js
30+
uses:actions/setup-node@v4
31+
with:
32+
node-version:22
33+
cache:"pnpm"
34+
35+
-name:Install Dependencies
36+
run:pnpm install && npx playwright install chromium
37+
38+
-name:Run Test
39+
run:pnpm run test

‎.gitignore‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Local
2+
.DS_Store
3+
*.local
4+
*.log*
5+
6+
# Dist
7+
node_modules
8+
dist/
9+
test-results
10+
11+
# IDE
12+
.vscode/*
13+
!.vscode/settings.json
14+
!.vscode/extensions.json
15+
.idea
16+
17+
# playground
18+
/playground/src/.win
19+
/playground/src/.win-production
20+
/playground/src/.win-test
21+
/playground/components.d.ts
22+
/playground/auto-imports.d.ts
23+
/playground/.eslintrc-auto-import.json

‎.vscode/extensions.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["biomejs.biome"]
3+
}

‎.vscode/settings.json‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"search.useIgnoreFiles":true,
3+
"[json]": {
4+
"editor.defaultFormatter":"biomejs.biome"
5+
},
6+
"[typescript]": {
7+
"editor.defaultFormatter":"biomejs.biome"
8+
},
9+
"[javascript]": {
10+
"editor.defaultFormatter":"biomejs.biome"
11+
},
12+
"[javascriptreact]": {
13+
"editor.defaultFormatter":"biomejs.biome"
14+
},
15+
"[css]": {
16+
"editor.defaultFormatter":"biomejs.biome"
17+
}
18+
}

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Winjs dev Contrib
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#winjs-plugin-example
2+
3+
Example plugin for WinJS.
4+
5+
<p>
6+
<ahref="https://npmjs.com/package/winjs-plugin-example">
7+
<imgsrc="https://img.shields.io/npm/v/winjs-plugin-example?style=flat-square&colorA=564341&colorB=EDED91"alt="npm version" />
8+
</a>
9+
<imgsrc="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=EDED91"alt="license" />
10+
<ahref="https://npmcharts.com/compare/winjs-plugin-example?minimal=true"><imgsrc="https://img.shields.io/npm/dm/winjs-plugin-example.svg?style=flat-square&colorA=564341&colorB=EDED91"alt="downloads" /></a>
11+
</p>
12+
13+
##Usage
14+
15+
Install:
16+
17+
```bash
18+
npm add winjs-plugin-example -D
19+
```
20+
21+
Add plugin to your`.winrc.ts`:
22+
23+
```ts
24+
// .winrc.ts
25+
exportdefault {
26+
plugins: ['winjs-plugin-example'],
27+
// 开启配置
28+
example: {}
29+
};
30+
```
31+
32+
##Options
33+
34+
###foo
35+
36+
Some description.
37+
38+
- Type:`string`
39+
- Default:`undefined`
40+
- Example:
41+
42+
```js
43+
exportdefault {
44+
plugins: ['winjs-plugin-example'],
45+
// 开启配置
46+
example: {
47+
foo:'bar'
48+
}
49+
};
50+
```
51+
52+
##License
53+
54+
[MIT](./LICENSE).

‎biome.json‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema":"https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"organizeImports": {
4+
"enabled":true
5+
},
6+
"vcs": {
7+
"enabled":true,
8+
"defaultBranch":"main",
9+
"clientKind":"git",
10+
"useIgnoreFile":true
11+
},
12+
"formatter": {
13+
"indentStyle":"space"
14+
},
15+
"javascript": {
16+
"formatter": {
17+
"quoteStyle":"single"
18+
}
19+
},
20+
"css": {
21+
"formatter": {
22+
"enabled":true
23+
}
24+
},
25+
"linter": {
26+
"enabled":true,
27+
"rules": {
28+
"recommended":true
29+
}
30+
}
31+
}

‎package.json‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"name":"winjs-plugin-example",
3+
"version":"0.0.0",
4+
"repository":"https://github.com/winjs-dev/winjs-plugin-template",
5+
"license":"MIT",
6+
"type":"module",
7+
"exports": {
8+
".": {
9+
"types":"./dist/index.d.ts",
10+
"import":"./dist/index.js",
11+
"require":"./dist/index.cjs"
12+
}
13+
},
14+
"main":"./dist/index.cjs",
15+
"module":"./dist/index.js",
16+
"types":"./dist/index.d.ts",
17+
"files": ["dist"],
18+
"scripts": {
19+
"build":"rslib build",
20+
"dev":"rslib build --watch",
21+
"lint":"biome check .",
22+
"lint:write":"biome check . --write",
23+
"prepare":"simple-git-hooks && npm run build",
24+
"test":"playwright test",
25+
"bump":"npx bumpp"
26+
},
27+
"simple-git-hooks": {
28+
"pre-commit":"npm run lint:write"
29+
},
30+
"devDependencies": {
31+
"@biomejs/biome":"^1.9.4",
32+
"@playwright/test":"^1.49.0",
33+
"@winner-fed/winjs":"^0.11.21",
34+
"@winner-fed/utils":"^0.11.21",
35+
"@rslib/core":"^0.1.1",
36+
"@types/node":"^22.10.1",
37+
"playwright":"^1.49.0",
38+
"simple-git-hooks":"^2.11.1",
39+
"typescript":"^5.7.2"
40+
},
41+
"peerDependencies": {
42+
"@rsbuild/core":"1.x",
43+
"@winner-fed/winjs":"^0.11.21",
44+
"@winner-fed/utils":"^0.11.21"
45+
},
46+
"peerDependenciesMeta": {
47+
"@rsbuild/core": {
48+
"optional":true
49+
},
50+
"@winner-fed/utils": {
51+
"optional":true
52+
}
53+
},
54+
"packageManager":"pnpm@9.14.4",
55+
"publishConfig": {
56+
"access":"public",
57+
"registry":"https://registry.npmjs.org/"
58+
}
59+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp