feat(cli): gen package entry in lib dir

This commit is contained in:
陈嘉涵
2019-12-11 16:27:32 +08:00
parent 2fd09f52b0
commit 29e9e1c476
5 changed files with 60 additions and 17 deletions
@@ -4,6 +4,7 @@ import { genPacakgeStyle } from './gen-package-style';
import { genSiteMobileShared } from './gen-site-mobile-shared';
import { genSiteDesktopShared } from './gen-site-desktop-shared';
import { genStyleDepsMap } from './gen-style-deps-map';
import { PACKAGE_ENTRY_FILE } from '../common/constant';
const PLUGIN_NAME = 'VantCliSitePlugin';
@@ -16,7 +17,9 @@ export class VantCliSitePlugin {
return new Promise((resolve, reject) => {
genStyleDepsMap()
.then(() => {
genPackageEntry();
genPackageEntry({
outputPath: PACKAGE_ENTRY_FILE
});
genPacakgeStyle();
genSiteMobileShared();
genSiteDesktopShared();