Skip to content

Commit af754c1

Browse files
authored
Merge pull request #1 from A-Lawrence/develop
Version 0.1.0
2 parents 4d8695d + e74c0a8 commit af754c1

18 files changed

+2210
-17
lines changed

.codeclimate.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
engines:
2+
csslint:
3+
enabled: true
4+
duplication:
5+
enabled: true
6+
config:
7+
languages:
8+
- javascript
9+
- php
10+
eslint:
11+
enabled: true
12+
channel: "eslint-4"
13+
fixme:
14+
enabled: true
15+
phpmd:
16+
enabled: true
17+
ratings:
18+
paths:
19+
- "**.css"
20+
- "**.inc"
21+
- "**.js"
22+
- "**.jsx"
23+
- "**.module"
24+
exclude_paths:
25+
- "spec/"
26+
- "tests/"
27+
checks:
28+
argument-count:
29+
config:
30+
threshold: 4
31+
complex-logic:
32+
config:
33+
threshold: 4
34+
file-lines:
35+
config:
36+
threshold: 250
37+
method-complexity:
38+
config:
39+
threshold: 5
40+
method-count:
41+
config:
42+
threshold: 20
43+
method-lines:
44+
config:
45+
threshold: 25
46+
nested-control-flow:
47+
config:
48+
threshold: 4
49+
return-statements:
50+
config:
51+
threshold: 5
52+
similar-code:
53+
config:
54+
threshold: # language-specific defaults. an override will affect all languages.
55+
identical-code:
56+
config:
57+
threshold: # language-specific defaults. an override will affect all languages.

.gitignore

+3-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
vendor/
22
node_modules/
33
npm-debug.log
4-
5-
# Laravel 4 specific
6-
bootstrap/compiled.php
7-
app/storage/
8-
9-
# Laravel 5 & Lumen specific
10-
public/storage
11-
public/hot
12-
storage/*.key
13-
.env.*.php
14-
.env.php
15-
.env
16-
Homestead.yaml
17-
Homestead.json
18-
19-
# Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
20-
.rocketeer/
4+
.idea
5+
wiki
6+
coverage.xml

.styleci.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
preset: psr2
2+
3+
risky: false
4+
5+
finder:
6+
exclude:
7+
- "tests"
8+
- "spec"
9+
name:
10+
- "*.php"

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: php
2+
3+
cache:
4+
directories:
5+
$HOME/.composer/cache/files
6+
7+
php:
8+
- 7.1
9+
10+
before_script:
11+
- travis_retry composer install --no-interaction
12+
13+
script:
14+
- vendor/bin/phpspec run --no-interaction
15+
- bash <(curl -s https://codecov.io/bash)

Gulpfile.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
var gulp = require('gulp');
2+
var phpspec = require('gulp-phpspec');
3+
var run = require('gulp-run');
4+
var plumber = require('gulp-plumber');
5+
var notify = require('gulp-notify');
6+
var path = require('path');
7+
8+
gulp.task('test', function() {
9+
gulp.src('spec/**/*.php')
10+
.pipe(run('clear'))
11+
.pipe(phpspec('', { 'verbose': 'v', notify: true }))
12+
.on('error', notify.onError({
13+
title: "Fatal blow...",
14+
message: "If you're not failing, you're not trying hard enough.",
15+
icon: path.join(__dirname, "/failure.png")
16+
}))
17+
.pipe(notify({
18+
title: "Elon would be proud!",
19+
message: "All green, and good to go!",
20+
icon: path.join(__dirname, "/success.png")
21+
}));
22+
});
23+
24+
gulp.task('watch', function() {
25+
gulp.watch(['spec/**/*.php', 'src/**/*.php'], ['test']);
26+
});
27+
28+
gulp.task('default', ['test', 'watch']);

composer.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"name": "alawrence/laravel-aircraft-registration",
3+
"description": "Validation and information package for worldwide aircraft registrations, for Laravel.",
4+
"license": "GPL-3.0-only",
5+
"keywords": [
6+
"laravel",
7+
"lumen",
8+
"aircraft registrations",
9+
"aircraft",
10+
"registrations",
11+
"validation"
12+
],
13+
"authors": [
14+
{
15+
"name": "Anthony Lawrence",
16+
"email": "[email protected]"
17+
}
18+
],
19+
"require": {
20+
"php": ">=7.0",
21+
"tightenco/collect": "^5.6",
22+
"julien-c/iso3166": "^2.0"
23+
},
24+
"require-dev": {
25+
"phpspec/phpspec": "^4.3",
26+
"leanphp/phpspec-code-coverage": "^4.0"
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"ALawrence\\LaravelAircraftRegistration\\": "src/"
31+
},
32+
"files": [
33+
"src/helpers.php"
34+
]
35+
},
36+
"minimum-stability": "dev",
37+
"prefer-stable": true,
38+
"extra": {
39+
"laravel": {
40+
"providers": [
41+
"ALawrence\\LaravelAircraftRegistration\\ServiceProvider"
42+
],
43+
"aliases": {
44+
"AircraftRegistration": "ALawrence\\LaravelAircraftRegistration\\Facade"
45+
}
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)