Enafore requires Node.js and Yarn.
To build Enafore for production, first install dependencies:
yarn --production --pure-lockfile
Then build:
yarn build
Then run:
PORT=4002 node server.js
Enafore is a static site. When you run yarn build
, static files will be
written to __sapper__/export
.
To install with dev dependencies, run:
yarn
To run a dev server with hot reloading:
yarn run dev
Now it's running at localhost:4002
.
Linux users: for file changes to work,
you'll probably want to run export CHOKIDAR_USEPOLLING=1
because of this issue.
Enafore uses JavaScript Standard Style.
Lint:
yarn run lint
Automatically fix most linting issues:
yarn run lint-fix
lol, lmao
To disable minification in a production build (for debugging purposes), you can run:
DEBUG=1 yarn build
The Webpack Bundle Analyzer report.html
and stats.json
are available publicly via e.g.:
This is also available locally after yarn run build
at .sapper/client/report.html
.
See Architecture.md.