1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-21 01:13:49 +01:00
Un client web alternativo per Mastodon, focalizzato su velocità e semplicità. https://mastodon.uno
Go to file
2018-03-10 21:05:00 -08:00
assets
bin fix tests 2018-03-08 22:18:40 -08:00
fixtures
original-assets
routes delete statuses should delete notifications 2018-03-10 21:05:00 -08:00
scss
templates
tests delete statuses should delete notifications 2018-03-10 21:05:00 -08:00
.gitignore
LICENSE
package-lock.json remove URLSearchParams 2018-03-09 00:08:23 -08:00
package.json remove URLSearchParams 2018-03-09 00:08:23 -08:00
README.md
server.js
webpack.client.config.js
webpack.server.config.js

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 firefox 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

Run tests for a particular browser:

BROWSER=chrome npm run test-browser
BROWSER=chrome:headless npm run test-browser
BROWSER=firefox npm run test-browser
BROWSER=firefox:headless npm run test-browser
BROWSER=safari npm run test-browser
BROWSER=edge npm run test-browser

Automatically fix most linting issues:

npx standard --fix