Completed
Push — master ( 536f20...20484c )
by Andrii
02:09
created

Npm::runInstall()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4286
cc 2
eloc 3
nc 2
nop 0
1
<?php
2
3
/*
4
 * Composer plugin for bower/npm assets
5
 *
6
 * @link      https://github.com/hiqdev/composer-asset-plugin
7
 * @package   composer-asset-plugin
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\composerassetplugin;
13
14
/**
15
 * NPM package manager class.
16
 *
17
 * @author Andrii Vasyliev <[email protected]>
18
 */
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 $phpPackage = 'non existent npmphp';
35
36
    /**
37
     * Minimal npm config.
38
     */
39
    protected $config = [
40
        'name'        => 'composer-asset-plugin',
41
        'description' => "This file is auto-generated with 'hiqdev/composer-asset-plugin'.",
42
        'readme'      => ' ',
43
        'repository'  => array('type'=>'git'),
44
    ];
45
}
46