0.3.5 • Published 7 years ago
dva-ast v0.3.5
dva-ast
dva static analysis based on javascript ast.
Development Workflow
After cloning this repo.
$ npm install
$ npm run debug
API
runner
- runner(sourcePath, options)
transform
- transform({ source, path }, { jscodeshift })
api
models
All apis of models contains sourcePath
and filePath
.
create({ namespace, entry?, modelPath? })
remove({ namespace })
updateNamespace({ namespace, newNamespace })
updateState({ namespace, source })
addReducer({ namespace, name, [source] })
updateReducer({ namespace, name, source })
removeReducer({ namespace, name })
addEffect({ namespace, name, [source] })
updateEffect({ namespace, name, source })
removeEffect({ namespace, name })
addSubscription({ namespace, name, [source] })
updateSubscription({ namespace, name, source })
removeSubscription({ namespace, name })
routeComponents
All apis of routeComponents contains sourcePath
and filePath
.
create({ componentName })
remove()
update()
addDispatch({ actionType })
project
loadAll({ sourcePath })
loadAll({ sourcePath, filePath })
router
createRoute({ path, component, [parentId] })
- component
<object>
- componentName
- filePath, if file is not exist, dva-ast will create a new component for you
- component
createIndexRoute({ component, [parentId] })
createRedirect({ from, to, [parentId] })
createIndexRedirect({ to, [parentId] })
remove({ id })
moveTo({ id, parentId })
entry
addModel({ entry, modelPath })
LICENSE
MIT
0.3.5
7 years ago
0.3.4
7 years ago
0.3.3
7 years ago
0.3.2
7 years ago
0.3.1
8 years ago
0.3.0
8 years ago
0.3.0-rc-1
8 years ago
0.3.0-beta-4
8 years ago
0.3.0-beta-3
8 years ago
0.3.0-beta-2
8 years ago
0.3.0-beta-1
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.4
8 years ago
0.1.3
8 years ago
0.1.2
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago