File: node_modules.py

package info (click to toggle)
qtwebengine-opensource-src 5.15.18%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,115,068 kB
  • sloc: cpp: 13,169,354; ansic: 4,248,321; javascript: 1,917,440; python: 554,858; asm: 529,966; xml: 496,623; java: 151,702; objc: 80,776; perl: 73,361; sh: 71,244; cs: 30,383; makefile: 21,992; yacc: 9,125; tcl: 8,500; php: 5,896; sql: 5,518; pascal: 4,510; lex: 2,884; lisp: 2,727; ruby: 559; awk: 200; sed: 40
file content (47 lines) | stat: -rwxr-xr-x 1,188 bytes parent folder | download | duplicates (5)
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
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python
# Copyright 2016 The Chromium Authors. All rights reserved.
# 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 PathToBundler():
  return _path_in_node_modules(
      'polymer-bundler', 'lib', 'bin', 'polymer-bundler')


def PathToCrisper():
  return _path_in_node_modules('crisper', 'bin', 'crisper')


def PathToEsLint():
  return _path_in_node_modules('eslint', 'bin', 'eslint')


def PathToPolymerCssBuild():
  return _path_in_node_modules('polymer-css-build', 'bin', 'polymer-css-build')


def PathToRollup():
  return _path_in_node_modules('rollup', 'dist', 'bin', 'rollup')


def PathToSvgo():
  return _path_in_node_modules('svgo', 'bin', 'svgo')


def PathToUglify():
  return _path_in_node_modules('uglify-es', 'bin', 'uglifyjs')

# 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')