spmjs / grunt-cmd-transport

Transport everything into common module.
MIT License
70 stars 32 forks source link

多级调用时候,无法查出所有应用 #82

Closed daddybh closed 9 years ago

daddybh commented 9 years ago

hi,在使用transport过程遇到一个问题,当前存在文件A调用B,B调用C,C调用D

到C的时候,transport后的模块就没有包含D了

现在grunt的配置如下:

 transport :{
            ios: {
                options : {
                    paths :["src/js"],
                    parsers : {
                        '.js' : [script.jsParser]
                    }
                },
                files :[{
                    expand : true,
                    cwd: 'src/js',
                    src: '**/*.js',
                    dest: '.tmp/js'
                }]
            }
        },
        concat:{
            ios:{
                options : {
                    include: "all",
                    paths :[".tmp/js"]
                },
                files : [
                        {
                            expand: true,
                            cwd: '.tmp/js',
                            src: ['**/*.js'],
                            dest: 'dist/js',
                            ext: '.js'
                        }
                    ]
                    /*{'.tmp/ios.js':['.tmp/js/app/router.js']*/
                }
            }
        }

请问这里配置有什么问题吗??

popomore commented 9 years ago

给个例子看看,把你的代码提交到 github 上

daddybh commented 9 years ago

谢谢,使用相对路径解决了 https://github.com/daddybh/test-seajs