Tag: yeoman

Grunt扩展文件,在src中可以接受哪些模式?

从gruntfile.js中摘录 sass: { compile: { files: [{ expand: true, cwd: 'css/', src: ['^[^_].scss'], dest: '../css/', ext: '.css' }] } }, 这应该根据rubular工作。 基本上我想编译'css'目录中的所有.scss文件,除非它们以下划线开头。 但是,这种模式不匹配什么? 有任何想法吗?

无法创buildyeoman webapp

当我尝试与yeoman创build一个webapp时,我得到了这个。 /usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:66 throw err; ^ Error: EACCES, permission denied '/root/.config/configstore/insight-yo.yml' You don't have access to this file. at Object.fs.openSync (fs.js:436:18) at Object.fs.writeFileSync (fs.js:975:15) at Object.create.all.set (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:56:8) at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:19:11) at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/insight.js:23:34) at process.<anonymous> (/usr/local/lib/node_modules/yo/node_modules/insight/lib/push.js:11:16) at process.emit (events.js:98:17) at handleMessage (child_process.js:322:10) at Pipe.channel.onread (child_process.js:349:11) 我GOOGLE了,我尝试了以下的东西,但没有帮助: chown root /root/.config/configstore/insight-yo.yml chown myusername /root/.config/configstore/insight-yo.yml 安装了npm-sudo-fix然后运行它,还没有运气。 我在Debian Wheezy上,有npm […]

使用Yeoman EACCES错误安装angular度

我试过跑步 yo angular –coffee –minsafe 但我得到这个错误 Error: EACCES, permission denied '/Users/Basil/.config/configstore/insight-yo.yml' at Object.fs.openSync (fs.js:427:18) at Object.fs.writeFileSync (fs.js:966:15) at Object.create.all.set (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:39:7) at Object.Configstore (/usr/local/lib/node_modules/yo/node_modules/insight/node_modules/configstore/configstore.js:30:11) at new Insight (/usr/local/lib/node_modules/yo/node_modules/insight/lib/insight.js:20:16) at Object.<anonymous> (/usr/local/lib/node_modules/yo/bin/yo:26:15) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) 我已经检查了Github上的问题,看到npm / yeoman安装generator-angular没有sudo,但似乎无法得到它的工作 节点v0.10.17 npm v1.2.10 find / -name 'yeoman' /Users/Basil/.node/node_modules/.bin/yeoman /Users/Basil/.node/node_modules/yeoman /Users/Basil/.node/node_modules/yeoman/bin/yeoman […]

Yeoman webapp在默认构build错误

我正在使用的Web应用程序生成器,我得到一个默认的构build错误。 我创build一个新的目录并运行 yo webapp 然后 grunt 最后 grunt server:dist Chrome控制台给了我以下错误: Allo 'Allo! a53234b6.main.js:3 Running jQuery 1.10.2 a53234b6.main.js:3 Failed to load resource http://127.0.0.1:35729/livereload.js?snipver=1 Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:9000/modules/a53234b6.main.js Uncaught Error: Script error for: a53234b6.main http://requirejs.org/docs/errors.html#scripterror skitch.js:354 我使用错误的命令? 我需要更新节点,npm,yeoman等? 这是一个了不起的工具,但我可能需要切换回手动模式B / C我不能排除故障很好

运行'Grunt'时,HTML文件不会添加到编译的文件夹 – Yeoman脚手架

我用Yeoman脚手架我的网站。 我想使用到目前为止是一半的玉模板,我的玉文件作为html文件文件夹去tmp,livereload显示这个罚款,但是当我运行grunt来build立我的网站从文件夹.tmp的HTML文件不会得到放入我的public_html文件夹。 所有其他文件夹/资产按预期将public_html。 这是我的文件夹结构道歉的坏例证: 网站名称 —- .sasscaching —- .tmp 应用 —- bower_components – – 图片 —-玉 —-脚本 —-风格 的public_html —- bower_components —-脚本 —-风格 // Generated on 2013-11-11 using generator-webapp 0.4.3 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively […]

grunt-usemin块path不相对于html文件?

