ShellJSNode.js 扩展
ShellJS 是 Node.js 扩展,用于实现 Unix shell 命令执行,支持 Windows。
示例代码:
require('shelljs/global'); if (!which('git')) { echo('Sorry, this script requires git'); exit(1); } // Copy files to release dir mkdir('-p', 'out/Release'); cp('-R', 'stuff/*', 'out/Release'); // Replace macros in each .js file cd('lib'); ls('*.js').forEach(function(file) { sed('-i', 'BUILD_VERSION', 'v0.1.2', file); sed('-i', /.*REMOVE_THIS_LINE.*\n/, '', file); sed('-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, cat('macro.js'), file); }); cd('..'); // Run external tool synchronously if (exec('git commit -am "Auto-commit"').code !== 0) { echo('Error: Git commit failed'); exit(1); }
评论
StarPUGCC 扩展
StarUP通常用来帮助高性能的类库和编译环境探索不同体系结构的多核架构。StarPU是一组GCC扩展和相关联的运行时系统,旨在促进异构系统的编程-例如,具有可编程图形处理单元的计算机。“StarPU
StarPUGCC 扩展
0
JspTestjunit扩展
JspTest是一个不依赖予容器,对jsp页面进行单元测试的junit扩展。内部它使用Jasper作为jsp编译引擎---tomcat的jsp引擎。对于使用maven作为构建工具的团队或个人,使用非常
JspTestjunit扩展
0
console-traceNode.js 扩展
console-trace扩展了Node.JS的本地console对象,以CallSite信息给日志功能添加前缀如何使用:require('console-trace')你可以添加t或者trace的g
console-traceNode.js 扩展
0