My professional website build with Vue.js, deployed on https://www.maerteijn.nl
A recent LTS version of NodeJS
(tested with v18).
Setting up a development server is as simple as:
npm install
npm run dev
Then browse to http://localhost:1234/
The js, templates and scss are linted with the following commands:
npm run eslint
npm run eslint:fix
npm run stylelint
npm run stylelint:fix
The Prettier
opinionated code formatter is used:
npm run prettier
npm run prettier:fix
We have unit and functional tests with mocha
:
npm run test
We can also run e2e tests with playwright
:
npm run test:e2e
See how much javascript / assets are bundled:
npm run visualize
All linting and tests are run automatically using Github Actions
Each commit will build a new version of the site (when the pipeline succeeds) on Vercel. That is also the platform where the site is hosted.
To locally create a production build:
npm run build
The production build can be found in the ./dist/release
directory.