Skip to content

Commit

Permalink
fix: review code
Browse files Browse the repository at this point in the history
  • Loading branch information
gucovip committed Dec 24, 2019
1 parent 7cd7b17 commit 4e90de4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/loaders/PluginLoader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path')
module.exports = (utils) => {
const baseArr = getPluginFromDir(path.join(evaSpace.ROOT_DIR, 'base_plugin'))
console.trace('基础插件加载完毕.')
utils.createFolder(evaSpace.evaWorkHome + '/plugins/default')
utils.createFolder(`${evaSpace.evaWorkHome}/plugins/default`)
const extendArr = getPluginFromDir(path.join(evaSpace.evaWorkHome, 'plugins'))
console.trace('扩展插件加载完毕.')
const allPlugin = baseArr.concat(extendArr)
Expand All @@ -17,7 +17,7 @@ function getPluginFromDir(path) {
return require("fs").readdirSync(path).filter(item => {
return item !== '.DS_Store'
}).map(file => {
const middleObject = require(`${path}/` + file)
const middleObject = require(`${path}/${file}`)
return {
...middleObject,
__dir: path
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eva-app",
"version": "0.0.1",
"version": "1.0.0",
"description": "",
"main": "./index.js",
"scripts": {
Expand Down

0 comments on commit 4e90de4

Please sign in to comment.