Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve release workflow #972

Merged
merged 1 commit into from
Nov 23, 2015
Merged

Improve release workflow #972

merged 1 commit into from
Nov 23, 2015

Conversation

mucaho
Copy link
Contributor

@mucaho mucaho commented Nov 13, 2015

Collection of improvements that will reduce human error when releasing
crafty for download, npm and bower.
Grunt task 'release' demands a 'crafty_version' command line parameter
which will update the version in the relevant files.
Additional meta improvements.

Fixes future bower release inconsistencies.

@mucaho mucaho mentioned this pull request Nov 13, 2015
3 tasks
@mucaho mucaho force-pushed the fix_releasing branch 3 times, most recently from 62ea48e to d6e7b4e Compare November 13, 2015 16:30
@@ -1,5 +1,4 @@
/crafty.js
/crafty-min.js
dist/
Copy link
Member

Choose a reason for hiding this comment

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

Don't we need to include this for the files to actually be accessible to bower?

The whole root issue is that (contrary to standard practices) bower requires you to include the release artifacts in the repository If we don't want to do that, the alternative is to have a separate repo for distribution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm good point. If we don't ignore the release artifacts, we will have to check every PR so that users don't accidentally commit their release artifacts (because of security reasons). If we do ignore the release artifacts, I believe you can still add them to the commit (by git add dist/crafty.js), but care has to be taken not to forget adding them on release. What do you suggest?

@mucaho
Copy link
Contributor Author

mucaho commented Nov 18, 2015

Ok, modified it so that the dev build still builds to crafty.js (which is still git-ignored), and release build builds to dist/crafty.js and dist/crafty-min.js (which is not git-ignored).

Collection of improvements that will reduce human error when releasing
crafty for download, npm and bower.
Grunt task 'release' demands a 'crafty_version' command line parameter
which will update the version in the relevant files and builds to 'dist'
subfolder.
Additional meta improvements.
@mucaho
Copy link
Contributor Author

mucaho commented Nov 23, 2015

Merging, as default workflow stays same, and on release we will have updated artifacts in /dist folder.

mucaho pushed a commit that referenced this pull request Nov 23, 2015
@mucaho mucaho merged commit 4bc20a1 into craftyjs:develop Nov 23, 2015
@mucaho mucaho deleted the fix_releasing branch November 23, 2015 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants