Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 40e0b95

Browse files
committed
Merge branch 'master' of github.com:nsftx/vue-cli-plugin-nsoft
2 parents 0a8a245 + f27409e commit 40e0b95

File tree

7 files changed

+261
-13
lines changed

7 files changed

+261
-13
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Package Release
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
packages: write
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 16
18+
registry-url: https://npm.pkg.github.com/
19+
- run: npm ci
20+
- run: npm publish
21+
env:
22+
NPM_TOKEN: ${{secrets.GITHUB_TOKEN}}
23+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
24+

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To install nsoft plugin:
3030

3131
```
3232
cd my-app
33-
vue add @nsoft/nsoft
33+
vue add @nsftx/nsoft
3434
```
3535

3636
## Commands
@@ -94,7 +94,7 @@ vue add @nsoft/nsoft
9494
#### Seven Gravity Gateway
9595

9696
In case Seven Gravity Gateway is accepted on project creation:
97-
* `@nsoft/seven-gravity-gateway` is added as NPM dependecy
97+
* `@nsftx/seven-gravity-gateway` is added as NPM dependecy
9898
* two utilities are created under `src/plugins/seven-gravity-gateway` which are promise based wrappers around `master/slave` instances
9999

100100
##### Example
@@ -197,4 +197,19 @@ GatewayMaster.addSlave({
197197

198198
## Testing
199199

200-
- test files should be located next to file (xy.js and xy.spec.js)
200+
- test files should be located next to file (xy.js and xy.spec.js)
201+
202+
203+
## Publish
204+
205+
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [releases on this repository](https://github.com/nsftx/vue-cli-plugin-nsoft/releases).
206+
207+
In order to release next version of the library pull request is required. Use following steps for release.
208+
209+
- Merge approved pull requests that should be in next version to master
210+
- Create `version-$nextVersion` branch from master
211+
- run `npm version -$versionType`
212+
- Push branch & tag to remote
213+
- After pull request is merged, create a new [Release](https://github.com/nsftx/vue-cli-plugin-nsoft/releases/new)
214+
- GitHub will trigger action (`.github/workflows/release.yml`) and it will publish package
215+

generator/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ module.exports = (api, options, rootOptions) => {
5050
"test:unitWatch": "vue-cli-service test:unit --watch",
5151
},
5252
dependencies: {
53-
"axios": "^0.26.1",
53+
"axios": "^1.3.3",
5454
"lodash": "^4.17.21",
5555
"numeral": "^2.0.6",
56-
"vue-router": "^4.0.14",
57-
"vuex": "^4.0.2"
56+
"vue-router": "^4.1.6",
57+
"vuex": "^4.1.0"
5858
},
5959
devDependencies: {
6060
"@vue/cli-plugin-e2e-cypress": "~4.5.0",
@@ -78,7 +78,7 @@ module.exports = (api, options, rootOptions) => {
7878
if (options.sevenGravityGateway) {
7979
api.extendPackage({
8080
dependencies: {
81-
"@nsoft/seven-gravity-gateway": "^1.16.2"
81+
"@nsftx/seven-gravity-gateway": "^2.1.0"
8282
}
8383
});
8484

generator/template/seven-gravity-gateway/src/plugins/seven-gravity-gateway/master.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import GatewayMaster from '@nsoft/seven-gravity-gateway/master';
1+
import GatewayMaster from '@nsftx/seven-gravity-gateway/master';
22

33
let instance = null;
44

generator/template/seven-gravity-gateway/src/plugins/seven-gravity-gateway/slave.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import GatewaySlave from '@nsoft/seven-gravity-gateway/slave';
1+
import GatewaySlave from '@nsftx/seven-gravity-gateway/slave';
22

33
let instance = null;
44

package-lock.json

Lines changed: 206 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@nsoft/vue-cli-plugin-nsoft",
2+
"name": "@nsftx/vue-cli-plugin-nsoft",
33
"version": "0.5.0",
44
"description": "NSoft plugin for Vue CLI 3",
55
"author": "[email protected]",
@@ -14,7 +14,10 @@
1414
"main": "index.js",
1515
"repository": {
1616
"type": "git",
17-
"url": "git+https://github.com/chmjs/vue-cli-plugin-nsoft"
17+
"url": "git+https://github.com/nsftx/vue-cli-plugin-nsoft"
18+
},
19+
"publishConfig": {
20+
"registry": "https://npm.pkg.github.com"
1821
},
1922
"keywords": [
2023
"nsoft",
@@ -23,9 +26,9 @@
2326
],
2427
"license": "MIT",
2528
"bugs": {
26-
"url": "https://github.com/chmjs/vue-cli-plugin-nsoft/issues"
29+
"url": "https://github.com/nsftx/vue-cli-plugin-nsoft/issues"
2730
},
28-
"homepage": "https://github.com/chmjs/vue-cli-plugin-nsoft/blob/master/README.md",
31+
"homepage": "https://github.com/nsftx/vue-cli-plugin-nsoft/blob/master/README.md",
2932
"dependencies": {
3033
"rimraf": "^3.0.2"
3134
}

0 commit comments

Comments
 (0)