Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Refactor build to generate UMD and AMD artifacts #337

Merged
merged 20 commits into from
May 31, 2017
Merged

Refactor build to generate UMD and AMD artifacts #337

merged 20 commits into from
May 31, 2017

Conversation

ryanone
Copy link
Contributor

@ryanone ryanone commented May 26, 2017

Primary goal of this PR is to move away from src files containing UMD (or AMD) wrappers to instead allow for src files to be written as ES6 modules, and rely on the build to generate UMD/AMD artifacts. rollup (via grunt-rollup) is used along with babel (rollup-plugin-babel) are used to generate UMD and AMD artifacts, and to transpile ES6. In the dist/ directory, we output hopscotch_amd.js and hopscotch_amd.min.js, which are AMD artifacts. I also updated the Travis CI file, by updating the versions of Node used. All existing grunt tasks maintain functionality, and all existing artifacts remain. Only the AMD artifacts were added.

Testing done includes running all tasks, and running the Jasmine tests

Copy link
Contributor

@timlindvall timlindvall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, though let's not overwrite archives and dist in ths PR. Those folders get added to or overwritten as part of the release process.

@timlindvall timlindvall merged commit 05c3014 into LinkedInAttic:master May 31, 2017
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.

2 participants