File tree 6 files changed +41
-46
lines changed
6 files changed +41
-46
lines changed Original file line number Diff line number Diff line change @@ -4,29 +4,21 @@ var fs = require('fs');
4
4
var grunt = require ( 'grunt' ) ;
5
5
6
6
var src = 'npm-react-tools' ;
7
+ var srcSrc = 'src/**/*.js' ;
7
8
var dest = 'build/npm-react-tools/' ;
8
9
9
10
function buildRelease ( ) {
10
11
if ( grunt . file . exists ( dest ) ) {
11
12
grunt . file . delete ( dest ) ;
12
13
}
13
14
14
- // read our required files from package.json
15
- var pkgFiles = grunt . config . data . pkg . files ;
16
-
17
15
// copy all files from src first, includes custom README
18
16
var mappings = grunt . file . expandMapping ( '**/*' , dest , { cwd : src } ) ;
19
17
20
- // make sure we also get package.json
21
- pkgFiles . push ( 'package.json' ) ;
22
-
23
- pkgFiles . map ( function ( file ) {
24
- if ( grunt . file . isDir ( file ) ) {
25
- mappings = mappings . concat ( grunt . file . expandMapping ( file + '**/*' , dest ) ) ;
26
- } else {
27
- mappings . push ( { src : [ file ] , dest : dest + file } ) ;
28
- }
29
- } ) ;
18
+ // Also copy all files from src/ (for react-native)
19
+ mappings = mappings . concat (
20
+ grunt . file . expandMapping ( srcSrc , dest )
21
+ ) ;
30
22
31
23
mappings . forEach ( function ( mapping ) {
32
24
var mappingSrc = mapping . src [ 0 ] ;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " react-tools" ,
3
+ "description" : " A set of complementary tools to React, including the JSX transformer." ,
4
+ "version" : " 0.14.0-alpha3" ,
5
+ "keywords" : [
6
+ " react" ,
7
+ " jsx" ,
8
+ " transformer" ,
9
+ " view"
10
+ ],
11
+ "homepage" : " https://facebook.github.io/react" ,
12
+ "bugs" : " https://github.com/facebook/react/issues" ,
13
+ "license" : " BSD-3-Clause" ,
14
+ "files" : [
15
+ " main.js" ,
16
+ " bin/jsx" ,
17
+ " src/"
18
+ ],
19
+ "main" : " main.js" ,
20
+ "bin" : {
21
+ "jsx" : " ./bin/jsx"
22
+ },
23
+ "repository" : " facebook/react" ,
24
+ "dependencies" : {
25
+ "commoner" : " ^0.10.0" ,
26
+ "jstransform" : " ^11.0.0"
27
+ },
28
+ "engines" : {
29
+ "node" : " >=0.10.0"
30
+ },
31
+ "preferGlobal" : true
32
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " react-tools " ,
3
- "description " : " A set of complementary tools to React, including the JSX transformer. " ,
2
+ "name" : " react-build " ,
3
+ "private " : true ,
4
4
"version" : " 0.14.0-beta1" ,
5
- "keywords" : [
6
- " jsx" ,
7
- " react" ,
8
- " transformer" ,
9
- " view"
10
- ],
11
- "homepage" : " https://facebook.github.io/react" ,
12
- "bugs" : " https://github.com/facebook/react/issues" ,
13
- "license" : " BSD-3-Clause" ,
14
- "files" : [
15
- " bin/jsx" ,
16
- " main.js" ,
17
- " src/"
18
- ],
19
- "main" : " main.js" ,
20
- "bin" : {
21
- "jsx" : " ./bin/jsx"
22
- },
23
- "repository" : {
24
- "type" : " git" ,
25
- "url" : " https://github.com/facebook/react"
26
- },
27
- "dependencies" : {
28
- "commoner" : " ^0.10.0" ,
29
- "jstransform" : " ^11.0.0"
30
- },
31
5
"devDependencies" : {
32
6
"babel" : " ^5.8.3" ,
33
7
"babel-eslint" : " ^3.1.25" ,
54
28
"gulp-util" : " ^3.0.5" ,
55
29
"gzip-js" : " ~0.3.2" ,
56
30
"jest-cli" : " ^0.4.13" ,
31
+ "jstransform" : " ^11.0.0" ,
57
32
"object-assign" : " ^3.0.0" ,
58
33
"optimist" : " ^0.6.1" ,
59
34
"platform" : " ^1.1.0" ,
67
42
"engines" : {
68
43
"node" : " >=0.10.0"
69
44
},
70
- "preferGlobal" : true ,
71
45
"commonerConfig" : {
72
46
"version" : 7
73
47
},
Original file line number Diff line number Diff line change 16
16
" lib/"
17
17
],
18
18
"main" : " react.js" ,
19
- "repository" : {
20
- "type" : " git" ,
21
- "url" : " https://github.com/facebook/react"
22
- },
19
+ "repository" : " facebook/react" ,
23
20
"engines" : {
24
21
"node" : " >=0.10.0"
25
22
},
You can’t perform that action at this time.
0 commit comments