Skip to content

Commit

Permalink
feat: Remove biz-app logic and add subapp config in package.json (#9)
Browse files Browse the repository at this point in the history
* feat: Update config

* feat: Remove biz-app logic

* feat: Change `apfe init` to `apfe create`

* feat: Remove `apfe pack init` and `apfe pack build`

* feat: Adjust offline-package config into package.json

`
"subapp": {
  "id": "hello-world",
  "includes": [
    "./dist/**/*"
  ],
  "ignores": [
    "./dist/**/*.md",
    "./dist/**/*.map"
  ]
},
`

* feat: Cleanup `84` in dir path
  • Loading branch information
antife-yinyue authored and xudafeng committed Aug 30, 2018
1 parent e40eab5 commit b5de1ae
Show file tree
Hide file tree
Showing 84 changed files with 278 additions and 3,375 deletions.
5 changes: 0 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
'use strict'

module.exports = {
extends: 'eslint-config-antife',
env: {
node: true,
es6: true,
mocha: true
},
rules: {
'max-len': 0
}
}
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ coverage/
.babelrc
.eslintrc.js
.eslintignore
.travis.yml
entrypoint.sh
Dockerfile
.idea
.code
*.sw*
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT LICENSE

Copyright (c) 2017 Alibaba Group Holding Limited and other contributors.
Copyright (c) 2018 Alibaba Group Holding Limited and other contributors.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ $ apfe -h

## Contributors

|[<img src="https://avatars2.githubusercontent.com/u/1814071?v=4" width="100px;"/><br/><sub><b>xiekw2010</b></sub>](https://github.com/xiekw2010)<br/>|[<img src="https://avatars1.githubusercontent.com/u/1011681?v=4" width="100px;"/><br/><sub><b>xudafeng</b></sub>](https://github.com/xudafeng)<br/>|[<img src="https://avatars3.githubusercontent.com/u/5574625?v=4" width="100px;"/><br/><sub><b>elrrrrrrr</b></sub>](https://github.com/elrrrrrrr)<br/>
| :---: | :---: | :---: |
|[<img src="https://avatars1.githubusercontent.com/u/1011681?v=4" width="100px;"/><br/><sub><b>xudafeng</b></sub>](https://github.com/xudafeng)<br/>|[<img src="https://avatars2.githubusercontent.com/u/1814071?v=4" width="100px;"/><br/><sub><b>xiekw2010</b></sub>](https://github.com/xiekw2010)<br/>|[<img src="https://avatars3.githubusercontent.com/u/5574625?v=4" width="100px;"/><br/><sub><b>elrrrrrrr</b></sub>](https://github.com/elrrrrrrr)<br/>|[<img src="https://avatars2.githubusercontent.com/u/197375?v=4" width="100px;"/><br/><sub><b>jsw0528</b></sub>](https://github.com/jsw0528)<br/>
| :---: | :---: | :---: | :---: |


This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto upated at `Thu Apr 26 2018 15:27:57 GMT+0800`.
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto upated at `Thu Aug 30 2018 20:28:11 GMT+0800`.

<!-- GITCONTRIBUTOR_END -->

Expand Down
105 changes: 52 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
{
"name": "apfe-cli",
"version": "1.1.1",
"description": "Alipay+ Sub-app ToolKit",
"description": "Alipay+ Subapp ToolKit",
"keywords": [
"Alipay+",
"ToolKit",
"CLI",
"FrontEnd"
],
"contributors": [
"xiekw2010 <[email protected]>",
"brucejcw <[email protected]>",
"elrrrrrrr <[email protected]>"
],
"repository": {
"type": "git",
"url": "https://github.com/ant-ife/apfe-cli.git"
Expand All @@ -24,75 +18,80 @@
"bin": {
"apfe": "dist/bin/apfe.js"
},
"scripts": {
"babel": "babel ./src --out-dir ./dist",
"babel:dev": "babel ./src -w --out-dir ./dist",
"lint": "eslint ./src --ext .js --fix",
"lint:dev": "esw ./src -w",
"dev": "npm run lint:dev & npm run babel:dev",
"build": "npm run lint && rm -rf ./dist && npm run babel",
"pub": "npm run build && npm publish",
"build:docker": "docker build . -t=apfe/apfe-build-docker",
"ci": "npm run lint",
"contributor": "git-contributor"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
},
"dependencies": {
"babel-code-frame": "^6.26.0",
"babel-core": "^6.26.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-core": "^6.26.3",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-regenerator": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-runtime": "^6.26.0",
"camelcase": "^4.1.0",
"commander": "^2.11.0",
"consolidate": "^0.14.5",
"camelcase": "^5.0.0",
"commander": "^2.17.1",
"consolidate": "^0.15.1",
"debug": "^3.1.0",
"deepmerge": "^1.5.2",
"fs-extra": "^4.0.2",
"git-branch": "^1.0.0",
"deepmerge": "^2.1.1",
"fs-extra": "^7.0.0",
"git-branch": "^2.0.1",
"git-clone": "^0.1.0",
"globby": "^6.1.0",
"gulp": "^3.8.1",
"gulp-tar": "~1.0.0",
"gulp-zip": "^0.4.0",
"handlebars": "^4.0.5",
"inquirer": "^0.12.0",
"globby": "^8.0.1",
"gulp": "^3.9.1",
"gulp-tar": "~2.1.0",
"gulp-zip": "^4.2.0",
"handlebars": "^4.0.11",
"inquirer": "^6.2.0",
"ios-simulator": "^1.0.15",
"map-stream": "^0.1.0",
"metalsmith": "^2.1.0",
"minimatch": "^3.0.0",
"metalsmith": "^2.3.0",
"minimatch": "^3.0.4",
"multimatch": "^2.1.0",
"node-forge": "^0.7.1",
"ora": "^0.2.1",
"node-forge": "^0.7.6",
"ora": "^3.0.0",
"ramda": "^0.25.0",
"ramda-fantasy": "^0.8.0",
"read-metadata": "^1.0.0",
"request": "^2.67.0",
"request": "^2.88.0",
"rimraf": "^2.6.2",
"semver": "^5.4.1",
"shelljs": "^0.7.8",
"semver": "^5.5.1",
"shelljs": "^0.8.2",
"user-home": "^2.0.0",
"validate-npm-package-name": "^2.2.2",
"win-spawn": "^2.0.0",
"xutil": "^1.0.11"
"validate-npm-package-name": "^3.0.0",
"win-spawn": "^2.0.0"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^7.1.1",
"chai": "^3.5.0",
"babel-cli": "^6.26.0",
"babel-eslint": "^9.0.0",
"chai": "^4.1.2",
"chai-fs": "^2.0.0",
"chalk": "^2.3.0",
"eslint": "^4.14.0",
"eslint-config-antife": "^1.0.0",
"eslint-plugin-babel": "^4.1.1",
"eslint-watch": "^3.1.2",
"chalk": "^2.4.1",
"eslint": "^5.4.0",
"eslint-config-antife": "^1.0.3",
"eslint-plugin-babel": "^5.1.0",
"eslint-watch": "^4.0.2",
"git-contributor": "^1.0.8",
"husky": "^1.0.0-rc.13",
"istanbul": "^0.4.5",
"mocha": "^4.0.1"
"mocha": "^5.2.0"
},
"engines": {
"node": ">=8.0.0"
},
"scripts": {
"babel": "babel ./src --out-dir ./dist",
"babel:dev": "babel ./src -w --out-dir ./dist",
"lint": "eslint ./src --ext .js --fix",
"lint:dev": "esw ./src -w",
"dev": "npm run lint:dev & npm run babel:dev",
"build": "rm -rf ./dist && npm run babel",
"mocha": "istanbul cover `npm bin`/_mocha test/scripts/test-bizapp-compose.js --slow 1000",
"test": "npm run build && npm run mocha",
"pub": "npm run build && npm publish",
"build:docker": "docker build . -t=apfe/apfe-build-docker",
"ci": "npm run lint && npm run test"
},
"license": "MIT"
}
99 changes: 0 additions & 99 deletions src/bin/apfe-bizapp-compose.js

This file was deleted.

69 changes: 0 additions & 69 deletions src/bin/apfe-bizapp-create.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/bin/apfe-bizapp.js

This file was deleted.

Loading

0 comments on commit b5de1ae

Please sign in to comment.