Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Change build-dist output and support S3 and Github Release deploys #22

Merged
merged 6 commits into from Jul 12, 2016

Conversation

ThaNarie
Copy link
Member

@ThaNarie ThaNarie commented Jul 9, 2016

Changed the output of the dist folder so all output files are in the
same folder, and now have the type (umd, amd, commonjs, system) in
their filename. The es6 target still has its own folder.

Updated the webpack output to only create a minified version of files
that are used in the browser (normal and umd), because other files will
only be used in a build system that can do the minification.

Added a package-dist.js script that prepares the dist for deploys to
s3 and GitHub release. It moves the files in the dist folder to a name +
version folder to mimic the s3 folder structure. It also packages the
es6 folder into a zip file so it can be linked.
For the GitHub release it creates a .zip and .tar.gz file with the
contents of the original dist folder.

Updated the .travis.yml to run the build-dist and package-dist
scripts before the deploy, and added configurations and tokens for the
s3 and Github Release deploys.

Updated the npm run clean, .gitignore and .npmignore to also
clean/ignore the two dist archives in the root.

re #11

Changed the output of the `dist` folder so all output files are in the
same folder, and now have the type (umd, amd, commonjs, system) in
their filename. The es6 target still has its own folder.

Updated the webpack output to only create a minified version of files
that are used in the browser (normal and umd), because other files will
only be used in a build system that can do the minification.

Added a `package-dist.js` script that prepares the dist for deploys to
s3 and GitHub release. It moves the files in the dist folder to a name +
version folder to mimic the s3 folder structure. It also packages the
es6 folder into a zip file so it can be linked.
For the GitHub release it creates a .zip and .tar.gz file with the
contents of the original dist folder.

Updated the `.travis.yml` to run the `build-dist` and `package-dist`
scripts before the deploy, and added configurations and tokens for the
s3 and Github Release deploys.

Updated the `npm run clean`, `.gitignore` and `.npmignore` to also
clean/ignore the two dist archives in the root.

re #11
If it's not added, it fails, and other deploy configs cannot be tested.
@ThaNarie
Copy link
Member Author

ThaNarie commented Jul 9, 2016

@ThaNarie
Copy link
Member Author

ThaNarie commented Jul 9, 2016

Awesome, github release also works:
https://github.com/mediamonks/seng-boilerplate/releases/tag/v1.3.0-alpha-2

Will updated the readme in this PR as well.

Commented out the part that links to the s3 sources, as there is no
way to link to a specific version yet without updating this readme
manually after each new version.

re #11
@coveralls
Copy link

coveralls commented Jul 12, 2016

Coverage Status

Coverage remained the same at 80.0% when pulling dec423a on feature/dist into 7f7c43f on master.

@ThaNarie ThaNarie merged commit 60cf85a into master Jul 12, 2016
@ThaNarie ThaNarie deleted the feature/dist branch July 12, 2016 19:59
flut1 pushed a commit to mediamonks/seng-event that referenced this pull request Jul 13, 2016
Create archives of all distribution builds when a new release is
created, and upload these archives to an s3 bucket.

Based on mediamonks/seng-boilerplate#22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants