Talk given at MelbJS (Melbourne, Australia) - January 2015
Sebastiano Armeli@sebarmeliEnforcing Coding Standards14/1/2015 - MelbJS
View Slide
@sebarmeliSebastiano Armeli
function Dog(name) { if (name != null){ this.name = name;}}Dog.prototype.bark = function (){// do something};exports.Dog=Dog;
commit 111111Author: Sebastiano ArmeliDate: Sun Dec 21 22:08:00 2014 -0500adding somethingcommit 2222222Author: Sebastiano ArmeliDate: Thu Dec 18 15:35:39 2014 -0500it will work, trust me
my_project||— module1.js|— module2.js|— module3.js|— module_4.js|__ module5.js|— package.son
EditorConfig
Coding Style / Conventions
Git Commits(feat|fix|docs|style|refactor|test|chore)(): E.g.doc(readme): update with additional links.
Changelogconventional-changelog Changelog.mdcommit 7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaAuthor: Sebastiano Armeli Date: Tue Jan 6 11:48:59 2015 -0500refactor(BaseAd): Removed addToStreamTime method from BaseAdcommit 7bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbAuthor: Sebastiano Armeli Date: Tue Jan 6 00:04:49 2015 -0500style(gpt): rearrange for better readability
./setup.shnpm i && gulp testpre-commit hook
README.mddoc
Build toolgulp test / gulp dev
ES6gulp es6/src /dist
Platogulp plato
Testing
CI / CDgulp test:ci gulp bump:pathgulp bump:minorgulp bump:majorChangelog.md
@sebarmeliSebastiano Armelihttp://goo.gl/0DfEmk