Source code for my personal portfolio. Built with Next.js, Styled Components and Framer Motion.
To start development:
yarn dev
By default this will spin up a local server on localhost:3000
Static image dimensions are generated during a build step, either on each run of the dev server or for every production build. If you add, update or change any images you must run yarn generate-image-sizes
or restart the dev server to get the latest dimensions and ImagePath typings.
To build for Node environments:
yarn build
or for a static export:
yarn build-static
Run the tests:
yarn test
Type checking and linting is handled by a single script:
yarn lint
Prettier is supported but you'll need to add your own script if you wish to use the cli.
I personally use this vscode package to format automatically within my editor.
MIT, see LICENSE.