Forked from joystream/joystream-org
https://github.com/Joystream/joystream-org
Alex 4447d5043a Ukrainian translation pushed | há 3 anos atrás | |
---|---|---|
.storybook | há 4 anos atrás | |
__mocks__ | há 3 anos atrás | |
__stories__ | há 4 anos atrás | |
__tests__ | há 3 anos atrás | |
src | há 3 anos atrás | |
.babelrc | há 4 anos atrás | |
.eslintrc | há 5 anos atrás | |
.gitignore | há 4 anos atrás | |
.prettierrc | há 5 anos atrás | |
.stylelintrc | há 5 anos atrás | |
.travis.yml | há 5 anos atrás | |
README.md | há 3 anos atrás | |
TODO.md | há 4 anos atrás | |
gatsby-browser.js | há 5 anos atrás | |
gatsby-config.js | há 3 anos atrás | |
gatsby-node.js | há 3 anos atrás | |
gatsby-ssr.js | há 5 anos atrás | |
jest-preprocess.js | há 5 anos atrás | |
jest.config.js | há 5 anos atrás | |
loadershim.js | há 5 anos atrás | |
netlify.toml | há 3 anos atrás | |
package.json | há 3 anos atrás | |
website_new.svg | há 4 anos atrás | |
yarn.lock | há 3 anos atrás |
To install all local dependencies located in package.json
use:
yarn
To populate project with environment variables create files .env.development
for local development and .env.production
for final build.
Local development
gatsby develop
Local server will start on http://localhost:8000/
To build Gatsby project run:
yarn build
After the process is complete, production files will be located in the public
folder located in the root of the project.
Joystream uses Jest for writing tests. Please make sure to write unit and snapshot tests (update if needed). Pre-commit hook won't allow you committing unless all the tests, linters passes.
Pre-commit hook contains three command for testing: lint
, stylelint
and test
, which will test your scss
, js
and test
files.
Please use this command to run tests locally:
yarn test
This project uses Storybook for development purposes.
Components are divided into several categories: Components
, Layout
, Section
, Assets
, Pages
and by default Other
if no category is specified.
Run gatsby develop
or gatsby build
at least once before running Storybook to generate static files usef in the project.
To run the storybook on http://localhost:6006/
use:
yarn storybook
To build storybook run:
yarn build-storybook
After the process is complete, production files will be located in the storybook-static
folder located next to other files in the root of the project.
All Branding assets are available in joystream design repository. In case any of them changes, a script should be ran to include changes on the joystream branding page, and any changes introduced by it should be commited and deployed.
Assets refresh script:
yarn fetch-assets-data