@1337lawyers/gatsby-theme-1337 中文文档教程
Gatsby-Theme-1337
这个 repo 包含 Gatsby.js 网站的主题,包括 UI 元素 以及托管在 AWS 上的无服务器、经过身份验证的 GraphQL API 的接口 Cognito 和 Amplify
Developing
Installation
yarn install
yarn dev
您现在应该在 localhost:6006 看到服务器
Environment Variables
确保在使用此库的项目中包含所有环境 .env
文件中列出的变量,对于您自己的存储库是唯一的。
对于 CircleCI,我们使用 Cryptomove Tholos Orb,它存储了我们的应用程序秘密, 包括我们的 npm 令牌。
Deployment
推送到 master 分支同时推送到 design.1337lawyers.com
, 托管故事书的地方,并将新版本推送到 NPM。 这 通过 CircleCI 发生。
Legal
版权所有 2018-2019 1337 律师。 麻省理工学院许可证。
Gatsby-Theme-1337
This repo contains a theme for Gatsby.js websites inclusive of UI elements and an interface to a serverless, authenticated GraphQL API hosted on AWS Cognito and Amplify
Developing
Installation
yarn install
yarn dev
You should now see the server at localhost:6006
Environment Variables
Ensure that in projects that use this library to include all of the environment variables listed in the .env
file, unique to your own repository.
For CircleCI, we use the Cryptomove Tholos Orb, which stores our application secrets, including our npm token.
Deployment
Pushes to the master branch are pushed both to design.1337lawyers.com
, where the storybook is hosted, and a new version is pushed to NPM. This happens via CircleCI.
Legal
Copyright 2018-2019 1337 Lawyers. MIT License.