kebot / gulp-ozjs Goto Github PK
View Code? Open in Web Editor NEWgulp tasks for oz.js and ozma.js http://ozjs.org
License: Other
gulp tasks for oz.js and ozma.js http://ozjs.org
License: Other
hi,
公司的项目用的是ozjs,之前一直在用grunt做task runner,今天我试着用gulp跑了下项目,发现ozma这一步的时间有点太长了。grunt只用2s,gulp用了22s。
观察了一下,
unrecognized module: backbone-validation-src
undefined module: d3-src
这两句输出之后停了很长一段时间。
有什么办法么?
比如现在有examples目录
examples
├── gulpfile.js
├── public
└── src
├── main.js
└── modules
└── oz.js
gulpfile.js
gulp.task('ozma', function(){
return gulp.src('src/main.js')
.pipe(ozma({
baseUrl: 'src',
disableAutoSuffix: true,
loader: 'src/modules/oz.js'
}))
.pipe(gulp.dest('public'));
})
最后在public下会是这个路径
public/src/main.js
vinyl-fs的dest方法里有个saveFile方法,发现传过来的file.relative就是src/main.js。试了下其他的gulp插件,传进来的file.relative都是main.js。
这个有什么好的解决办法吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.