Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit c1d904c

Browse files
author
Gijs Jorissen
committed
Conventions
1 parent 2ea02fa commit c1d904c

14 files changed

+109
-88
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_size = 4
9+
indent_style = space
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.gitattributes

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
5+
/.gitattributes export-ignore
6+
/.gitignore export-ignore
7+
/.travis.yml export-ignore
8+
/phpunit.xml.dist export-ignore
9+
/.scrutinizer.yml export-ignore
10+
/tests export-ignore

.gitignore

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1+
# Crap
2+
*.log
3+
.sass-cache
4+
.Spotlight-V100
5+
.Trashes
6+
.DS_Store
7+
.DS_Store?
8+
ehthumbs.db
9+
Thumbs.db
10+
11+
# IDE
112
*.sublime-*
13+
*.idea
14+
.idea
15+
16+
# Project
217
build
318
composer.lock
419
docs
520
vendor
6-
.DS_Store

.styleci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
preset: laravel
2+
3+
linting: true
4+
5+
disabled:
6+
- single_class_element_per_statement

.travis.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: php
2+
3+
php:
4+
- 7.0
5+
- 7.1
6+
7+
env:
8+
matrix:
9+
- COMPOSER_FLAGS="--prefer-lowest"
10+
- COMPOSER_FLAGS=""
11+
12+
before_script:
13+
- travis_retry composer self-update
14+
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
15+
16+
script:
17+
- phpunit --coverage-text --coverage-clover=coverage.clover
18+
19+
after_script:
20+
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover

CONTRIBUTING.md

-55
This file was deleted.

LICENSE

-21
This file was deleted.

README.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,30 @@ A tracer.php file will be created in your app/config directory.
2626
In app/config tracer.php file, if trace is set to true you see the paths of all the blade files that are loaded into your templates. To remove the paths simply set trace to false. If your views are located at another directory you can set the correct path here.
2727

2828

29-
## Toggle traces
29+
### Toggle traces
3030

3131
A tracer.js file will be created in your public/js directory. This gets injected at the end of your app ```<head> ``` section.
3232

3333
Use the keybord shortcut ```ctrl+z ``` inside your app to toggle the traces.
3434

3535

36-
## Contributing
36+
## Testing
37+
38+
``` bash
39+
$ composer test
40+
```
3741

38-
Please see [CONTRIBUTING](/CONTRIBUTING.md) for details.
42+
## Contributing
3943

44+
Contributions are welcome, [thanks to y'all](https://github.com/appstract/laravel-tracer/graphs/contributors) :)
4045

4146
## About Appstract
4247

4348
Appstract is a small team from The Netherlands. <3 Laravel, Vue and other awesome tools.
4449

50+
## Buy Us A Beer
4551

46-
## Buy Us a Beer
47-
48-
Would be awesome if you would [buy us a beer](https://www.paypal.me/teamappstract/10)! :)
49-
52+
Would be awesome if you would [buy us a beer](https://www.paypal.me/teamappstract/10)! Or [a lot of beer](https://www.patreon.com/appstract) :)
5053

5154
## License
5255

File renamed without changes.
File renamed without changes.
File renamed without changes.

phpunit.xml.dist

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="Appstract Test Suite">
14+
<directory>tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">src/</directory>
20+
</whitelist>
21+
</filter>
22+
<logging>
23+
<log type="tap" target="build/report.tap"/>
24+
<log type="junit" target="build/report.junit.xml"/>
25+
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
26+
<log type="coverage-text" target="build/coverage.txt"/>
27+
<log type="coverage-clover" target="build/logs/clover.xml"/>
28+
</logging>
29+
</phpunit>

src/Middleware/AssetsMiddleware.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function handle(Request $request, Closure $next)
1717
'</head>',
1818
'<link href="/css/laravel-tracer.css" rel="stylesheet">
1919
<script type="text/javascript" src="/js/laravel-tracer.js"></script>
20-
</head>',
20+
</head>',
2121
$content
2222
);
2323

src/TracerServiceProvider.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public function boot(\Illuminate\Contracts\Http\Kernel $kernel)
1616
{
1717

1818
$this->publishes([
19-
__DIR__.'/config/tracer.php' => config_path('tracer.php'),
20-
__DIR__.'/assets/css/laravel-tracer.css' => public_path('css/laravel-tracer.css'),
21-
__DIR__.'/assets/js/laravel-tracer.js' => public_path('js/laravel-tracer.js')
19+
__DIR__.'/../config/tracer.php' => config_path('tracer.php'),
20+
__DIR__.'/../assets/css/laravel-tracer.css' => public_path('css/laravel-tracer.css'),
21+
__DIR__.'/../assets/js/laravel-tracer.js' => public_path('js/laravel-tracer.js')
2222
]);
2323

2424
$tracer = (new Tracer)->trace();

0 commit comments

Comments
 (0)