To do

These are some notes about the things that should be investigated and possibly included in the template.


  • Exposing configuration values to SCSS
  • Support lazy loading localisation files Docs: Simple example:
  • Unit test helpers:

More predesigned components

  • Small checkmark element
  • Number fields
  • Date picker
  • Reliable in-place popover positioning
  • Click handling and blur events for closing in-place popover

Client-side validation and error

  • Integrate validation library Seems like the best and most multi-purpose one: Other alternatives:
  • Error message component
  • Input component that wraps Textinput and error messages


  • Split Vuex state management into modules and perhaps multiple files
  • Persist Vuex state:

Preconfigured server-side rendering

Testing SCSS

There should also be some way of ensuring SCSS imports are correct. If they're not, tests might fail (test env compiles SCSS files independently).

During normal development, user might get no indication that imports are missing in source files because SCSS is normally compiled via global.scss or utilities.scss where dependencies tend to always be available. If we had a command for compiling all SCSS files independently outside of tests, we could test this.


Can we improve the pipeline to automate redundant tasks? Things such as the following cause a lot of boilerplate code that has to be manually maintained:

  • Explicitly importing services in each component
  • Explicitly importing shared SCSS in .vue files
  • Ensuring dependencies are up to date (directives and plugins imported in components must be installed via npm and package.json up to date)
  • Webpack disallows dynamic requiring just like ES6 imports, but require.context could perhaps be used to improve automation

Code intelligence

  • ESLint plugins [ ] File name and export naming conventions: [ ] eslint-plugin-vue:
  • VS Code IntelliSense Is there something we can do to improve the support? Formatted comments? Manifest files? More workspace configuration? VS Code still has troubles understanding Webpack aliases jsconfig.json and tsconfig.json could be configured with the same aliases to make this work
  • Typing with Flow?

TypeScript support?

Makes code more robust, can improve IDE experience. Rapid iteration might get more complicated, introduces some more "boilerplate" code that needs to be manually maintained.

Some parts of the codebase, like models, utility libraries, state management, might benefit a lot from this. On the other hand simple single-file Vue components are mostly template and style-driven, and the view model code is almost never accessed by anything outside the component. Vue components have props (input), for which Vue has a validation feature.

TS features can be introduced gradually as features mature, but we still want to demo and try out new things fast without cumbersome code quality requirements (situation is similar with automated tests).

results matching ""

    No results matching ""