jolicode / codingstyle Goto Github PK
View Code? Open in Web Editor NEW:nail_care: JoliCode's base dotfile for PHP / JS projects
:nail_care: JoliCode's base dotfile for PHP / JS projects
As github is on ๐ฅ since the "dear github" letter, they ship a lots of feature, and one of them is issue/PR template: https://github.com/blog/2111-issue-and-pull-request-templates
We could benefit from a good default in our projects, as it's very common to read crappy junk PR, without any description other than the commit message (yeah thx for nothing), no deployment infos, no "how to test", no link to the original issue...
We also don't have a common way to communicate a PR status (WIP in the title, a "do not merge plz" somewhere, etc).
Here is a good example of what I want: https://gist.github.com/Lordnibbler/11002759
Should we establish a default configuration for git? Everybody would be free to use it / customize it / or discard it completly but this default config would probably be useful for newcomers. Something among:
~/.gitconfig
[core]
excludesfile = ~/.gitignore
[alias]
st = status
df = diff
co = checkout
ci = commit
br = branch
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
[branch]
autosetuprebase = always
~/.gitignore
.idea
.DS_Store
._*
.Spotlight-V100
.Trashes
.buildpath
.project
.settings
What do you think?
We have to wait for this project to be open source for the zip archive to be public.
Issues and PR templates should also be made available in french.
Just stubbed upon the sort-packages
option in composer,
it make the list of required package always sorted alphabetically โจ
What do you think?
Any other option we should add?
And the prefer-stable
flag?
Some of our project use those as .php_cs
:
<?php
$header = <<<EOF
This file is part of the *** Project.
(c) *** <contact@***.com>
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(array(__DIR__.'/src', __DIR__.'/app/Resources'))
;
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers(array(
'header_comment',
'-unalign_double_arrow',
'-unalign_equals',
'align_double_arrow',
'newline_after_open_tag',
'ordered_use',
'short_array_syntax',
))
->setUsingCache(true)
->finder($finder)
;
I propose myself as a lead on the PHP standard initiative for JoliCode, this issue aims at starting the conversation and gather feedback from everyone interested. Cheers ๐ป
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.