Enforcing coding standards
-
Upload
sebastiano-armeli-battana -
Category
Technology
-
view
241 -
download
0
Transcript of Enforcing coding standards
Sebastiano Armeli @sebarmeli
Enforcing Coding Standards
14/1/2015 - MelbJS
@sebarmeliSebastiano Armeli
function Dog(name) { if (name != null) { this.name = name; } }
Dog.prototype.bark = function (){ // do something
};
exports.Dog=Dog;
commit 111111 Author: Sebastiano Armeli Date: Sun Dec 21 22:08:00 2014 -0500
adding something
commit 2222222 Author: Sebastiano Armeli Date: Thu Dec 18 15:35:39 2014 -0500
it 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)(<scope>): <description>
E.g.
doc(readme): update with additional links.
Changelog
conventional-changelog Changelog.md
commit 7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Author: Sebastiano Armeli <[email protected]>
Date: Tue Jan 6 11:48:59 2015 -0500
refactor(BaseAd): Removed addToStreamTime method from BaseAd
commit 7bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
Author: Sebastiano Armeli <[email protected]> Date: Tue Jan 6 00:04:49 2015 -0500
style(gpt): rearrange for better readability
./setup.sh
npm i && gulp test
pre-commit hook
README.md
doc
Build tool
gulp test / gulp dev
ES6gulp es6/src /dist
Plato
gulp plato
Testing
CI / CD
gulp test:ci gulp bump:path gulp bump:minor gulp bump:major
Changelog.md