Forked from joystream/joystream-org
https://github.com/Joystream/joystream-org
Ben Holden-Crowther 67fb2797ce Merge pull request #381 from Joystream/development | 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