Skip to content

Commit

Permalink
Remove docs step from release task, update message
Browse files Browse the repository at this point in the history
  • Loading branch information
zpao committed Oct 12, 2015
1 parent c1c9b38 commit 3113b13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
1 change: 0 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ module.exports = function(grunt) {
'release:bower',
'release:starter',
'compress',
'release:docs',
'release:msg',
]);

Expand Down
31 changes: 3 additions & 28 deletions grunt/tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ var BOWER_FILES = [
'react-dom.min.js',
];
var GH_PAGES_PATH = '../react-gh-pages/';
var GH_PAGES_GLOB = [GH_PAGES_PATH + '*'];

var EXAMPLES_PATH = 'examples/';
var EXAMPLES_GLOB = [EXAMPLES_PATH + '**/*.*'];
Expand Down Expand Up @@ -103,39 +102,16 @@ function bower() {
_gitCommitAndTag(BOWER_PATH, VERSION_STRING, VERSION_STRING, done);
}

function docs() {
var done = this.async();

grunt.file.copy('build/react-' + VERSION + '.zip', 'docs/downloads/react-' + VERSION + '.zip');
grunt.file.copy('build/react.js', 'docs/js/react.js');
grunt.file.copy('build/react-dom.js', 'docs/js/react-dom.js');

var files = grunt.file.expand(GH_PAGES_GLOB);
files.forEach(function(file) {
grunt.file.delete(file, {force: true});
});

// Build the docs with `rake release`, which will compile the CSS & JS, then
// build jekyll into GH_PAGES_PATH
var rakeOpts = {
cmd: 'rake',
args: ['release'],
opts: {cwd: 'docs'},
};
grunt.util.spawn(rakeOpts, function() {
// Commit the repo. We don't really care about tagging this.
_gitCommitAndTag(GH_PAGES_PATH, VERSION_STRING, null, done);
});
}

function msg() {
// Just output a friendly reminder message for the rest of the process
grunt.log.subhead('Release *almost* complete...');
var steps = [
'Still todo:',
'* put files on CDN',
'* add starter pack (git add -f docs/downloads/react-version.zip)',
'* push changes to git repositories',
'* publish npm module (`npm publish .`)',
'* update docs branch variable in Travis CI',
'* publish npm module',
'* announce it on FB/Twitter/mailing list',
];
steps.forEach(function(ln) {
Expand Down Expand Up @@ -172,7 +148,6 @@ function starter() {
module.exports = {
setup: setup,
bower: bower,
docs: docs,
msg: msg,
starter: starter,
};

0 comments on commit 3113b13

Please sign in to comment.