Go to file
Nolan Lawson b133664904 update gitignore 2018-02-19 18:26:21 -08:00
assets add dynamic favicon 2018-02-16 08:59:44 -08:00
bin fix notifications test 2018-02-18 17:28:08 -08:00
fixtures improve timelines test 2018-02-19 09:01:02 -08:00
original-assets build svgs automatically 2018-01-27 12:48:22 -08:00
routes add test for account profiles 2018-02-19 10:59:03 -08:00
scss tweak line-height to 1.4em 2018-02-10 16:22:12 -08:00
templates add dynamic favicon 2018-02-16 08:59:44 -08:00
tests fix lint issues 2018-02-19 18:25:59 -08:00
.gitignore update gitignore 2018-02-19 18:26:21 -08:00
README.md fix lint issues 2018-02-19 18:25:59 -08:00
package-lock.json switch from cypress to testcafe 2018-02-19 18:24:22 -08:00
package.json switch from cypress to testcafe 2018-02-19 18:24:22 -08:00
server.js use standard 2018-02-08 22:29:29 -08:00
webpack.client.config.js tweak webpack config 2018-02-14 22:23:28 -08:00
webpack.server.config.js use standard 2018-02-08 22:29:29 -08:00

README.md

Pinafore

An alternative web client for Mastodon.

Building

npm install
npm run build
PORT=4002 npm start

Development

npm run dev

Testing in development mode

In separate terminals:

1. Run a Mastodon dev server (note this destroys the mastodon_development database and inserts canned data):

npm run run-mastodon

2. Run a Pinafore dev server:

npm run dev

3. Run a debuggable TestCafé instance:

npx testcafe --hostname localhost --skip-js-errors --debug-mode chrome tests/spec

If you want to export the current data in the Mastodon instance as canned data, so that it can be loaded later:

npm run backup-mastodon-data

Testing

Lint:

npm run lint

Run integration tests:

npm test

Automatically fix most linting issues:

npx standard --fix