@@ -131,32 +131,31 @@ def find_package_data():
131131 static_data .extend ([
132132 pjoin (components , "backbone" , "backbone-min.js" ),
133133 pjoin (components , "bootstrap" , "dist" , "js" , "bootstrap.min.js" ),
134- pjoin (components , "bootstrap-tour" , "build" , "css" , "bootstrap-tour.min.css" ),
135- pjoin (components , "bootstrap-tour" , "build" , "js" , "bootstrap-tour.min.js" ),
136- pjoin (components , "create-react-class" , "index.js" ),
134+ pjoin (components , "bootstrap-tour" , "lib" , "bootstrap-tour.js" ),
135+ pjoin (components , "create-react-class" , "create-react-class.min.js" ),
137136 pjoin (components , "font-awesome" , "css" , "*.css" ),
138- pjoin (components , "es6-promise" , "* .js" ),
137+ pjoin (components , "es6-promise" , "dist" , "*.min .js" ),
139138 pjoin (components , "font-awesome" , "fonts" , "*.*" ),
140139 pjoin (components , "jed" , "jed.js" ),
141- pjoin (components , "jquery" , "jquery.min.js" ),
140+ pjoin (components , "jquery" , "dist" , " jquery.min.js" ),
142141 pjoin (components , "jquery-typeahead" , "dist" , "jquery.typeahead.min.js" ),
143142 pjoin (components , "jquery-typeahead" , "dist" , "jquery.typeahead.min.css" ),
144143 pjoin (components , "jquery-ui" , "jquery-ui.min.js" ),
145- pjoin (components , "jquery-ui" , "themes" , "smoothness" , "jquery-ui.min.css" ),
146- pjoin (components , "jquery-ui" , "themes" , "smoothness" , "images" , "*" ),
144+ pjoin (components , "jquery-ui-themes " , "themes" , "smoothness" , "jquery-ui.min.css" ),
145+ pjoin (components , "jquery-ui-themes " , "themes" , "smoothness" , "images" , "*" ),
147146 pjoin (components , "marked" , "lib" , "marked.js" ),
148- pjoin (components , "react" , "react.production.min.js" ),
149- pjoin (components , "react" , "react-dom.production.min.js" ),
147+ pjoin (components , "react" , "umd" , " react.production.min.js" ),
148+ pjoin (components , "react-dom" , "umd " , "react-dom.production.min.js" ),
150149 pjoin (components , "requirejs" , "require.js" ),
151150 pjoin (components , "requirejs-plugins" , "src" , "json.js" ),
152151 pjoin (components , "requirejs-text" , "text.js" ),
153152 pjoin (components , "sanitizer" , "index.js" ),
154153 pjoin (components , "underscore" , "underscore-min.js" ),
155154 pjoin (components , "moment" , "moment.js" ),
156155 pjoin (components , "moment" , "min" , "*.js" ),
157- pjoin (components , "xterm.js " , "index .js" ),
158- pjoin (components , "xterm.js-css " , "index .css" ),
159- pjoin (components , "xterm.js- fit" , "index .js" ),
156+ pjoin (components , "xterm" , "dist" , "xterm .js" ),
157+ pjoin (components , "xterm" , "dist" , "xterm .css" ),
158+ pjoin (components , "xterm" , "dist" , "addons" , " fit" , "fit .js" ),
160159 pjoin (components , "text-encoding" , "lib" , "encoding.js" ),
161160 ])
162161
@@ -167,7 +166,7 @@ def find_package_data():
167166 static_data .append (pjoin (parent , f ))
168167
169168 # Trim mathjax
170- mj = lambda * path : pjoin (components , 'MathJax ' , * path )
169+ mj = lambda * path : pjoin (components , 'mathjax ' , * path )
171170 static_data .extend ([
172171 mj ('MathJax.js' ),
173172 mj ('config' , 'TeX-AMS-MML_HTMLorMML-full.js' ),
@@ -360,10 +359,10 @@ def run(self):
360359 ])
361360
362361class Bower (Command ):
363- description = "fetch static client-side components with bower "
362+ description = "fetch static client-side components"
364363
365364 user_options = [
366- ('force' , 'f' , "force fetching of bower dependencies " ),
365+ ('force' , 'f' , "force fetching of javascript components " ),
367366 ]
368367
369368 def initialize_options (self ):
@@ -384,7 +383,7 @@ def should_run(self):
384383 if not os .path .exists (self .sanitizer_dir ):
385384 return True
386385
387- bower_stale = mtime (self .bower_dir ) < mtime (pjoin (repo_root , 'bower .json' ))
386+ bower_stale = mtime (self .bower_dir ) < mtime (pjoin (repo_root , "package .json" ))
388387 if bower_stale :
389388 return True
390389
@@ -400,7 +399,7 @@ def should_run_npm(self):
400399
401400 def run (self ):
402401 if not self .should_run ():
403- print ("bower dependencies up to date" )
402+ print ("static/components up to date" )
404403 return
405404
406405 if self .should_run_npm ():
@@ -413,12 +412,12 @@ def run(self):
413412
414413 try :
415414 run (
416- ['bower' , 'install' , '--allow-root' , '--config.interactive=false' ],
415+ [sys . executable , pjoin ( repo_root , "bower-lite" ) ],
417416 cwd = repo_root ,
418- env = env
417+ env = env ,
419418 )
420419 except OSError as e :
421- print ("Failed to run bower: %s" % e , file = sys .stderr )
420+ print ("Failed to run bower-lite : %s" % e , file = sys .stderr )
422421 print ("You can install js dependencies with `npm install`" , file = sys .stderr )
423422 raise
424423 # self.npm_components()
0 commit comments