@@ -3,9 +3,7 @@ import path from 'path';
3
3
import fsp from 'fs-promise' ;
4
4
import { copy } from '../fs-utils' ;
5
5
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' ;
9
7
10
8
const packagePath = path . join ( repoRoot , 'package.json' ) ;
11
9
const bowerTemplate = path . join ( __dirname , 'bower.json' ) ;
@@ -14,14 +12,6 @@ const bowerJson = path.join(bowerRoot, 'bower.json');
14
12
const readme = path . join ( __dirname , 'README.md' ) ;
15
13
const license = path . join ( repoRoot , 'LICENSE' ) ;
16
14
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
-
25
15
function bowerConfig ( ) {
26
16
return Promise . all ( [
27
17
fsp . readFile ( packagePath )
@@ -37,11 +27,9 @@ export default function BuildBower() {
37
27
console . log ( 'Building: ' . cyan + 'bower module' . green ) ;
38
28
39
29
return exec ( `rimraf ${ bowerRoot } ` )
40
- . then ( ( ) => fsp . mkdirs ( factoriesDestination ) )
30
+ . then ( ( ) => fsp . mkdirs ( bowerRoot ) )
41
31
. then ( ( ) => Promise . all ( [
42
32
bowerConfig ( ) ,
43
- generateFactories ( factoriesDestination , babelOptions ) ,
44
- buildFolder ( srcRoot , libDestination , babelOptions ) ,
45
33
copy ( readme , bowerRoot ) ,
46
34
copy ( license , bowerRoot )
47
35
] ) )
0 commit comments