Skip to content

Move npm packages into folder #4158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ examples/
# Ignore built files.
build/
# react-codemod
npm-react-codemod/test/
npm-react-codemod/scripts/
npm-react-codemod/build/
npm-react-codemod/node_modules/
packages/react-codemod/test/
packages/react-codemod/scripts/
packages/react-codemod/build/
packages/react-codemod/node_modules/
4 changes: 2 additions & 2 deletions grunt/tasks/npm-react-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ function packRelease() {
var done = this.async();
var spawnCmd = {
cmd: 'npm',
args: ['pack', 'npm-react-dom'],
args: ['pack', 'packages/react-dom'],
};
grunt.util.spawn(spawnCmd, function() {
var buildSrc = 'react-dom-' + grunt.config.data.pkg.version + '.tgz';
var buildDest = 'build/react-dom.tgz';
var buildDest = 'build/packages/react-dom.tgz';
fs.rename(buildSrc, buildDest, done);
});
}
Expand Down
8 changes: 4 additions & 4 deletions grunt/tasks/npm-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
var fs = require('fs');
var grunt = require('grunt');

var src = 'npm-react/';
var dest = 'build/npm-react/';
var src = 'packages/react/';
var dest = 'build/packages/react/';
var modSrc = 'build/modules/';
var lib = dest + 'lib/';
var dist = dest + 'dist/';
Expand Down Expand Up @@ -54,14 +54,14 @@ function packRelease() {
var done = this.async();
var spawnCmd = {
cmd: 'npm',
args: ['pack', 'npm-react'],
args: ['pack', 'packages/react'],
opts: {
cwd: 'build/',
},
};
grunt.util.spawn(spawnCmd, function() {
var buildSrc = 'build/react-' + grunt.config.data.pkg.version + '.tgz';
var buildDest = 'build/react.tgz';
var buildDest = 'build/packages/react.tgz';
fs.rename(buildSrc, buildDest, done);
});
}
Expand Down
8 changes: 4 additions & 4 deletions grunt/tasks/version-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ module.exports = function() {
var pkgVersion = grunt.config.data.pkg.version;

var versions = {
'npm-react/package.json':
grunt.file.readJSON('./npm-react/package.json').version,
'npm-react-dom/package.json':
grunt.file.readJSON('./npm-react-dom/package.json').version,
'packages/react/package.json':
grunt.file.readJSON('./packages/react/package.json').version,
'packages/react-dom/package.json':
grunt.file.readJSON('./packages/react-dom/package.json').version,
'src/React.js': reactVersionExp.exec(grunt.file.read('./src/React.js'))[1],
};

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.