Skip to content

Commit 6e985b0

Browse files
committedJun 11, 2015
[removed] Individual files in bower release
Resolves react-bootstrap#693
1 parent 3a254a1 commit 6e985b0

File tree

3 files changed

+4
-23
lines changed

3 files changed

+4
-23
lines changed
 

‎tools/amd/bower.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"**/.*"
1717
],
1818
"dependencies": {
19-
"react": ">= 0.13.0",
20-
"classnames": "^2.0.0"
19+
"react": ">= 0.13.0"
2120
}
2221
}

‎tools/amd/build.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import path from 'path';
33
import fsp from 'fs-promise';
44
import { copy } from '../fs-utils';
55
import { exec } from '../exec';
6-
import generateFactories from '../generateFactories';
7-
import { repoRoot, srcRoot, bowerRoot } from '../constants';
8-
import { buildFolder } from '../buildBabel';
6+
import { repoRoot, bowerRoot } from '../constants';
97

108
const packagePath = path.join(repoRoot, 'package.json');
119
const bowerTemplate = path.join(__dirname, 'bower.json');
@@ -14,14 +12,6 @@ const bowerJson = path.join(bowerRoot, 'bower.json');
1412
const readme = path.join(__dirname, 'README.md');
1513
const license = path.join(repoRoot, 'LICENSE');
1614

17-
const babelOptions = {
18-
__reactBootstrapDeprecationWarning: true,
19-
modules: 'amd'
20-
};
21-
22-
const libDestination = path.join(bowerRoot, 'lib');
23-
const factoriesDestination = path.join(libDestination, 'factories');
24-
2515
function bowerConfig() {
2616
return Promise.all([
2717
fsp.readFile(packagePath)
@@ -37,11 +27,9 @@ export default function BuildBower() {
3727
console.log('Building: '.cyan + 'bower module'.green);
3828

3929
return exec(`rimraf ${bowerRoot}`)
40-
.then(() => fsp.mkdirs(factoriesDestination))
30+
.then(() => fsp.mkdirs(bowerRoot))
4131
.then(() => Promise.all([
4232
bowerConfig(),
43-
generateFactories(factoriesDestination, babelOptions),
44-
buildFolder(srcRoot, libDestination, babelOptions),
4533
copy(readme, bowerRoot),
4634
copy(license, bowerRoot)
4735
]))

‎tools/buildBabel.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ export function buildContent(content, filename, destination, babelOptions={}) {
1212
}
1313

1414
export function buildFile(filename, destination, babelOptions={}) {
15-
let content = fs.readFileSync(filename, {encoding: 'utf8'});
16-
if (babelOptions.__reactBootstrapDeprecationWarning) {
17-
content = `console.warn('This file is deprecated, and will be removed in v0.24.0. Use react-bootstrap.js or react-bootstrap.min.js instead.');
18-
console.warn('You can read more about it at https://github.com/react-bootstrap/react-bootstrap/issues/693');
19-
${content}`;
20-
}
21-
15+
const content = fs.readFileSync(filename, {encoding: 'utf8'});
2216
if(babelUtil.canCompile(filename)) {
2317
// Get file basename without the extension (in case not .js)
2418
let outputName = path.basename(filename, path.extname(filename));

0 commit comments

Comments
 (0)