Exemple #1
0
 def __init__(self, name, url, pathPrefix):
     self.name = name
     self.url = url
     self.downloadRoot = join(self.npmDir, name)
     self.testRoot = join(self.npmDir, name, pathPrefix)
     if os.path.exists(join(self.npmDir, name, pathPrefix)):
         mx.log('Found %s, skipping download.' % self.testRoot)
     else:
         self.downloadSource()
         mx.log('Running NPM install for %s in %s' %
                (self.name, self.testRoot))
         npm(['install'], cwd=self.testRoot)
Exemple #2
0
def npmDeps(args):
    npm(['install'],
        cwd=join(_suite.dir, 'src/ch.usi.inf.nodeprof/js/npm-deps'))
    npm(['run', 'bundle'],
        cwd=join(_suite.dir, 'src/ch.usi.inf.nodeprof/js/npm-deps'))