Closed premasagar closed 10 years ago
I suppose then there will be no need for a dist
folder in master?
https://github.com/dharmafly/pablo/tree/gruntTask
There is a new grunt task which executes git commands which:
(The script assumes you grunt off master branch)
It's not finished yet because of a bug which prevents commits to happen on the gh-pages. I'm assuming something incorrect happens with the git commands as the grunt tasks finishes without errors.
If there are no changes when the files are overwritten (i.e. no changes) then the git commands check back to master successful.
The grunt task pauses for 3 seconds between each git command. This is temporary to help with debugging.
If you want to test yourself:
$ cd build
$ grunt
(Try first with no changes made and with changes made)
Great. Would be good if it didn't assume master branch - i.e. it can build from any branch into gh-pages, and then return to the branch.
Premasagar Rose, Dharmafly http://dharmafly.com dharmafly.com / 07941 192398 premasagar.com twitter.com/premasagar L4RP.com asyncjs.com
Yeah sure, I don't think it would be that hard. I would probably need to use a git library or maybe look at the local git file which probably says the current branch a person is in.
Great. Would be good if it didn't assume master branch - i.e. it can build from any branch into gh-pages, and then return to the branch.
7566feef7a58badeb4438c29b12daa4490196bd2
It now checks back to the current branch not always master
Having a Grunt task that creates a dist folder containing the min.js would still be useful. But the task that updates the gh-pages branch is separate from this and should not create a dist folder.
Premasagar Rose, Dharmafly http://dharmafly.com dharmafly.com / 07941 192398 premasagar.com twitter.com/premasagar L4RP.com asyncjs.com
Having a Grunt task that creates a dist folder containing the min.js would still be useful. But the task that updates the gh-pages branch is separate from this and should not create a dist folder.
Implemented in 5f3dd8a04c56c2cfe32910e763a5abfc06499c82 (gruntTask branch).
You can now do grunt dist
which creates a dist folder in the project directory with pablo.min.js inside it.
Doing just grunt
will do the task mentioned above with the gh pages.
git commit
message: "Update site files"