-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
411df51
commit 48aed34
Showing
6 changed files
with
15 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
{ | ||
"type": "pre-macro", | ||
"name": "pre/trailing-commas", | ||
"license": "MIT", | ||
"require": { | ||
"pre/plugin": "^0.6" | ||
"pre/plugin": "^0.7.3" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"src/bootstrap.php", | ||
"src/parsers.php" | ||
] | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^5.0" | ||
"phpunit/phpunit": "^5.0|^6.0" | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Pre\\TrailingCommas\\": "tests" | ||
} | ||
}, | ||
"extra": { | ||
"macros": [ | ||
"src/macros.yay" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
# Pre Trailing Commas | ||
# Trailing Commas | ||
|
||
Documentation can be found at [preprocess.io](https://preprocess.io/docs#trailing-commas). | ||
|
||
## Versioning | ||
|
||
This library follows [Semver](http://semver.org). According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library. | ||
|
||
All methods, with `public` visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep `protected` methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading. | ||
Documentation can be found at [preprocess.io](https://preprocess.io#trailing-commas). |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
<?php | ||
|
||
namespace Yay; | ||
|
||
// let's use a namespace trick, to make non-colliding variables predictable. | ||
|
||
function md5($value) | ||
{ | ||
return $value; | ||
} | ||
require __DIR__ . "/../vendor/autoload.php"; | ||
|
||
putenv("PRE_BASE_DIR=" . __DIR__ . "/.."); | ||
putenv("PRE_BASE_DIR=" . __DIR__ . "/../"); | ||
|
||
require __DIR__ . "/../vendor/autoload.php"; | ||
Pre\Plugin\addMacroPath(__DIR__ . "/../src/macros.yay"); |