split creation of dirs and copying of resources into single steps for
easier debugging
This commit is contained in:
parent
992a07d93a
commit
e9697aa88b
1 changed files with 5 additions and 1 deletions
|
@ -30,11 +30,15 @@ cp -a dencode.css index.html package.json systemjs.config.js "${destination}" ||
|
|||
mkdir -p "${destination}/app" || die "Failed to create dest/app directory"
|
||||
cp -a app/*.css app/*.html app/*.js app/*.js.map "${destination}/app" || die "Failed to copy resources to dest/app"
|
||||
|
||||
mkdir -p "${destination}/node_modules/@angular" "${destination}/node_modules/core-js/client" "${destination}/node_modules/zone.js/dist" "${destination}/node_modules/reflect-metadata" "${destination}/node_modules/systemjs/dist" || die "Failed to create dest/node_modules/* directories"
|
||||
mkdir -p "${destination}/node_modules/@angular" || die "Failed to create dest/node_modules/@angular"
|
||||
cp -a node_modules/@angular/* "${destination}/node_modules/@angular/" || die "Failed to copy @angular"
|
||||
mkdir -p "${destination}/node_modules/core-js/client" || die "Failed to create dest/node_modules/core-js"
|
||||
cp -a node_modules/core-js/client/shim.js "${destination}/node_modules/core-js/client/" || die "Failed to copy core-js"
|
||||
mkdir -p "${destination}/node_modules/zone.js/dist" || die "Failed to create dest/node_modules/zone.js"
|
||||
cp -a node_modules/zone.js/dist/zone.js "${destination}/node_modules/zone.js/dist/" || die "Failed to copy zone.js"
|
||||
mkdir -p "${destination}/node_modules/reflect-metadata" || die "Failed to create dest/node_modules/reflect-metadata"
|
||||
cp -a node_modules/reflect-metadata/Reflect.js "${destination}/node_modules/reflect-metadata/" || die "Failed to copy Reflect.js"
|
||||
mkdir -p "${destination}/node_modules/systemjs/dist" || die "Failed to create dest/node_modules/systemjs"
|
||||
cp -a node_modules/systemjs/dist/system.src.js "${destination}/node_modules/systemjs/dist/" || die "Failed to copy system.src.js"
|
||||
|
||||
echo "Deployment successful."
|
||||
|
|
Loading…
Reference in a new issue