早午餐构建不创建目录和文件
brunch build does not create directory and files
我正在使用 brunch 作为资产管理工具构建一个小型 hapijs 应用程序。
运行 brunch build 不生成任何编译文件。
我的项目结构类似于中的结构示例
https://github.com/brunch/brunch/tree/stable/docs
早午餐-config.coffee:
exports.config =
server:
path: 'index.js'
port: 8000
paths:
public: 'public'
conventions:
ignored: 'app/templates'
files:
javascripts:
joinTo:
'js/app.js': /^app/
'js/vendor.js': /^vendor/
stylesheets:
defaultExtension: 'css'
joinTo:'css/app.css': /^app/
$brunch build -d 产生:
brunch:watch Loaded plugins: +0ms
brunch:watch File 'app' received event 'addDir' +9ms
brunch:watch File 'vendor' received event 'addDir' +20ms
brunch:watch File 'package.json' received event 'add' +4ms
brunch:watch File 'brunch-config.coffee' received event 'add' +0ms
brunch:watch File 'app/assets' received event 'addDir' +5ms
brunch:watch File 'app/templates' received event 'addDir' +1ms
brunch:file-list Reading 'app/style.css' +2ms
brunch:watch File 'app/style.css' received event 'add' +2ms
brunch:watch File 'vendor/css' received event 'addDir' +0ms
brunch:watch File 'vendor/scripts' received event 'addDir' +1ms
brunch:watch File 'app/assets/images' received event 'addDir' +4ms
brunch:file-list Reading 'app/templates/index.html' +1ms
brunch:watch File 'app/templates/index.html' received event 'add' +0ms
brunch:file-list Reading 'vendor/css/normalize.css' +0ms
brunch:watch File 'vendor/css/normalize.css' received event 'add' +0ms
brunch:file-list Reading 'vendor/css/skeleton.css' +0ms
brunch:watch File 'vendor/css/skeleton.css' received event 'add' +0ms
'add' +1ms
brunch:file-list Reading 'vendor/scripts/jquery-1.11.2.min.js' +0ms
brunch:watch File 'vendor/scripts/jquery-1.11.2.min.js' received event 'add' +0ms
我错过了什么吗?
感谢您的帮助
显然我必须先安装 mandatory 插件,例如 javascript-brunch 和 css-brunch( 或任何 [style-language]-brunch 插件取决于你的风格语言)。
这件事很微妙,早午餐文档中没有明确描述。必须重新阅读早午餐指南 https://github.com/brunch/brunch-guide/blob/master/content/en/chapter04-starting-from-scratch.md 才能获得 'aha' 时刻。
我正在使用 brunch 作为资产管理工具构建一个小型 hapijs 应用程序。
运行 brunch build 不生成任何编译文件。 我的项目结构类似于中的结构示例 https://github.com/brunch/brunch/tree/stable/docs
早午餐-config.coffee:
exports.config = server: path: 'index.js' port: 8000 paths: public: 'public' conventions: ignored: 'app/templates' files: javascripts: joinTo: 'js/app.js': /^app/ 'js/vendor.js': /^vendor/ stylesheets: defaultExtension: 'css' joinTo:'css/app.css': /^app/
$brunch build -d 产生:
brunch:watch Loaded plugins: +0ms brunch:watch File 'app' received event 'addDir' +9ms brunch:watch File 'vendor' received event 'addDir' +20ms brunch:watch File 'package.json' received event 'add' +4ms brunch:watch File 'brunch-config.coffee' received event 'add' +0ms brunch:watch File 'app/assets' received event 'addDir' +5ms brunch:watch File 'app/templates' received event 'addDir' +1ms brunch:file-list Reading 'app/style.css' +2ms brunch:watch File 'app/style.css' received event 'add' +2ms brunch:watch File 'vendor/css' received event 'addDir' +0ms brunch:watch File 'vendor/scripts' received event 'addDir' +1ms brunch:watch File 'app/assets/images' received event 'addDir' +4ms brunch:file-list Reading 'app/templates/index.html' +1ms brunch:watch File 'app/templates/index.html' received event 'add' +0ms brunch:file-list Reading 'vendor/css/normalize.css' +0ms brunch:watch File 'vendor/css/normalize.css' received event 'add' +0ms brunch:file-list Reading 'vendor/css/skeleton.css' +0ms brunch:watch File 'vendor/css/skeleton.css' received event 'add' +0ms 'add' +1ms brunch:file-list Reading 'vendor/scripts/jquery-1.11.2.min.js' +0ms brunch:watch File 'vendor/scripts/jquery-1.11.2.min.js' received event 'add' +0ms
我错过了什么吗? 感谢您的帮助
显然我必须先安装 mandatory 插件,例如 javascript-brunch 和 css-brunch( 或任何 [style-language]-brunch 插件取决于你的风格语言)。
这件事很微妙,早午餐文档中没有明确描述。必须重新阅读早午餐指南 https://github.com/brunch/brunch-guide/blob/master/content/en/chapter04-starting-from-scratch.md 才能获得 'aha' 时刻。