1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/usr/bin/env python
# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from os import path as os_path
NODE_MODULES = os_path.join(os_path.dirname(__file__), 'node_modules')
def _path_in_node_modules(*args):
return os_path.join(NODE_MODULES, *args)
def PathToEsLint():
return _path_in_node_modules('eslint', 'bin', 'eslint')
def PathToHtmlMinifier():
return _path_in_node_modules('html-minifier', 'cli.js')
def PathToRollup():
return _path_in_node_modules('rollup', 'dist', 'bin', 'rollup')
def PathToSvgo():
return _path_in_node_modules('svgo', 'bin', 'svgo')
def PathToTerser():
return _path_in_node_modules('terser', 'bin', 'terser')
# Typescript is not approved for general use in Chromium. Email chromium-dev
# if you want to use it.
def PathToTypescript():
return _path_in_node_modules('typescript', 'bin', 'tsc')
|