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

tpm

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tpm

Static Package Manager

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by25%
Maintainers
1
Weekly downloads
 
Created
Source

TPM - Static Package Manager

TPM是前端打包工具。

安装

  1. 源代码安装

    git clone git://github.com/tudouui/tpm.git
    
  2. NPM安装

    npm install tpm -g
    

使用方法

tpm [command]

目录结构

src/		# 源代码
	js/
	css/
	img/
build/		# 打包后代码,未压缩
	js/
	css/
	img/
dist/		# 压缩后代码
	js/
	css/
	img/
project/	# 项目文件,用于批量操作

构建JS

tpm src/js/g.js
tpm src/js/page/demo.js
tpm src/js

构建LESS

tpm src/css/g.less
tpm src/css/page/demo.less
tpm src/css

构建图片、embed

tpm src/img/demo.png
tpm src/embed/storage.html
tpm src/img

批量构建

tpm project/TUILIB-65.txt

指定配置

用config参数指定配置,默认用当前目录下的tpm-config.js

tpm src/js/g.js --config=my-config.js

整理build、dist目录

删除build、dist里的多余的目录和文件。

tpm cleanup

配置说明

  • main:JS和CSS入口文件。
  • libjs:全局非AMD文件。
  • globaljs:全局入口文件。
  • ignore:要忽略的模块列表,构建非全局JS文件时使用。

Keywords

FAQs

Package last updated on 24 Apr 2013

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