deploy: specify files to include when copying packages for dist

This commit is contained in:
Brian Mann
2017-06-22 18:29:18 -04:00
parent cb1e555a42
commit aa4f81641b
12 changed files with 41 additions and 8 deletions

View File

@@ -60,12 +60,12 @@ module.exports = (platform, version) ->
Promise
.bind(@)
.then(cleanupPlatform)
.then(buildPackages)
# .then(cleanupPlatform)
# .then(buildPackages)
.then(copyPackages)
.then(npmInstallPackages)
.then(createRootPackage)
.then(symlinkPackages)
# .then(npmInstallPackages)
# .then(createRootPackage)
# .then(symlinkPackages)
# .then(@convertCoffeeToJs)
# .then(@obfuscate)
# .then(@cleanupSrc)

View File

@@ -47,6 +47,7 @@ copyAllToDist = (distDir) ->
## and convert to relative paths
DEFAULT_PATHS
.concat(json.files or [])
.concat(json.main or [])
.map (file) ->
path.join(pkg, file)
.map(copyRelativePathToDist, {concurrency: 1})
@@ -70,7 +71,6 @@ copyAllToDist = (distDir) ->
.map(copyPackage, {concurrency: 1})
.then ->
console.log("Finished Copying", new Date() - started)
.delay(10000)
npmInstallAll = (pathToPackages) ->
## 1,060,495,784 bytes (1.54 GB on disk) for 179,156 items