Forked from joystream/joystream-org
https://github.com/Joystream/joystream-org
UnicFb910 4f48e70304 Translate sumer.json file to Spanish | il y a 3 ans | |
---|---|---|
.storybook | il y a 4 ans | |
__mocks__ | il y a 3 ans | |
__stories__ | il y a 4 ans | |
__tests__ | il y a 3 ans | |
src | il y a 3 ans | |
.babelrc | il y a 4 ans | |
.eslintrc | il y a 5 ans | |
.gitignore | il y a 4 ans | |
.prettierrc | il y a 5 ans | |
.stylelintrc | il y a 5 ans | |
.travis.yml | il y a 5 ans | |
README.md | il y a 3 ans | |
TODO.md | il y a 4 ans | |
gatsby-browser.js | il y a 5 ans | |
gatsby-config.js | il y a 3 ans | |
gatsby-node.js | il y a 3 ans | |
gatsby-ssr.js | il y a 5 ans | |
jest-preprocess.js | il y a 5 ans | |
jest.config.js | il y a 5 ans | |
loadershim.js | il y a 5 ans | |
netlify.toml | il y a 3 ans | |
package.json | il y a 3 ans | |
website_new.svg | il y a 4 ans | |
yarn.lock | il y a 3 ans |
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