Skip to content

Commit

Permalink
Rewamp the phar creation
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Aug 31, 2021
1 parent 8818a0d commit 94d7ca1
Show file tree
Hide file tree
Showing 12 changed files with 3,589 additions and 269 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
/.phpunit.result.cache
/composer.lock
/vendor/
/build/
29 changes: 1 addition & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,7 @@ CLI usage

You can run a standalone version of JoliTypo by downloading [the PHAR version](https://github.com/jolicode/JoliTypo/releases/latest)

Run `jolitypo.phar --help` to know how to configure the Fixer.

```
Fix Microtypography glitches inside your HTML content.
Usage: ./jolitypo.phar [--rules="Ellipsis,Dimension,Unit,Dash,SmartQuotes,NoSpaceBeforeComma,CurlyQuote,Hyphen,Trademark"] --locale locale --file file [--quiet] [--help]
Required Arguments:
--locale locale
Locale of the content to fix.
--file file
File to fix.
Optional Arguments:
--rules="Ellipsis,Dimension,Unit,Dash,SmartQuotes,NoSpaceBeforeComma,CurlyQuote,Hyphen,Trademark"
Rules used to fix the content, comma separated.
--quiet
Do not output anything.
--help
Show this help.
```
Run `jolitypo --help` to know how to configure the Fixer.

Installation
============
Expand Down Expand Up @@ -275,13 +255,6 @@ Add your own Fixer / Contribute a Fixer
- Implement `JoliTypo\FixerInterface`;
- Send your Pull request.

Build the PHAR version
======================

Install [Box](https://github.com/box-project/box) and its dependencies with `composer bin box require --dev humbug/box`

Then, run `composer run compile`

### Contribution guidelines

- You MUST write code in english;
Expand Down
45 changes: 0 additions & 45 deletions box.json

This file was deleted.

3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
},
"scripts": {
"test": "vendor/bin/simple-phpunit -c phpunit.xml.dist",
"cs": "vendor/bin/php-cs-fixer fix",
"compile": "bin/box.phar compile"
"cs": "vendor/bin/php-cs-fixer fix"
}
}
193 changes: 0 additions & 193 deletions jolitypo

This file was deleted.

2 changes: 2 additions & 0 deletions tools/phar/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build/
/vendor/
8 changes: 8 additions & 0 deletions tools/phar/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# JoliTypo PHAR building

## Usage

```bash
composer install
vendor/bin/box compile
```
Empty file added tools/phar/a.html
Empty file.
Loading

0 comments on commit 94d7ca1

Please sign in to comment.