File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 15
15
16
16
import os
17
17
import sys
18
+ import shutil
18
19
19
20
import pipes
20
21
from distutils import log
@@ -349,16 +350,6 @@ def should_run_npm(self):
349
350
return True
350
351
return mtime (self .node_modules ) < mtime (pjoin (repo_root , 'package.json' ))
351
352
352
- def npm_components (self ):
353
- """Stage npm frontend dependencies into components"""
354
- for pkg in ['preact' , 'preact-compat' , 'proptypes' ]:
355
- npm_pkg = os .path .join (self .node_modules , pkg )
356
- bower_pkg = os .path .join (self .bower_dir , pkg )
357
- log .info ("Staging %s -> %s" % (npm_pkg , bower_pkg ))
358
- if os .path .exists (bower_pkg ):
359
- shutil .rmtree (bower_pkg )
360
- shutil .copytree (npm_pkg , bower_pkg )
361
-
362
353
def patch_codemirror (self ):
363
354
"""Patch CodeMirror until https://github.com/codemirror/CodeMirror/issues/4454 is resolved"""
364
355
@@ -393,7 +384,6 @@ def run(self):
393
384
raise
394
385
395
386
self .patch_codemirror ()
396
- self .npm_components ()
397
387
os .utime (self .bower_dir , None )
398
388
# update package data in case this created new files
399
389
update_package_data (self .distribution )
You can’t perform that action at this time.
0 commit comments