File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,30 +61,6 @@ module.exports = function (grunt) {
6161 grunt . loadNpmTasks ( 'grunt-electron-installer-debian' )
6262 }
6363
64- grunt . registerTask ( 'copy' , function ( ) {
65- var done = this . async ( )
66- var targetPaths = [
67- 'node_modules/react/dist/react.min.js' ,
68- 'node_modules/react-dom/dist/react-dom.min.js' ,
69- 'node_modules/react-redux/dist/react-redux.min.js' ,
70- 'node_modules/redux/dist/redux.min.js'
71- ]
72-
73- var merged = merge ( )
74- targetPaths . forEach ( function ( targetPath ) {
75- var read = fs
76- . createReadStream ( path . resolve ( __dirname , targetPath ) )
77- var write = fs . createWriteStream ( path . resolve ( __dirname , 'compiled' , path . basename ( targetPath ) ) )
78- read . pipe ( write )
79- merged . add ( read )
80- } )
81-
82- merged
83- . on ( 'end' , function ( ) {
84- done ( )
85- } )
86- } )
87-
8864 grunt . registerTask ( 'compile' , function ( ) {
8965 var done = this . async ( )
9066 var execPath = path . join ( 'node_modules' , '.bin' , 'webpack' ) + ' --config webpack-production.config.js'
Original file line number Diff line number Diff line change 5858 < script src ="../submodules/ace/src-min/ace.js "> </ script >
5959 < script src ="../submodules/ace/src-min/ext-themelist.js "> </ script >
6060 < script src ="../resources/katex.min.js "> </ script >
61- < script src ="../compiled/react.min. js "> </ script >
62- < script src ="../compiled/react-dom.min. js "> </ script >
63- < script src ="../compiled/redux.min. js "> </ script >
64- < script src ="../compiled/react-redux.min. js "> </ script >
61+ < script src ="../compiled/react.js "> </ script >
62+ < script src ="../compiled/react-dom.js "> </ script >
63+ < script src ="../compiled/redux.js "> </ script >
64+ < script src ="../compiled/react-redux.js "> </ script >
6565 < script type ='text/javascript '>
6666 const electron = require ( 'electron' )
6767 electron . webFrame . setZoomLevelLimits ( 1 , 1 )
Original file line number Diff line number Diff line change 1+ {
2+ "directory" : " compiled" ,
3+ "targets" : {
4+ "react" : " https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react.js" ,
5+ "react-dom" : " https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react-dom.js" ,
6+ "redux" : " https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js" ,
7+ "react-redux" : " https://npmcdn.com/react-redux@4.4.5/dist/react-redux.min.js"
8+ }
9+ }
Original file line number Diff line number Diff line change 77 "start" : " electron ./index.js" ,
88 "hot" : " electron ./index.js --hot" ,
99 "webpack" : " webpack-dev-server --hot --inline --config webpack.config.js" ,
10- "postinstall" : " grunt copy"
10+ "postinstall" : " npm run vendor" ,
11+ "vendor" : " oh-my-cdn"
1112 },
1213 "config" : {
1314 "electron-version" : " 0.36.11"
6364 "babel-preset-react-hmre" : " ^1.0.1" ,
6465 "css-loader" : " ^0.19.0" ,
6566 "electron-packager" : " ^6.0.0" ,
66- "electron-prebuilt" : " ^0.36.11 " ,
67+ "electron-prebuilt" : " ^0.36.12 " ,
6768 "electron-release" : " ^2.2.0" ,
6869 "grunt" : " ^0.4.5" ,
6970 "grunt-electron-installer" : " ^1.2.0" ,
7071 "history" : " ^1.17.0" ,
7172 "merge-stream" : " ^1.0.0" ,
7273 "nib" : " ^1.1.0" ,
73- "react " : " ^0.14.3 " ,
74+ "oh-my-cdn " : " ^0.1.1 " ,
7475 "react-css-modules" : " ^3.7.6" ,
75- "react-dom" : " ^0.14.3" ,
76- "react-redux" : " ^4.0.6" ,
77- "redux" : " ^3.0.5" ,
7876 "standard" : " ^6.0.8" ,
7977 "style-loader" : " ^0.12.4" ,
8078 "stylus" : " ^0.52.4" ,
You can’t perform that action at this time.
0 commit comments