@mini-code/scripts
Scripts for building and developing react app
Last updated 6 months ago by sangett .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mini-code/scripts 
SYNC missed versions from official npm registry.

@mini-code/scripts

React 开发环境快速搭建。

概览

基于 react-scripts 的调整,加入以下特性

  • scss
  • 独立打包 css 文件
  • 更灵活的支持 typescript

安装

# via npm
npm i @mini-code/scripts --save-dev

# via yarn
yarn add @mini-code/scripts --dev

使用

在 package.json 加入 scrips

{
    "scripts": {
        "start": "minictl start",
        "build": "minictl build"
    }
}

配置

在项目根目录新建 .mini-scripts.json,详细配置如下

路径都是相对于项目的根目录

{
  "srcDir": "src",
  "appIndexJs": "app",
  "appBuildDir": "build",
  "appHtml": "public/index.html",
  "deployHtml": "public/deploy.html"
}

Current Tags

  • 1.0.0-alpha1.2                                ...           latest (6 months ago)

4 Versions

  • 1.0.0-alpha1.2                                ...           6 months ago
  • 1.0.0-alpha1.1                                ...           6 months ago
  • 1.0.0-alpha1.0                                ...           6 months ago
  • 1.0.0-alpha0                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (63)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |