Giter Club home page Giter Club logo

boilerplate-2021's Introduction

boilerplate-2021

Travic CI Build Status

Yet another boilerplate for TypeScript and React developers.

中文介绍


Demo

https://magiccube.github.io/boilerplate-2021/


Usage

Since this repository is already a GitHub Template, you can directly create a new GitHub repository from this template.

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.


Install

It is STRONGLY recommended to install dependencies via Yarn.

yarn

Develop

Start a local Webpack development server for developing, debugging and testing.

yarn dev

Build

Build for production.

yarn build:webpack

Build for production with ES modules and TypeScript declarations.

yarn build

Build for GitHub pages.

yarn build:gh-pages

Deploy to GitHub Pages

In .travis.yml, we've already integrated our project with Travis' pages deployment, which means every push to master branch will trigger Travis to build and update GitHub pages automatically.

You’ll need to generate a personal access token with the public_repo or repo scope (repo is 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 .travis.yml.

Alternatively, you can also run the following command from local to manually deploy GitHub pages.

yarn deploy

Visit GitHub Pages settings page to config your own site.


Themes

Two built-in themes are introduced in this boilerplate.

We use Light Theme by default. Change the @theme variable to dark in src/styles/theme.less if you prefer dark mode.

boilerplate-2021's People

Contributors

magiccube avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.