Merge pull request #3543 from spicyj/keep-docs-js-react
Keep docs/js/{react,JSXTransformer}.js in repo
This commit is contained in:
commit
b20778a7f6
|
@ -18,7 +18,6 @@ module.exports = function(grunt) {
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
pkg: grunt.file.readJSON('package.json'),
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
copy: require('./grunt/config/copy'),
|
|
||||||
jsx: require('./grunt/config/jsx'),
|
jsx: require('./grunt/config/jsx'),
|
||||||
browserify: require('./grunt/config/browserify'),
|
browserify: require('./grunt/config/browserify'),
|
||||||
populist: require('./grunt/config/populist')(grunt),
|
populist: require('./grunt/config/populist')(grunt),
|
||||||
|
@ -236,7 +235,6 @@ module.exports = function(grunt) {
|
||||||
'npm-react:pack',
|
'npm-react:pack',
|
||||||
'npm-react-tools:release',
|
'npm-react-tools:release',
|
||||||
'npm-react-tools:pack',
|
'npm-react-tools:pack',
|
||||||
'copy:react_docs',
|
|
||||||
'compare_size'
|
'compare_size'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
|
@ -111,13 +111,15 @@ function bower() {
|
||||||
function docs() {
|
function docs() {
|
||||||
var done = this.async();
|
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);
|
var files = grunt.file.expand(GH_PAGES_GLOB);
|
||||||
files.forEach(function(file) {
|
files.forEach(function(file) {
|
||||||
grunt.file.delete(file, {force: true});
|
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 the docs with `rake release`, which will compile the CSS & JS, then
|
||||||
// build jekyll into GH_PAGES_PATH
|
// build jekyll into GH_PAGES_PATH
|
||||||
var rakeOpts = {
|
var rakeOpts = {
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
"grunt-contrib-clean": "^0.6.0",
|
"grunt-contrib-clean": "^0.6.0",
|
||||||
"grunt-contrib-compress": "^0.13.0",
|
"grunt-contrib-compress": "^0.13.0",
|
||||||
"grunt-contrib-connect": "~0.6.0",
|
"grunt-contrib-connect": "~0.6.0",
|
||||||
"grunt-contrib-copy": "^0.8.0",
|
|
||||||
"grunt-contrib-jshint": "^0.10.0",
|
"grunt-contrib-jshint": "^0.10.0",
|
||||||
"grunt-jest": "^0.1.2",
|
"grunt-jest": "^0.1.2",
|
||||||
"gzip-js": "~0.3.2",
|
"gzip-js": "~0.3.2",
|
||||||
|
|
Loading…
Reference in New Issue