Yet another boilerplate for TypeScript and React developers.
Alternatively, you can clone this repository to your local workspace.
git clone https://github.com/MagicCube/boilerplate-2021.git
Don't forget to replace all the
boilerplate-2021 with your own repository name after cloning.
It is STRONGLY recommended to install dependencies via Yarn.
Start a local development server for developing, debugging and testing.
Build for production.
Preview the production build.
Generate ES modules and TypeScript declarations.
Build for GitHub pages.
Deploy to GitHub Pages
.travis.yml, we've already integrated our project with Travis' pages deployment,
which means every
master branch will trigger Travis to build and update GitHub pages automatically.
You’ll need to generate a personal access token
repois required for private repositories).
Since the token should be private, you’ll want to pass it to Travis securely in your repository settings or via encrypted variables in
Alternatively, you can also run the following command from local to manually deploy GitHub pages.
Visit GitHub Pages settings page to config your own site.
Two built-in themes are introduced in this boilerplate.
Light Theme by default.
@theme variable to
src/styles/theme.less if you prefer dark mode.