Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Latest commit

 

History

History
80 lines (42 loc) · 1.59 KB

CONTRIBUTING.md

File metadata and controls

80 lines (42 loc) · 1.59 KB

Contributing to Enafore

Building

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

Exporting

Enafore is a static site. When you run yarn build, static files will be written to __sapper__/export.

Installing

To install with dev dependencies, run:

yarn

Dev server

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.

Linting

Enafore uses JavaScript Standard Style.

Lint:

yarn run lint

Automatically fix most linting issues:

yarn run lint-fix

Tests

lol, lmao

Debug build

To disable minification in a production build (for debugging purposes), you can run:

DEBUG=1 yarn build

Debugging Webpack

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.

Architecture

See Architecture.md.

Internationalization

See Internationalization.md.