Skip to content
This repository was archived by the owner on May 22, 2022. It is now read-only.

Commit 7dea572

Browse files
committed
feat: git hub action setup
1 parent 9042c80 commit 7dea572

File tree

9 files changed

+121
-47
lines changed

9 files changed

+121
-47
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to GitHub packages
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
# build:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - uses: actions/checkout@v2
12+
# - uses: actions/setup-node@v1
13+
# with:
14+
# node-version: 12
15+
# - run: npm i
16+
# - run: npm test
17+
18+
publish-gpr:
19+
# needs: build
20+
runs-on: ubuntu-latest
21+
env:
22+
working-directory: ./ts-packages/vue-excel-initializer
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v1
26+
with:
27+
node-version: 12
28+
registry-url: https://npm.pkg.github.com/
29+
- run: yarn install
30+
working-directory: ${{env.working-directory}}
31+
- run: yarn build
32+
working-directory: ${{env.working-directory}}
33+
- run: npm publish
34+
working-directory: ${{env.working-directory}}
35+
env:
36+
NODE_AUTH_TOKEN: ${{secrets.GH_PACKAGE}}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to Npm packages
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
# build:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - uses: actions/checkout@v2
12+
# - uses: actions/setup-node@v1
13+
# with:
14+
# node-version: 12
15+
# - run: npm i
16+
# - run: npm test
17+
18+
publish-gpr:
19+
# needs: build
20+
runs-on: ubuntu-latest
21+
env:
22+
working-directory: ./ts-packages/vue-excel-initializer
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-node@v1
26+
with:
27+
node-version: 12
28+
registry-url: https://registry.npmjs.org/
29+
- run: yarn install
30+
working-directory: ${{env.working-directory}}
31+
- run: yarn build
32+
working-directory: ${{env.working-directory}}
33+
- run: npm publish --access public
34+
working-directory: ${{env.working-directory}}
35+
env:
36+
NODE_AUTH_TOKEN: ${{secrets.NPM_PACKAGE}}
Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1 @@
1-
# Vue 3 + Typescript + Vite
2-
3-
This template should help get you started developing with Vue 3 and Typescript in Vite.
4-
5-
## Recommended IDE Setup
6-
7-
[VSCode](https://code.visualstudio.com/) + [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur). Make sure to enable `vetur.experimental.templateInterpolationService` in settings!
8-
9-
### If Using `<script setup>`
10-
11-
[`<script setup>`](https://github.com/vuejs/rfcs/pull/227) is a feature that is currently in RFC stage. To get proper IDE support for the syntax, use [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) instead of Vetur (and disable Vetur).
12-
13-
## Type Support For `.vue` Imports in TS
14-
15-
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can use the following:
16-
17-
### If Using Volar
18-
19-
Run `Volar: Switch TS Plugin on/off` from VSCode command palette.
20-
21-
### If Using Vetur
22-
23-
1. Install and add `@vuedx/typescript-plugin-vue` to the [plugins section](https://www.typescriptlang.org/tsconfig#plugins) in `tsconfig.json`
24-
2. Delete `src/shims-vue.d.ts` as it is no longer needed to provide module info to Typescript
25-
3. Open `src/main.ts` in VSCode
26-
4. Open the VSCode command palette
27-
5. Search and run "Select TypeScript version" -> "Use workspace version"
1+
This package is a work in progress. Description will be provided after package idea test.
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "../../tsconfig.build.json",
3+
"compilerOptions": {
4+
"declaration": true,
5+
"outDir": "./dist",
6+
"declarationDir": "./dist",
7+
"rootDir": "lib"
8+
},
9+
"include": ["lib/**/*"],
10+
"exclude": ["node_modules", "dist", "lib/src/templates"]
11+
}
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
{
2-
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "node",
6-
"strict": true,
7-
"jsx": "preserve",
8-
"sourceMap": true,
9-
"resolveJsonModule": true,
10-
"esModuleInterop": true,
11-
"declaration": true,
12-
"lib": ["esnext", "dom"]
13-
},
14-
"include": ["lib/**/*.ts", "lib/**/*.d.ts", "lib/**/*.tsx", "lib/**/*.vue"]
2+
"extends": "../../tsconfig.json",
3+
"types": ["lib"],
4+
"include": ["lib/**/*.ts", "lib/**/*.d.ts", "lib/**/*.tsx"],
5+
"exclude": ["node_modules", "dist"]
156
}

ts-packages/vue-excel-initializer/vite.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

tsconfig.build.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"module": "ESNext",
4+
"target": "ESNext",
5+
"sourceMap": true,
6+
"moduleResolution": "node",
7+
"strict": true,
8+
"jsx": "preserve",
9+
"noImplicitAny": false,
10+
"resolveJsonModule": true,
11+
"esModuleInterop": true,
12+
"declaration": true,
13+
"baseUrl": ".",
14+
"importHelpers": true,
15+
"skipLibCheck": true,
16+
"allowSyntheticDefaultImports": true,
17+
"allowJs": false,
18+
"noUnusedLocals": true,
19+
"noUnusedParameters": true,
20+
"experimentalDecorators": true,
21+
"lib": ["esnext", "dom"]
22+
}
23+
}

tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.build.json",
3+
"compilerOptions": {
4+
"module": "commonjs",
5+
"baseUrl": "./ts-packages",
6+
"paths": {
7+
"@xsoulspace/vue-excel-initializer": ["vue-excel-initializer/lib"]
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)