1.1.0 • Published 7 years ago

ecps v1.1.0

Weekly downloads
2
License
GPL-2.0
Repository
github
Last release
7 years ago

ECPS - Static Package Manager

ECPS

Install

npm install ecps -g

Usage

ecps [COMMAND]

Table of Contents

src/		# source code
	js/
	css/
	img/
dist/		# combo/compress files
	js/
	css/
	img/

Build Command

ecps src/js/g.js
ecps src/js/page/demo.js
ecps src/js

Build SASS

ecps src/css/test.scss
ecps src/css

Build Image

ecps src/img/demo.png
ecps src/img

Customize Config

use config arg to customize config file, default config file is ecps-config.js

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

Config Arg

  • main:the enter file about JS and CSS
  • libjs:global normal file(not the AMD file)
  • globaljs:global enter file, if a AMD module already packed in the globaljs,the other sub AMD file won't packed it again unless you add it in ignoreJs
  • ignoreJs: ignore the AMD module packed in globaljs, still packed the module in.
  • isCompress: weather or not compress the file in dist.