Move npm-react-core to npm-react, fix tasks accordingly

This commit is contained in:
Paul O’Shannessy
2013-12-06 12:11:40 -08:00
parent 9fdf589976
commit ce0f244c54
7 changed files with 10 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ var webdriverJasmineTasks = require('./grunt/tasks/webdriver-jasmine');
var sauceTunnelTask = require('./grunt/tasks/sauce-tunnel');
var npmTask = require('./grunt/tasks/npm');
var releaseTasks = require('./grunt/tasks/release');
var reactCoreTasks = require('./grunt/tasks/react-core');
var npmReactTasks = require('./grunt/tasks/npm-react');
module.exports = function(grunt) {
@@ -52,7 +52,7 @@ module.exports = function(grunt) {
grunt.registerMultiTask('npm', npmTask);
grunt.registerTask('react-core:release', reactCoreTasks.buildRelease);
grunt.registerTask('npm-react:release', npmReactTasks.buildRelease);
// Check that the version we're exporting is the same one we expect in the
// package. This is not an ideal way to do this, but makes sure that we keep
@@ -62,7 +62,7 @@ module.exports = function(grunt) {
var reactVersion = reactVersionExp.exec(
grunt.file.read('./build/modules/React.js')
)[1];
var reactCoreVersion = grunt.file.readJSON('./npm-react-core/package.json').version;
var npmReactVersion = grunt.file.readJSON('./npm-react/package.json').version;
var reactToolsVersion = grunt.config.data.pkg.version;
if (reactVersion !== reactToolsVersion) {
@@ -73,11 +73,11 @@ module.exports = function(grunt) {
);
return false;
}
if (reactCoreVersion !== reactToolsVersion) {
if (npmReactVersion !== reactToolsVersion) {
grunt.log.error(
'react-core version does not match react-tools veersion. Expected %s, saw %s',
'npm-react version does not match react-tools veersion. Expected %s, saw %s',
reactToolsVersion,
reactCoreVersion
npmReactVersion
);
return false;
}
@@ -98,7 +98,7 @@ module.exports = function(grunt) {
'version-check',
'populist:test'
]);
grunt.registerTask('build:react-core', ['version-check', 'jsx:release', 'react-core:release']);
grunt.registerTask('build:npm-react', ['version-check', 'jsx:release', 'react-core:release']);
grunt.registerTask('webdriver-phantomjs', webdriverPhantomJSTask);

View File

@@ -2,8 +2,8 @@
var grunt = require('grunt');
var src = 'npm-react-core/';
var dest = 'build/react-core/';
var src = 'npm-react/';
var dest = 'build/npm-react/';
var modSrc = 'build/modules/';
var lib = dest + 'lib/';

View File

@@ -4,7 +4,7 @@
"keywords": [
"react"
],
"homepage": "https://github.com/facebook/react/tree/master/npm-react-core",
"homepage": "https://github.com/facebook/react/tree/master/npm-react",
"bugs": "https://github.com/facebook/react/issues?labels=react-core",
"licenses": [
{