Development conventions

Preferred stack

  • NPM over YARN to manage node packages.
  • Composer is preferred for the PHP dependency manager.
  • SCSS is preferred over LESS

Please discuss if you want to diverge from these standards

Wordpress

  • Use Bedrock for any Wordpress installation.
  • Install the ProDemos Base plugin.
  • Never assign permission in the admin but set them explicitly in the code.

Node

Vue

Deployment

  • github workflows

Use the following build commands

composer update
        npm/yarn install
        npm/yarn run build
        

Browser support

The following browsers should be supported and should be tested against.

  • Chrome
  • Safari
  • Edge
  • Firefox

Browserlist

Use the following snippet in package.json to prefix/compile to support these browsers:

"browserslist": [ 
    "last 2 versions"
]