1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-12 18:28:03 +01:00
Un client web alternativo per Mastodon, focalizzato su velocità e semplicità. https://mastodon.uno
Go to file
2018-03-02 09:10:52 -08:00
assets add dynamic favicon 2018-02-16 08:59:44 -08:00
bin further refactor ComposeBox 2018-02-26 22:22:56 -08:00
fixtures add test for compose, and emoji 2018-02-28 18:45:29 -08:00
original-assets build svgs automatically 2018-01-27 12:48:22 -08:00
routes fix logging out should clear input text 2018-03-02 09:10:52 -08:00
scss start adding media uploads 2018-03-01 21:21:49 -08:00
templates start adding media uploads 2018-03-01 21:21:49 -08:00
tests speed up tests 2018-02-28 22:45:42 -08:00
.gitignore add favorite/unfavorite feature 2018-02-24 14:49:28 -08:00
package-lock.json correctly measure status length 2018-02-27 23:38:33 -08:00
package.json correctly measure status length 2018-02-27 23:38:33 -08:00
README.md allow testing in multiple browsers 2018-02-19 18:36:54 -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

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