Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit 4489e2e

Browse files
committed
fix compiler
1 parent c0933d2 commit 4489e2e

4 files changed

Lines changed: 11 additions & 17 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ cache:
99
directories:
1010
- $HOME/.composer/cache
1111

12-
1312
env:
1413
- secure: "g+2Ar7a8eAsZtE/mEQT6BWgkx7Bou9qy1381OhI7tMOQBE+KA5Lm+KAC5tH9Us5tmK074dNMsWPBrsgnayxezBjQBpcshDQgoLqaPtWz8XeKTvUEpizFTjQ8v68w42I4SzzMdNIWQhPjiAfjA8e02uaoRELWOYNoc824ot/y1iw="
1514

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ maintainers accept and merge your work.
99
You MUST follow the [PSR-1](http://www.php-fig.org/psr/1/) and
1010
[PSR-2](http://www.php-fig.org/psr/2/). If you don't know about any of them, you
1111
should really read the recommendations. Can't wait? Use the PHP-CS-Fixer
12-
tool, you'll find it in``bin/php-cs-fixer``.
12+
tool, you'll find it in `bin/php-cs-fixer`.
1313

1414
You MUST run the test suite.
1515

README.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ An implementation of [bower](http://bower.io) in PHP.
55

66
http://bowerphp.org
77

8-
[![travis build](https://api.travis-ci.org/Bee-Lab/bowerphp.png)](https://travis-ci.org/Bee-Lab/bowerphp)
8+
[![travis build](https://api.travis-ci.org/Bee-Lab/bowerphp.png)](https://travis-ci.org/Bee-Lab/bowerphp)
99
[![Code Climate](https://codeclimate.com/github/Bee-Lab/bowerphp/badges/gpa.svg)](https://codeclimate.com/github/Bee-Lab/bowerphp)
1010
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Bee-Lab/bowerphp/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Bee-Lab/bowerphp/?branch=master)
1111
[![insight](https://insight.sensiolabs.com/projects/d1fbaca7-0e68-4782-979b-2372a9578c2d/mini.png)](https://insight.sensiolabs.com/projects/d1fbaca7-0e68-4782-979b-2372a9578c2d) [![Join the chat at https://gitter.im/Bee-Lab/bowerphp](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Bee-Lab/bowerphp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -21,12 +21,12 @@ $ composer require beelab/bowerphp
2121
Configuration
2222
-------------
2323

24-
Currently, you can configure your bower directory in ``.bowerrc`` file, just like the original Bower.
24+
Currently, you can configure your bower directory in `.bowerrc` file, just like the original Bower.
2525

2626
If you need many dependencies, you'll likely hit the Github API limit (currently 60 requests per hour).
2727
To increase your limit to 5000 requests per hour, you can use a token.
2828
See [Github help](https://help.github.com/articles/creating-an-access-token-for-command-line-use/).
29-
Once you created your token, just store it in the ``BOWERPHP_TOKEN`` environment variable.
29+
Once you created your token, just store it in the `BOWERPHP_TOKEN` environment variable.
3030

3131
Status
3232
------
@@ -48,20 +48,14 @@ Building the phar
4848
-----------------
4949

5050
You can build the phar by simply running:
51-
```sh
52-
php bin/compile
53-
```
54-
Or you can use the [box command line utility](https://github.com/box-project/box2)
55-
If you add this config in a box.json file, you only just need to run the two commands below to have a working phar.
56-
57-
###the commands
5851

59-
```sh
60-
$ box build
61-
$ chmod +x bower.phar
52+
```bash
53+
$ php bin/compile
6254
```
6355

64-
### the box.json config
56+
Or you can use the [box command line utility](https://github.com/box-project/box2).
57+
If you add the following content in a `box.json` file, you only just need to run `box build` command to
58+
get a phar. Don't forget to give execution permission to your phar, using `chmod +x bowerphp.phar`.
6559

6660
```json
6761
{
@@ -75,7 +69,7 @@ $ chmod +x bower.phar
7569
}
7670
],
7771
"main": "bin/bowerphp",
78-
"output": "bower.phar",
72+
"output": "bowerphp.phar",
7973
"stub": true
8074
}
8175
```

src/Bowerphp/Compiler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function compile($pharFile = 'bowerphp.phar')
8787
$this->addFile($phar, new \SplFileInfo(__DIR__ . '/../../vendor/composer/autoload_namespaces.php'));
8888
$this->addFile($phar, new \SplFileInfo(__DIR__ . '/../../vendor/composer/autoload_classmap.php'));
8989
$this->addFile($phar, new \SplFileInfo(__DIR__ . '/../../vendor/composer/autoload_real.php'));
90+
$this->addFile($phar, new \SplFileInfo(__DIR__ . '/../../vendor/composer/autoload_static.php'));
9091
if (file_exists(__DIR__ . '/../../vendor/composer/include_paths.php')) {
9192
$this->addFile($phar, new \SplFileInfo(__DIR__ . '/../../vendor/composer/include_paths.php'));
9293
}

0 commit comments

Comments
 (0)