@samitouri / QOS-React-2 / commits / f7a3ac2d56

Stop generating gh-pages during release, update message

Paul O’Shannessy committed Oct 13, 2015 at 09:37 UTC f7a3ac2d5657bc1035a6d8064cd17c40494b70fa
1 file changed +3 -28
grunt/tasks/release.js
+3 -28
@@ -12,8 +12,6 @@ var BOWER_FILES = [
12 'react-dom.js',
13 'react-dom.min.js',
14 ];
15 -var GH_PAGES_PATH = '../react-gh-pages/';
16 -var GH_PAGES_GLOB = [GH_PAGES_PATH + '*'];
15
16 var EXAMPLES_PATH = 'examples/';
17 var EXAMPLES_GLOB = [EXAMPLES_PATH + '**/*.*'];
@@ -75,12 +73,6 @@ function setup() {
73 return false;
74 }
75
78 - if (!grunt.file.exists(GH_PAGES_PATH)) {
79 - grunt.log.error('Make sure you have the react gh-pages branch checked ' +
80 - 'out at ../react-gh-pages.');
81 - return false;
82 - }
83 -
76 VERSION = grunt.config.data.pkg.version;
77 VERSION_STRING = 'v' + VERSION;
78 }
@@ -104,28 +96,9 @@ function bower() {
96 }
97
98 function docs() {
107 - var done = this.async();
108 -
99 grunt.file.copy('build/react-' + VERSION + '.zip', 'docs/downloads/react-' + VERSION + '.zip');
100 grunt.file.copy('build/react.js', 'docs/js/react.js');
101 grunt.file.copy('build/react-dom.js', 'docs/js/react-dom.js');
112 -
113 - var files = grunt.file.expand(GH_PAGES_GLOB);
114 - files.forEach(function(file) {
115 - grunt.file.delete(file, {force: true});
116 - });
117 -
118 - // Build the docs with `rake release`, which will compile the CSS & JS, then
119 - // build jekyll into GH_PAGES_PATH
120 - var rakeOpts = {
121 - cmd: 'rake',
122 - args: ['release'],
123 - opts: {cwd: 'docs'},
124 - };
125 - grunt.util.spawn(rakeOpts, function() {
126 - // Commit the repo. We don't really care about tagging this.
127 - _gitCommitAndTag(GH_PAGES_PATH, VERSION_STRING, null, done);
128 - });
102 }
103
104 function msg() {
@@ -134,8 +107,10 @@ function msg() {
107 var steps = [
108 'Still todo:',
109 '* put files on CDN',
110 + '* add starter pack (git add -f docs/downloads/react-version.zip)',
111 '* push changes to git repositories',
138 - '* publish npm module (`npm publish .`)',
112 + '* update docs branch variable in Travis CI',
113 + '* publish npm modules',
114 '* announce it on FB/Twitter/mailing list',
115 ];
116 steps.forEach(function(ln) {