Skip to content

Commit

Permalink
extend functions moved to /extend
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Oct 2, 2016
1 parent 652c217 commit 99e2765
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
6 changes: 1 addition & 5 deletions src/cli/helpers/abe-hooks.js → src/cli/extend/abe-hooks.js
@@ -1,14 +1,10 @@
import fse from 'fs-extra'
import clc from 'cli-color'
import extend from 'extend'
import path from 'path'

import hooksDefault from '../../hooks/hooks'

import {
Util
,FileParser
,config
config
,fileUtils
,Plugins
} from '../'
Expand Down
@@ -1,12 +1,7 @@
import fse from 'fs-extra'
import clc from 'cli-color'
import extend from 'extend'
import path from 'path'
import {
Util,
FileParser,
config,
fileUtils,
folderUtils
} from '../'

Expand Down
Expand Up @@ -25,12 +25,12 @@ var abeProcess = function(name, args = []) {
}catch(err) {
try {
file = Plugins.instance.getProcess(name)
var stats = fse.statSync(file)
stats = fse.statSync(file)
if (stats.isFile()) {
process.fork(file, args)
}
}catch(err) {

console.log('process fork failed')
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/handlebars/index.js
Expand Up @@ -2,7 +2,7 @@ import Handlebars from 'handlebars'
import HandlebarsIntl from 'handlebars-intl'
import handlebarsHelperSlugify from 'handlebars-helper-slugify'

import hooks from '../helpers/abe-hooks'
import hooks from '../'

/* Handlebar utilities */
import attrAbe from './utils/attrAbe'
Expand Down
7 changes: 4 additions & 3 deletions src/cli/index.js
Expand Up @@ -49,10 +49,11 @@ import removeDuplicateAttr from './helpers/abe-remove-duplicate-attr'
import abeCreate from './helpers/abe-create'
import abeDuplicate from './helpers/abe-duplicate'
import Sql from './helpers/abe-sql'
import abeProcess from './helpers/abe-process'

import {save, checkRequired, saveJson} from './controllers/Save'
import Hooks from './helpers/abe-hooks'
import Plugins from './helpers/abe-plugins'
import abeProcess from './extend/abe-process'
import Hooks from './extend/abe-hooks'
import Plugins from './extend/abe-plugins'


import getSelectTemplateKeys from './helpers/abe-get-select-template-keys'
Expand Down

0 comments on commit 99e2765

Please sign in to comment.