@@ -133,31 +133,31 @@ def find_package_data():
133133 pjoin (components , "bootstrap" , "dist" , "js" , "bootstrap.min.js" ),
134134 pjoin (components , "bootstrap-tour" , "build" , "css" , "bootstrap-tour.min.css" ),
135135 pjoin (components , "bootstrap-tour" , "build" , "js" , "bootstrap-tour.min.js" ),
136- pjoin (components , "create-react-class" , "index .js" ),
136+ pjoin (components , "create-react-class" , "create-react-class.min .js" ),
137137 pjoin (components , "font-awesome" , "css" , "*.css" ),
138- pjoin (components , "google-caja" , "html-css- sanitizer-minified .js" ),
139- pjoin (components , "es6-promise" , "* .js" ),
138+ pjoin (components , "google-caja" , "sanitizer.js" ),
139+ pjoin (components , "es6-promise" , "dist" , "*.min .js" ),
140140 pjoin (components , "font-awesome" , "fonts" , "*.*" ),
141141 pjoin (components , "jed" , "jed.js" ),
142- pjoin (components , "jquery" , "jquery.min.js" ),
142+ pjoin (components , "jquery" , "dist" , " jquery.min.js" ),
143143 pjoin (components , "jquery-typeahead" , "dist" , "jquery.typeahead.min.js" ),
144144 pjoin (components , "jquery-typeahead" , "dist" , "jquery.typeahead.min.css" ),
145145 pjoin (components , "jquery-ui" , "jquery-ui.min.js" ),
146- pjoin (components , "jquery-ui" , "themes" , "smoothness" , "jquery-ui.min.css" ),
147- pjoin (components , "jquery-ui" , "themes" , "smoothness" , "images" , "*" ),
146+ pjoin (components , "jquery-ui-themes " , "themes" , "smoothness" , "jquery-ui.min.css" ),
147+ pjoin (components , "jquery-ui-themes " , "themes" , "smoothness" , "images" , "*" ),
148148 pjoin (components , "marked" , "lib" , "marked.js" ),
149- pjoin (components , "react" , "react.production.min.js" ),
150- pjoin (components , "react" , "react-dom.production.min.js" ),
149+ pjoin (components , "react" , "umd" , " react.production.min.js" ),
150+ pjoin (components , "react-dom" , "umd " , "react-dom.production.min.js" ),
151151 pjoin (components , "requirejs" , "require.js" ),
152152 pjoin (components , "requirejs-plugins" , "src" , "json.js" ),
153153 pjoin (components , "requirejs-text" , "text.js" ),
154154 pjoin (components , "sanitizer" , "index.js" ),
155155 pjoin (components , "underscore" , "underscore-min.js" ),
156156 pjoin (components , "moment" , "moment.js" ),
157157 pjoin (components , "moment" , "min" , "*.js" ),
158- pjoin (components , "xterm.js " , "index .js" ),
159- pjoin (components , "xterm.js-css " , "index .css" ),
160- pjoin (components , "xterm.js- fit" , "index .js" ),
158+ pjoin (components , "xterm" , "dist" , "xterm .js" ),
159+ pjoin (components , "xterm" , "dist" , "xterm .css" ),
160+ pjoin (components , "xterm" , "dist" , "addons" , " fit" , "fit .js" ),
161161 pjoin (components , "text-encoding" , "lib" , "encoding.js" ),
162162 ])
163163
@@ -168,7 +168,7 @@ def find_package_data():
168168 static_data .append (pjoin (parent , f ))
169169
170170 # Trim mathjax
171- mj = lambda * path : pjoin (components , 'MathJax ' , * path )
171+ mj = lambda * path : pjoin (components , 'mathjax ' , * path )
172172 static_data .extend ([
173173 mj ('MathJax.js' ),
174174 mj ('config' , 'TeX-AMS-MML_HTMLorMML-full.js' ),
@@ -360,10 +360,10 @@ def run(self):
360360 ])
361361
362362class Bower (Command ):
363- description = "fetch static client-side components with bower "
363+ description = "fetch static client-side components with npm "
364364
365365 user_options = [
366- ('force' , 'f' , "force fetching of bower dependencies" ),
366+ ('force' , 'f' , "force fetching of JavaScript dependencies" ),
367367 ]
368368
369369 def initialize_options (self ):
@@ -384,7 +384,7 @@ def should_run(self):
384384 if not os .path .exists (self .sanitizer_dir ):
385385 return True
386386
387- bower_stale = mtime (self .bower_dir ) < mtime (pjoin (repo_root , 'bower .json' ))
387+ bower_stale = mtime (self .bower_dir ) < mtime (pjoin (repo_root , 'package .json' ))
388388 if bower_stale :
389389 return True
390390
@@ -400,7 +400,7 @@ def should_run_npm(self):
400400
401401 def run (self ):
402402 if not self .should_run ():
403- print ("bower dependencies up to date" )
403+ print ("JS dependencies up to date" )
404404 return
405405
406406 if self .should_run_npm ():
@@ -413,12 +413,12 @@ def run(self):
413413
414414 try :
415415 run (
416- ['bower' , 'install' , '--allow-root' , '--config.interactive=false' ],
416+ [sys . executable , pjoin ( repo_root , "bower-lite" ) ],
417417 cwd = repo_root ,
418418 env = env
419419 )
420420 except OSError as e :
421- print ("Failed to run bower: %s" % e , file = sys .stderr )
421+ print ("Failed to run bower-lite : %s" % e , file = sys .stderr )
422422 print ("You can install js dependencies with `npm install`" , file = sys .stderr )
423423 raise
424424 # self.npm_components()
0 commit comments