Coder Social home page Coder Social logo

aow's Introduction

关于 aow

测试版本已完成,总体上,偏向 grunt 的配置风格,但是,用起来,并不友好

下版本,参考 fis3 的风格,重新编写吧...

下版本假想例子

  1. 文件匹配
    // 查找出所有 js 文件
    // 每个脚本,执行任务 hash,并且使用插件 fixmd5 加工
    // 该任务,属于 dev 组
    aow.match("**/*.js", {
        hash: true,
		compress: true,
        plugins: ["fixmd5"]
    });
	aow.match(["js/lib/*.js", "js/plugins/*.js"], {
		concat: "js/all.js"
	});
	
	// 目标路径
	aow.setTargetPath("../dist");
	// 设置默认任务的 全局配置
	aow.setDefault({
		hash: true,
		compress: true
	});
	
	var deploy = aow.task("deploy", "../deploy");
	deploy.match("**/*.css", {
		hash: true,
		plugins: ["compress"]
	});
	
  1. 如果让外部可用,需要提供一套 fs 的操作 方便资源更变时,map对象的更新
fs.move
fs.copy
fs.remove
fs.rename
	var stat = fs.stat;
	stat.isFile();
	stat.isDirectory();
	stat.isBlockDevice();
fs.read
fs.write
fs.append
  1. 通过命令,可指定任务 aow -t deploy

aow's People

Contributors

linfenpan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.