在grunt-usemin的configuration和使用的各个点上,如何处理path有许多麻烦。 我有下面的回购布局,其中回购根也将是Web应用程序的根: /dashboard/index.html /Gruntfile.js /vendor/…some 3rd party CSS and JS… 所以index.html文件 – > somedomain.com/dashboard/index.html。 index.html文件包含来自/ vendor文件夹的一些CSS和JS资源。 我有咕噜configuration将生成输出到生成文件夹中: /build/dashboard/index.html 在index.html文件中,我使用了包含所有CSS链接和JS脚本标签的usemin块: <!– build:css(.) app.min.css –> <!– build:js(.) app.min.js –> 我必须用“(。)”指定一个“替代searchpath”,这样“/vendor/backbone.js”的脚本标签才能在正确的位置find它。 直到我这样做,它正在寻找/dashboard/vendor/backbone.js。 我希望处理CSS / JS资源的输出被输出到build / dashboard / app.min.css和build / dashboard / app.min.js,并且被index.html使用一个简单的相对“app.min”来包含。 css / js“path。 问题是,grunt-usemin似乎在使用我为两个上下文指定的“app.min。*”path,这使得它们无法一起工作: 1)为了创build文件而将path视为相对于构build目录; 该文件最终在build / app.min.css和build / app.min.js。 2)为了生成新的链接/脚本标签,将path视为相对于index.html文件; 浏览器加载build / dashboard / […]

configurationgrunt-ts并使其与LiveReload配合使用

我正在尝试在Yeoman / Grunt项目中使用TypeScript。 为了编译TypeScript我使用了一个名为grunt-ts的grunt插件,.ts文件的编译工作得很好,但是实时重载不起作用:当我运行grunt server我正确地得到了这个: Running "ts:dev" (ts) task Compiling. Success: 3.37s for 2 typescript files Watching all Typescript files under : /home/mimo/webroot/tsyong/app/scripts 但是,然后liveReload任务不加载。 这就是我如何configurationGrunt-ts的Gruntfile.js。 grunt.initConfig({ … ts: { options: { // use to override the default options, http://gruntjs.com/configuring-tasks#options target: 'es3', // es3 (default) / or es5 module: 'commonjs', // amd , commonjs (default) sourcemap: […]

用yeoman生成器下载zip

我正在创build我的第一个Yeoman发电机。 我想下载一个包含CMS的外部zip文件,并将其解压缩到根目录下。 根据这个线程,这应该是可能的。 这个还没有实施吗? 如果不是,我需要复制到我的发生器? 我运行了发电机发电机,并得到了我的基本发电机。 这是我的代码到目前为止。 Generator.prototype.getVersion = function getVersion() { var cb = this.async() , self = this this.log.writeln('Downloading Umbraco version 6.1.6') this.download('http://our.umbraco.org/ReleaseDownload?id=92348', '.'); } 这会产生一个错误告诉我,它“无法find模块”下载“”。 什么是正确的语法?

咕噜服务不工作,指南针错误

我的节点开始performance怪异。 所以我删除它,并再次安装。 现在,我不能grunt serve了 Pers-MacBook-Air:clientMD perstrom$ grunt serve Running "serve" task Running "clean:server" (clean) task >> 0 paths cleaned. Running "wiredep:app" (wiredep) task Running "wiredep:test" (wiredep) task Running "wiredep:sass" (wiredep) task Running "concurrent:server" (concurrent) task Warning: Running "compass:server" (compass) task Error: invalid option: –import-path=./bower_components Usage: compass compile [path/to/project] [path/to/project/src/file.sass …] [options] Description: compile project at […]

运行哟生成器后,错误“未处理”错误“事件”

我正在尝试使用Generatos的生成器,即generator-generator,而且我正面临一个错误。 henrique@liberato:~/Documents$ yo generator ? Your generator name (generator-documents) events.js:154 throw er; // Unhandled 'error' event ^ TypeError: this.env.adapter.prompt(…).then is not a function at Base.prompt (/home/henrique/.nvm/versions/node/v5.8.0/lib/node_modules/generator-generator/node_modules/yeoman-generator/lib/base.js:232:45) at askName (/home/henrique/.nvm/versions/node/v5.8.0/lib/node_modules/generator-generator/node_modules/inquirer-npm-name/lib/index.js:25:19) at module.exports.generators.Base.extend.prompting (/home/henrique/.nvm/versions/node/v5.8.0/lib/node_modules/generator-generator/app/index.js:21:12) at Object.<anonymous> (/home/henrique/.nvm/versions/node/v5.8.0/lib/node_modules/generator-generator/node_modules/yeoman-generator/lib/base.js:431:23) at /home/henrique/.nvm/versions/node/v5.8.0/lib/node_modules/generator-generator/node_modules/run-async/index.js:26:25 at /home/henrique/.nvm/versions/node/v5.8.0/lib/node_modules/generator-generator/node_modules/run-async/index.js:25:19 at /home/henrique/.nvm/versions/node/v5.8.0/lib/node_modules/generator-generator/node_modules/yeoman-generator/lib/base.js:432:9 at processImmediate [as _immediateCallback] (timers.js:383:17) 版本: henrique@liberato:~/Documents$ node -v v5.8.0 henrique@liberato:~/Documents$ npm -version 3.8.9 […]