Merge pull request #3543 from spicyj/keep-docs-js-react

Keep docs/js/{react,JSXTransformer}.js in repo
This commit is contained in:
Ben Alpert 2015-03-30 10:55:29 -07:00
commit b20778a7f6
6 changed files with 35469 additions and 21 deletions

View File

@ -18,7 +18,6 @@ module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: require('./grunt/config/copy'),
jsx: require('./grunt/config/jsx'),
browserify: require('./grunt/config/browserify'),
populist: require('./grunt/config/populist')(grunt),
@ -236,7 +235,6 @@ module.exports = function(grunt) {
'npm-react:pack',
'npm-react-tools:release',
'npm-react-tools:pack',
'copy:react_docs',
'compare_size'
]);

15924
docs/js/JSXTransformer.js Normal file

File diff suppressed because one or more lines are too long

19541
docs/js/react.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,16 +0,0 @@
'use strict';
/*eslint-disable camelcase*/
module.exports = {
react_docs: {
files: [
{
src: ['react.js', 'JSXTransformer.js'],
dest: 'docs/js/',
cwd: 'build/',
expand: true
}
]
}
};

View File

@ -111,13 +111,15 @@ function bower() {
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/JSXTransformer.js', 'docs/js/JSXTransformer.js');
var files = grunt.file.expand(GH_PAGES_GLOB);
files.forEach(function(file) {
grunt.file.delete(file, {force: true});
});
grunt.file.copy('build/react-' + VERSION + '.zip', 'docs/downloads/react-' + VERSION + '.zip');
// Build the docs with `rake release`, which will compile the CSS & JS, then
// build jekyll into GH_PAGES_PATH
var rakeOpts = {

View File

@ -48,7 +48,6 @@
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compress": "^0.13.0",
"grunt-contrib-connect": "~0.6.0",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-jest": "^0.1.2",
"gzip-js": "~0.3.2",