1 | <?php |
||
19 | class Npm extends PackageManager |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | protected $name = 'npm'; |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public $file = 'package.json'; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public $rcfile = '.npmrc'; |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public $phpPackage = 'non existent npmphp'; |
||
40 | |||
41 | public $args = []; |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | * Not really sure if peer, bundled and optional dependencies are really needed. |
||
46 | * Remove them if not. |
||
47 | */ |
||
48 | protected $dependencies = [ |
||
49 | 'dependencies', 'devDependencies', |
||
50 | 'peerDependencies', 'bundledDependencies', 'optionalDependencies', |
||
51 | ]; |
||
52 | |||
53 | /** |
||
54 | * @var array Minimal NPM config |
||
55 | */ |
||
56 | protected $config = [ |
||
57 | 'name' => 'composer-asset-plugin', |
||
58 | 'description' => "This file is auto-generated with 'hiqdev/composer-asset-plugin'.", |
||
59 | 'readme' => ' ', |
||
60 | 'repository' => ['type' => 'git'], |
||
61 | ]; |
||
62 | |||
63 | public function setDestination($dir) |
||
70 | |||
71 | public function writeRc($path, $data) { |
||
78 | |||
79 | } |
||
80 |