-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
13 changed files
with
209 additions
and
83 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,20 +1,9 @@ | ||
# Contributing | ||
|
||
First ol all **Thank you** for contributing! | ||
First of all **Thank you** for contributing! | ||
|
||
Make your contributions through Pull Requests | ||
|
||
Find here a few rules to follow in order to keep the code clean and easy to reviews and merge: | ||
[Grunt](http://gruntjs.com/) task is provided to help you keep code quality | ||
|
||
- Follow **[PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** coding standard | ||
- **Unit test everything** and run the test suite | ||
- Try not to bring **code coverage** down | ||
- Keep documentation **updated** | ||
- Just **one pull request per feature** at a time | ||
- Check that **[Travis CI](https://travis-ci.org/juliangut/generator-barephp)** build passed | ||
|
||
[Grunt](http://gruntjs.com/) tasks are provided to help you keep code quality and run the test suite | ||
|
||
- `grunt check` will run PHP linting, [PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer) for style guidelines, [PHPMD](https://github.com/phpmd/phpmd) for code smells and [PHPCPD](https://github.com/sebastianbergmann/phpcpd) for copy/paste detection | ||
- `grunt test` will run [PHPUnit](https://github.com/sebastianbergmann/phpunit) for unit tests | ||
- `grunt` will run previous commands at once | ||
- `grunt` will run [jshint](http://jshint.com/) for coding style |
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require 'json' | ||
require 'yaml' | ||
|
||
VAGRANTFILE_API_VERSION ||= "2" | ||
confDir = $confDir ||= File.expand_path("vendor/laravel/homestead", File.dirname(__FILE__)) | ||
|
||
homesteadYamlPath = ".vagrant/Homestead.yml" | ||
homesteadJsonPath = ".vagrant/Homestead.json" | ||
afterScriptPath = ".vagrant/after.sh" | ||
aliasesPath = ".vagrant/aliases" | ||
|
||
require File.expand_path(confDir + '/scripts/homestead.rb') | ||
|
||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
if File.exists? aliasesPath then | ||
config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases" | ||
end | ||
|
||
if File.exists? homesteadYamlPath then | ||
Homestead.configure(config, YAML::load(File.read(homesteadYamlPath))) | ||
elsif File.exists? homesteadJsonPath then | ||
Homestead.configure(config, JSON.parse(File.read(homesteadJsonPath))) | ||
end | ||
|
||
if File.exists? afterScriptPath then | ||
config.vm.provision "shell", path: afterScriptPath | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
ip: "192.168.100.100" | ||
memory: 2048 | ||
cpus: 1 | ||
hostname: <%= project.name %> | ||
name: <%= project.name %> | ||
provider: virtualbox | ||
|
||
authorize: ~/.ssh/id_rsa.pub | ||
|
||
keys: | ||
- ~/.ssh/id_rsa | ||
|
||
folders: | ||
- map: "./" | ||
to: "/home/vagrant/<%= project.name %>" | ||
|
||
sites: | ||
- map: <%= project.name %>.app | ||
to: "/home/vagrant/<%= project.name %>/<%= dirs.public %>" | ||
|
||
databases: | ||
- <%= project.name %> | ||
|
||
variables: | ||
- key: APP_ENV | ||
value: local | ||
|
||
# blackfire: | ||
# - id: foo | ||
# token: bar | ||
# client-id: foo | ||
# client-token: bar | ||
|
||
# ports: | ||
# - send: 93000 | ||
# to: 9300 | ||
# - send: 7777 | ||
# to: 777 | ||
# protocol: udp |
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
/** | ||
<% if (project.desc || project.homepage) { -%> | ||
* <%= project.desc %><% if (project.homepage) { -%> (<%= project.homepage %>)<% } -%> | ||
* | ||
<% } -%> | ||
* @link https://github.com/<%= owner.account %>/<%= project.name %> for the canonical source repository | ||
<% if (control.license) { -%> | ||
* @license https://github.com/<%= owner.account %>/<%= project.name %>/blob/master/LICENSE | ||
<% } -%> | ||
*/ | ||
|
||
phpinfo(); |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
apt-get update |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
alias ..="cd .." | ||
alias ...="cd ../.." | ||
alias ls="ls -l --color" | ||
alias ll="ls -a" |
Oops, something went wrong.