Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including yspm with all npm packages installed. Try it out:

var yspm = require("yspm")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

yspm v1.3.18

前端构建工具,支持es6,vue

YSPM- Static Package Manager

YSPM是前端打包工具。

安装

npm install yspm -g

使用方法

yspm [COMMAND]

目录结构

src/        # 源代码=
build/      # 打包后代码,未压缩=
dist/       # 压缩后代码=

构建JS

yspm demo/js/main.js
yspm demo/js

构建LESS

yspm demo/css/main.less
yspm demo/css

构建图片

yspm demo/img/demo.png
yspm demo/img

压缩打包后的代码

yspm min g/js/g.js

监听JS修改实时构建

yspm watch
yspm watch demo/js/

配置说明

  • js/css:JS和CSS入口文件。
  • concatJs:全局非AMD文件。
  • globalJs:全局入口文件。
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free