Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mrtujiawei/scripts

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mrtujiawei/scripts

打包脚本

  • 0.0.20
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Scripts

命令

t-scripts start 在当前目录开启服务

t-scripts build 打包当前目录下的项目

t-scripts build --lib 打包当前目录下的库

约定配置

入口文件: src/index

静态目录: public

页面模板: public/index.html

输出目录: dist/

配置参数

打包相关的配置

package.json"#buildConfig"

{
  "#buildConfig": {
    // 打包模式 默认 development
    "mode": "development",
    // 库名 打包库时必传
    "libName": "libName",
    // 输出目录 默认dist
    "outputPath": "dist"
  }
}

postcss babel 相关的转换配置

package.json 中 "browserslist"

{
  "browserslist": {
    "development": ["last 1 version"],
    "production": ["> 0.1%"]
  }
}

Keywords

FAQs

Package last updated on 01 Jun 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc