choerodon-front-iam,choerodon-front-devops,还有我们开发的模块。怎么用choerodon-front打包到一起
你可以参考
将所有的项目都作为一个项目的子项目
然后通过命令进行打包
$ npm run build" choerodon-front-iam/iam choerodon-front-devops/devops choerodon-front-agile/agile
npm run build choerodon-front-iam/iam choerodon-front-agile/agile 我执行这个操作报错
0 info it worked if it ends with ok
1 verbose cli [ ‘E:\nodejs\node.exe’,
1 verbose cli ‘E:\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘build’,
1 verbose cli ‘choerodon-front-iam/iam’,
1 verbose cli ‘choerodon-front-agile/agile’ ]
2 info using npm@5.6.0
3 info using node@v8.9.4
4 verbose run-script [ ‘prebuild’, ‘build’, ‘postbuild’ ]
5 info lifecycle choerodon-front@0.8.1~prebuild: choerodon-front@0.8.1
6 info lifecycle choerodon-front@0.8.1~build: choerodon-front@0.8.1
7 verbose lifecycle choerodon-front@0.8.1~build: unsafe-perm in lifecycle true
8 verbose lifecycle choerodon-front@0.8.1~build: PATH: E:\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;E:\product\open\git\choerodon\truck\choerodon_front\choerodon-front\node_modules.bin;E:\Oracle\xe\app\oracle\product\11.2.0\server\bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel® Management Engine Components\DAL;C:\Program Files\Intel\Intel® Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel® Management Engine Components\IPT;C:\Program Files\Intel\Intel® Management Engine Components\IPT;C:\Program Files (x86)\cvsnt;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\config\systemprofile.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;E:\nodejs;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;E:\mac_share\maven\bin;D:\develop\Apache2.4\bin;E:\Oracle\xe\app\oracle\product\11.2.0\server\bin;E:\Android\tools;E:\Android\android-sdk-windows\tools;E:\Android\android-sdk-windows\platform-tools;E:\Android\android-ndk-r6b;D:\develop\MySQL\mysql-5.5.40-winx64\bin;D:\Program Files (x86)\Git\bin;C:\Program Files (x86)\CVSNT;D:\Program Files\TortoiseSVN\bin;E:\nodejs;C:\Users\fly\AppData\Local\Programs\Python\Python35-32;C:\Program Files\MongoDB\Server\3.2\bin;E:\Git\bin;C:\develop\Java\jdk1.8.0_60\bin;C:\Users\fly\AppData\Local\Microsoft\WindowsApps;D:\MinGW\bin;C:\Python27;C:\Users\fly\AppData\Roaming\npm;C:\Program Files\Docker Toolbox;C:\Program Files\Oracle\VirtualBox;C:\Program Files\Microsoft VS Code\bin
9 verbose lifecycle choerodon-front@0.8.1~build: CWD: E:\product\open\git\choerodon\truck\choerodon_front\choerodon-front
10 silly lifecycle choerodon-front@0.8.1~build: Args: [ ‘/d /s /c’,
10 silly lifecycle ‘choerodon-front-boot build --config ./config.js “choerodon-front-iam/iam” “choerodon-front-agile/agile”’ ]
11 silly lifecycle choerodon-front@0.8.1~build: Returned: code: 1 signal: null
12 info lifecycle choerodon-front@0.8.1~build: Failed to exec build script
13 verbose stack Error: choerodon-front@0.8.1 build: choerodon-front-boot build --config ./config.js "choerodon-front-iam/iam" "choerodon-front-agile/agile"
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (E:\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess. (E:\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid choerodon-front@0.8.1
15 verbose cwd E:\product\open\git\choerodon\truck\choerodon_front\choerodon-front
16 verbose Windows_NT 10.0.14393
17 verbose argv “E:\nodejs\node.exe” “E:\nodejs\node_modules\npm\bin\npm-cli.js” “run” “build” “choerodon-front-iam/iam” “choerodon-front-agile/agile”
18 verbose node v8.9.4
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error choerodon-front@0.8.1 build: choerodon-front-boot build --config ./config.js "choerodon-front-iam/iam" "choerodon-front-agile/agile"
22 error Exit status 1
23 error Failed at the choerodon-front@0.8.1 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]