Forked from joystream/joystream-org
https://github.com/Joystream/joystream-org
Alex 4447d5043a Ukrainian translation pushed | 3 年 前 | |
---|---|---|
.storybook | 4 年 前 | |
__mocks__ | 3 年 前 | |
__stories__ | 4 年 前 | |
__tests__ | 3 年 前 | |
src | 3 年 前 | |
.babelrc | 4 年 前 | |
.eslintrc | 5 年 前 | |
.gitignore | 4 年 前 | |
.prettierrc | 5 年 前 | |
.stylelintrc | 5 年 前 | |
.travis.yml | 5 年 前 | |
README.md | 3 年 前 | |
TODO.md | 4 年 前 | |
gatsby-browser.js | 5 年 前 | |
gatsby-config.js | 3 年 前 | |
gatsby-node.js | 3 年 前 | |
gatsby-ssr.js | 5 年 前 | |
jest-preprocess.js | 5 年 前 | |
jest.config.js | 5 年 前 | |
loadershim.js | 5 年 前 | |
netlify.toml | 3 年 前 | |
package.json | 3 年 前 | |
website_new.svg | 5 年 前 | |
yarn.lock | 3 年 前 |
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