commonjstrans-cli-plus
v0.0.8
Published
transform nej-pro-page to new project
Downloads
2
Readme
commonjstrans-cli
Installation
$ npm install -g commonjstrans-cli
创建配置文件
$ transp init
const path = require('path');
const projectRoot = '/Users/administrator/工作/netease/haitao-web';
const wabappPath = path.join(projectRoot, 'src', 'main', 'webapp');
const ftlPath = path.join(wabappPath, 'WEB-INF', 'ftl', 'new_templates', 'pages');
const config = {
target: 'web',
webappPath: wabappPath, // webapp目录路径
entry: [
path.join(ftlPath, 'order', 'pay_success.ftl'), // 需要转换的页面
],
TEMP_PATH: path.join(path.resolve('.', 'target')), // 转换后代码存放目录
};
module.exports = config;
开始转换代码
$ transp start