New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mini-code/scripts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mini-code/scripts

Scripts for building and developing react app

latest
Source
npmnpm
Version
1.0.0-alpha1.2
Version published
Maintainers
1
Created
Source

@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"
}

Keywords

react

FAQs

Package last updated on 15 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts