0.1.0 • Published 8 years ago

gulp-kissy-transport v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

gulp-kissy-transport Build Status npm.io

提取kissy深层依赖

适用于kissy1.2+以上版本,不适合kissy5.0+

提取前

app/index.js

KISSY.add('app/index',function(S,Node,Feature){
  //...
},{
  requires:['node','components/feature/']
})

components/feature/index.js

KISSY.add('components/feature/',function(S,io){
  //...
},{
  requires:['io']
})

配置gulp

var extracter = require('gulp-kissy-transport')
extracter.config('packages', [{
    name: 'app',
    path: './test/app'
}, {
    name: 'components',
    path: './test/components'
}, {
    name: 'common',
    path: './test/app'
}])
gulp.src(['./test/**/*.js','!./test/build/**/*.js'])
    .pipe(extracter.deepenDeps())
    .pipe(gulp.dest('./test/build'))

首先配置kissy的包,参考对比kissy包配置详情

提取后

app/index.js

KISSY.add('app/index',function(S,Node,Feature){
  //...
},{
  requires:['node','components/feature/','io']
})

查看演示demo

mat服务可以支持combo请求

npm install mat -g mat

http://127.0.0.1:8989/examples/test.html?debug

http://127.0.0.1:8989/examples/test.html

0.1.0

8 years ago

0.0.9

9 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago