Skip to content

Commit 2344ed1

Browse files
authored
Merge pull request #3 from MicroAppJS/develop
Develop
2 parents bb633a3 + f712aaf commit 2344ed1

File tree

20 files changed

+1162
-382
lines changed

20 files changed

+1162
-382
lines changed

.circleci/config.yml

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

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @zyao89

.github/workflows/coveralls.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Coveralls
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- develop
7+
jobs:
8+
install-and-coveralls:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@master
14+
15+
- name: Cache node modules
16+
uses: actions/cache@v1
17+
with:
18+
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
19+
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
20+
restore-keys: |
21+
${{ runner.os }}-build-${{ env.cache-name }}-
22+
${{ runner.os }}-build-
23+
${{ runner.os }}-
24+
25+
- name: install
26+
run: yarn --network-timeout 600000
27+
28+
- name: yarn add coveralls
29+
run: |
30+
yarn add -D coveralls
31+
yarn run test --coverage && cat ./coverage/lcov.info
32+
33+
- name: Coveralls
34+
uses: coverallsapp/github-action@master
35+
with:
36+
github-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Micro APP Plugin - Deploy-Command
1+
# Micro APP Plugin - Deploy Command
22

33
[Plugin] auto deploy command plugin.
44

@@ -9,10 +9,10 @@
99
[![NPM Version][npm-img]][npm-url]
1010
[![NPM Download][download-img]][download-url]
1111

12-
[Coverage-img]: https://coveralls.io/repos/github/MicrosApp/MicroApp-Plugin-Deploy-Command/badge.svg?branch=master
13-
[Coverage-url]: https://coveralls.io/github/MicrosApp/MicroApp-Plugin-Deploy-Command?branch=master
14-
[CircleCI-img]: https://circleci.com/gh/MicrosApp/MicroApp-Plugin-Deploy-Command/tree/master.svg?style=svg
15-
[CircleCI-url]: https://circleci.com/gh/MicrosApp/MicroApp-Plugin-Deploy-Command/tree/master
12+
[Coverage-img]: https://coveralls.io/repos/github/MicroAppJS/MicroApp-Plugin-Deploy-Command/badge.svg?branch=master
13+
[Coverage-url]: https://coveralls.io/github/MicroAppJS/MicroApp-Plugin-Deploy-Command?branch=master
14+
[CircleCI-img]: https://circleci.com/gh/MicroAppJS/MicroApp-Plugin-Deploy-Command/tree/master.svg?style=svg
15+
[CircleCI-url]: https://circleci.com/gh/MicroAppJS/MicroApp-Plugin-Deploy-Command/tree/master
1616
[npm-img]: https://img.shields.io/npm/v/@micro-app/plugin-deploy-command.svg?style=flat-square
1717
[npm-url]: https://npmjs.org/package/@micro-app/plugin-deploy-command
1818
[download-img]: https://img.shields.io/npm/dm/@micro-app/plugin-deploy-command.svg?style=flat-square

micro-app.deploy.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module.exports = {
44
disabled: false,
5-
git: 'git@github.com:MicrosApp/MicroApp-Plugin-Deploy-Command.git',
5+
git: 'git@github.com:MicroAppJS/MicroApp-Plugin-Deploy-Command.git', // repository,repo
66
branch: {
77
name: 'gh-pages',
88
// extends: true,
@@ -12,6 +12,6 @@ module.exports = {
1212
name: '',
1313
email: '',
1414
},
15-
dist: 'test/gitinfo',
15+
dest: 'test/gitinfo',
1616
// cname: 'www.2o3t.cn',
1717
};

package.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
{
22
"name": "@micro-app/plugin-deploy-command",
3-
"version": "0.1.0",
3+
"version": "0.1.5",
44
"description": "[Plugin] auto deploy command plugin.",
55
"main": "src/index.js",
66
"scripts": {
7+
"prepublishOnly": "npm run test",
78
"test": "jest"
89
},
910
"files": [
1011
"src"
1112
],
12-
"homepage": "https://github.com/MicrosApp/MicroApp-Plugin-Deploy-Command",
13+
"homepage": "https://github.com/MicroAppJS/MicroApp-Plugin-Deploy-Command",
1314
"repository": {
1415
"type": "git",
15-
"url": "git+https://github.com/MicrosApp/MicroApp-Plugin-Deploy-Command.git"
16+
"url": "git+https://github.com/MicroAppJS/MicroApp-Plugin-Deploy-Command.git"
1617
},
1718
"bugs": {
18-
"url": "https://github.com/MicrosApp/MicroApp-Plugin-Deploy-Command/issues"
19+
"url": "https://github.com/MicroAppJS/MicroApp-Plugin-Deploy-Command/issues"
1920
},
2021
"keywords": [
2122
"micro",
@@ -30,19 +31,14 @@
3031
},
3132
"license": "MIT",
3233
"peerDependencies": {
33-
"@micro-app/core": ">=0.2.2"
34+
"@micro-app/cli": ">=0.3.0"
3435
},
3536
"devDependencies": {
36-
"@micro-app/cli": "0.2.0",
37-
"@micro-app/core": "0.2.2",
38-
"@types/jest": "^24.0.18",
37+
"@micro-app/cli": "^0.3.0-alpha.3",
38+
"@types/jest": "^24.0.25",
3939
"babel-eslint": "^10.0.3",
40-
"coveralls": "^3.0.6",
4140
"eslint": "^5.16.0",
4241
"eslint-config-2o3t": "^1.1.17",
4342
"jest": "^24.9.0"
44-
},
45-
"dependencies": {
46-
"shelljs": "^0.8.3"
4743
}
4844
}

src/commands/deploy/deploy.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/* global expect */
44

5-
process.env.NODE_ENV = 'MICRO_APP_TEST';
5+
process.env.MICRO_APP_TEST = 'true';
66

77
const path = require('path');
88

0 commit comments

Comments
 (0)