0.1.0 • Published 5 years ago

hc-honeypack-auto-module-plugin v0.1.0

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago
var MyPlugin = require('@ali/auto-router-plugin');
new MyPlugin({
  basePath: path.resolve(process.cwd(),'./assets'), //前端目录的base路径
  modelsPath: path.resolve(process.cwd(),'./assets/models'), // models目录的路径
  scenesPath: path.resolve(process.cwd(),'./assets/scenes'), // scenes目录的路径
  extensions: ['jsx', 'js']  // 识别文件类型
})

AutoRouter.js

module.exports = {
  "./scenes/algorithm/add.jsx": require('./scenes/algorithm/add.jsx'),
  "./scenes/algorithm/add_new.jsx": require('./scenes/algorithm/add_new.jsx'),
  "./scenes/algorithm/list.jsx": require('./scenes/algorithm/list.jsx')
}

AutoModel.js

module.exports = {
  "./models/alg_category.js": require('./models/alg_category.js'),
  "./models/alg_define.js": require('./models/alg_define.js'),
  "./models/alg_inst.js": require('./models/alg_inst.js')
}
0.1.0

5 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago