baldr
A try to write my presentations for school in HTML5, CSS3 and Javascript using Vuejs.
This repository contains some evaluation and research code.
About the name baldr
Baldr is the name of a nordic
god. He is the of god of light.
Installation / Building
npm install -g lerna
lerna bootstrap
Upgrading
sudo npm install -g npm-check-updates
lerna exec "ncu -u"
lerna exec "npm update"
Sort package.json
sudo npm install -g sort-package-json
lerna exec "sort-package-json"
Publishing
lerna publish
Testing
lerna run test
Coding style
lerna run lint
main.js
The Baldr project follows the standardJS style guides.
Imports
Node packages
Vue imports
Private fields
https://google.github.io/styleguide/jsguide.html#features-classes-fields
vue
Component name
- At least two words
MyComponent.vue
(Pascal Case)name: 'MyComponent'
(Pascal Case)- Top level Vue component css class, prefix with
vc
= Vue component: Snake Case- HTML:
class="vc_my_component"
- CSS:
.vc_my_component
- HTML:
Documentation
Description in 3 places:
README.md
main.js
above@module
package.json
README.md template
Convert imports
const (.*) = require\((.*)\)
import $1 from $2