durandaljs - здание вейленда в файле летучей мыши
Я немного смущен чем-то. Я пытаюсь использовать weyland для сборки, и у меня возникают проблемы с добавлением сборки weyland в файл bat. Похоже, что после выполнения weyland... он сообщает, что создал файл main-built.js, однако сценарий немедленно останавливается.
У меня есть несколько команд, которые я хочу выполнить после сборки Weyland, и она не работает - есть идеи?
Называя это используя "Weyland Build"
Я думаю, что мой конфиг довольно ванильный... какие-нибудь идеи, где я иду не так?
exports.config = function(weyland) {
weyland.build('main')
.task.jshint({
include: 'app/**/*.js',
exclude: 'app/main-built.js'
})
.task.uglifyjs({
include:['app/**/*.js', 'lib/durandal/**/*.js']
})
.task.rjs({
include:['app/**/*.{js,html}', 'lib/durandal/**/*.js'],
loaderPluginExtensionMaps:{
'.html':'text'
},
rjs:{
name: '../lib/require/almond-custom', //to deploy with require.js, use the build's name here instead
insertRequire:['main'], //not needed for require
baseUrl: 'app',
wrap:true, //not needed for require
paths : {
'text': '../lib/require/text',
'durandal': '../lib/durandal/js',
'plugins': '../lib/durandal/js/plugins',
'transitions': '../lib/durandal/js/transitions'
//'knockout': '../lib/knockout/knockout-2.3.0'
//'bootstrap': '../lib/bootstrap/js/bootstrap',
//'jquery': '../lib/jquery/jquery-1.9.1'
},
inlineText: true,
optimize : 'none',
pragmas: {
build: true
},
stubModules : ['text'],
keepBuildDir: true,
out:'app/main-built.js'
}
});
}
1 ответ
Вам нужно установить node.js, а затем weyland, как только вы это сделаете, вы сможете запустить сборку weyland из командной строки узла (или как задание после сборки в Visual Studio). См. Эту страницу: http://durandaljs.com/documentation/Building-with-Weyland/