File tree 5 files changed +55
-34
lines changed 5 files changed +55
-34
lines changed Original file line number Diff line number Diff line change 4
4
PIG /bundles /
5
5
Parse-Dashboard /public /bundles /
6
6
Parse-Dashboard /parse-dashboard-config.json
7
- dist /
8
7
npm-debug.log
9
8
10
9
// vim .swp
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
- require ( '../dist/ Parse-Dashboard' ) ;
2
+ require ( '../Parse-Dashboard' ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
},
9
9
"license" : " LicenseRef-LICENSE" ,
10
10
"files" : [
11
- " dist"
11
+ " Parse-Dashboard" ,
12
+ " bin"
12
13
],
13
14
"dependencies" : {
14
15
"babel-runtime" : " ~5.8.25" ,
32
33
"babel-loader" : " ~5.3.0" ,
33
34
"babel-plugin-remove-proptypes" : " ~1.0.0" ,
34
35
"css-loader" : " ~0.18.0" ,
35
- "gulp" : " ^3.9.1" ,
36
36
"http-server" : " ~0.8.5" ,
37
37
"immutable-devtools" : " ~0.0.4" ,
38
38
"jest-cli" : " ^0.7.1" ,
51
51
"build" : " NODE_ENV=production webpack --config webpack/production.config.js && webpack --config webpack/PIG.config.js" ,
52
52
"test" : " NODE_PATH=./node_modules jest" ,
53
53
"generate" : " node scripts/generate.js" ,
54
- "prepublish" : " gulp " ,
55
- "start" : " node ./dist/ Parse-Dashboard/index.js"
54
+ "prepublish" : " webpack --config webpack/publish.config.js --progress " ,
55
+ "start" : " node ./Parse-Dashboard/index.js"
56
56
},
57
57
"bin" : {
58
58
"parse-dashboard" : " ./bin/parse-dashboard"
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2016-present, Parse, LLC
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the license found in the LICENSE file in
6
+ * the root directory of this source tree.
7
+ */
8
+ var configuration = require ( './base.config.js' ) ;
9
+
10
+ configuration . entry = { dashboard : './dashboard/index.js' } ;
11
+ configuration . output . path = './Parse-Dashboard/public/bundles' ;
12
+
13
+ var webpack = require ( 'webpack' ) ;
14
+
15
+ // Add propType removal to Babel
16
+ var loaders = configuration . module . loaders ;
17
+ for ( var i = 0 ; i < loaders . length ; i ++ ) {
18
+ if ( loaders [ i ] . loader === 'babel-loader' ) {
19
+ if ( ! loaders [ i ] . query . plugins ) {
20
+ loaders [ i ] . query . plugins = [ ] ;
21
+ }
22
+ loaders [ i ] . query . plugins . push ( 'babel-plugin-remove-proptypes' ) ;
23
+ break ;
24
+ }
25
+ }
26
+
27
+ // Enable minification
28
+ configuration . plugins . push (
29
+ new webpack . DefinePlugin ( {
30
+ 'process.env' : {
31
+ 'NODE_ENV' : '"production"'
32
+ }
33
+ } ) ,
34
+ new webpack . optimize . UglifyJsPlugin ( {
35
+ compress : {
36
+ warnings : false
37
+ }
38
+ } ) ,
39
+ new webpack . optimize . OccurenceOrderPlugin ( ) ,
40
+ function ( ) {
41
+ this . plugin ( 'done' , function ( stats ) {
42
+ if ( stats . compilation . errors && stats . compilation . errors . length ) {
43
+ console . log ( stats . compilation . errors ) ;
44
+ process . exit ( 1 ) ;
45
+ }
46
+ } ) ;
47
+ }
48
+ ) ;
49
+
50
+ module . exports = configuration ;
You can’t perform that action at this time.
0 commit comments