Save 37% off PRO during our Black Friday Sale! »

Enforcing Coding Standards

Enforcing Coding Standards

Talk given at MelbJS (Melbourne, Australia) - January 2015

A32ee5b05bff6b42a3dd62b5732065f8?s=128

Sebastiano Armeli-Battana

January 14, 2015
Tweet

Transcript

  1. Sebastiano Armeli @sebarmeli Enforcing Coding Standards 14/1/2015 - MelbJS

  2. @sebarmeli Sebastiano Armeli

  3. None
  4. function Dog(name) { if (name != null) { this.name =

    name; } } Dog.prototype.bark = function (){ // do something }; exports.Dog=Dog;
  5. 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
  6. my_project | |— module1.js |— module2.js |— module3.js |— module_4.js

    |__ module5.js |— package.son
  7. None
  8. None
  9. EditorConfig

  10. Coding Style / Conventions

  11. Git Commits (feat|fix|docs|style|refactor|test|chore)(<scope>): <description> E.g. doc(readme): update with additional links.

  12. Changelog conventional-changelog Changelog.md commit 7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Author: Sebastiano Armeli <xxx@yyy.com> Date:

    Tue Jan 6 11:48:59 2015 -0500 refactor(BaseAd): Removed addToStreamTime method from BaseAd commit 7bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb Author: Sebastiano Armeli <xxx@yyy.com> Date: Tue Jan 6 00:04:49 2015 -0500 style(gpt): rearrange for better readability
  13. ./setup.sh npm i && gulp test pre-commit hook

  14. README.md doc

  15. Build tool gulp test / gulp dev

  16. ES6 gulp es6 /src /dist

  17. Plato gulp plato

  18. Testing

  19. CI / CD gulp test:ci gulp bump:path gulp bump:minor gulp

    bump:major Changelog.md
  20. @sebarmeli Sebastiano Armeli http://goo.gl/0DfEmk