Tag: yeoman

Yeoman.js是否configuration客户端和服务器的东西?

只是想100%肯定这个:Yeoman.jsconfiguration/帮助build立客户端和服务器(node.js)的东西? 例如:我看到它参考Require.JS。 我认为这将意味着它可以照顾使用Bower获取服务器上的依赖关系(用于客户端),创build一个用作客户端上的Require.jsinput的Json文件,以便客户端知道哪些文件下载? 作为一个额外的步骤,它可能会通过Grunt(一些链轮扩展),以缩小和concatect基于一些configuration的JavaScripts。 正确? 谢谢。

整合yeoman和socketstream

我一直在开发angular度yeoman项目和开发过程是优雅与yeoman提供necesaary工具的发展目的。 在这个项目的这个阶段,我们正在考虑将socketstream添加到这个项目中,但是socketstream提供了和yeoman类似的用法,但是经常发生冲突。 例如,像两个如何提供不同的目录结构,是否有可能使用套接字stream,并添加一些生成/皮棉任务? 或者是有没有办法整合yeoman和SS为一个项目。

Grunt服务器不工作在nitrous.io

我使用nitrous.io创build了一个节点env。 在他们的terminal里面,我安装了文员。 如果我尝试运行grunt server我得到一个错误,指出: Fatal error: Unable to find local grunt. If you're seeing this message, either a Gruntfile wasn't found or grunt hasn't been installed locally to your project. For more information about installing and configuring grunt, please see the Getting Started guide: http://gruntjs.com/getting-started 如果我去预览比连接到端口3000我得到这个 “参考”状态表示节点将127.0.0.1或“本地主机”更改为0.0.0.0 var http = require('http'); http.createServer(function (req, res) { […]

如何在Yeoman Ember应用程序中设置/获取特定于环境的variables

考虑到Yeoman Ember应用程序。 我看过不同的工具,如: https://github.com/logankoester/grunt-environment https://github.com/jsoverson/grunt-env https://github.com/outaTiME/grunt-config 但是我不太清楚如何在router.js中设置/获取不同的适配器url,具体取决于一些grunt / node环境。

jasmine_node运行平均种子失败

运行由yeoman生成器生成的名为mean-seed的项目时遇到问题。 我一直在修补它几天,并尝试了一些事情。 我遇到麻烦的地方是运行“jasmine_node”任务: Running "jasmine_node" task >> Error: Unable to access jarfile node_modules/protractor/selenium/selenium-server-standalone-2.39.0.jar Warning: Done, with errors. Use –force to continue. Aborted due to warnings. 所以我第一次尝试识别缺less的npm包来安装 744 npm install && bower update && bower install 755 npm install protractor 760 npm install npm install selenium-standalone 761 npm install -g protractor 765 npm install protractor-tester 767 […]

哟angular度错误

我正在尝试通过命令来通过Yeoman构buildAngular “哟angular” 一切工作,直到我到了tmp目录: npm ERR! Error: EACCES, mkdir '/home/colin/tmp/npm-10021-myBKjnB0' npm ERR! { [Error: EACCES, mkdir '/home/colin/tmp/npm-10021-myBKjnB0'] npm ERR! stack: 'Error: EACCES, mkdir \'/home/colin/tmp/npm-10021-myBKjnB0\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! path: '/home/colin/tmp/npm-10021-myBKjnB0' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Linux 3.8.0-37-generic npm ERR! […]

为什么Yeoman使用Bower而不是npm?

我开始使用这些工具,并且仍然在理解它们的元依赖关系。 正如我看到的Yeoman,它是一个npm客户端与一些“向导”function。 它已经安装了所使用的发生器的依赖关系。 为什么,在哪里以及如何在这里需要鲍尔? 为什么Yeoman在已经使用npm的时候需要另一个软件包系统? 我知道通常npm用于服务器端代码和Bower用于客户端代码(但仍然在服务器上,browserify用于客户端)。 npm和Bower都是包pipe理系统 。 对? 那么为什么Yeoman使用两个不同的包pipe理系统而不是坚持一个呢? 示例:我想为我的团队创build一组模板和组件,以便能够按照常见的结构,样式等快速构build网站。 首先,我用基本的CSS,菜单创build一个空的网站。 我做一个Yeoman生成器。 然后,我做了第二个发电机添加一个空的网页到这个网站。 (我想为这种情况下的生成器,所以它创build菜单中的条目,添加一些testing等)。 然后,我想提供一些自定义组件,就像一个特殊的forms。 我通常会将其包装在凉亭包装中。 但为什么不作为另一个发电机? 在这种情况下,发电机将完全符合该法案。 这将是一个非常愚蠢的发电机,基本上只是在正确的文件夹中导入文件。 这不会改变开发者的stream程。

testingGrunt任务

我正在使用Yeoman来生成一些项目和咕-任务。 现在我也想使用Mocha来testing生成的grunt任务,但是我只能find一些如何在Grunt中使用Mochatesting的信息;-) 任何人都可以帮忙吗?

Microsoft Azure持续集成 – 使用Grunt“编译”步骤的NodeJs解决scheme

我的问题的一些前兆。 我可能会有一些详细的细节,但我只是想确保我不会遗漏任何可能导致我的问题。 (我会在问题的末尾附上完整的错误日志,但是我不希望任何人对此有太大的反应,我会尽可能地总结一下) 我使用Yeoman支撑了一个AngularJS项目。使用yo angular命令。 然后我创build了deploy.cmd & .deployment文件 推到我的Git仓库上的Bitbucket。 (只提交根文件夹文件,testing和应用程序文件夹) 从那里,通过他们的网站快速设置链接到Azure。 我的版本分成两部分,在部署期间安装grunt和bower(全局),然后在npm软件包安装期间安装grunt软件包 然后我需要尝试运行grunt build成为POST_DEPLOYMENT_ACTION package.json (prod依赖) "dependencies": { "grunt": "^0.4.1", "grunt-autoprefixer": "^0.7.3", "grunt-concurrent": "^0.5.0", "grunt-contrib-clean": "^0.5.0", "grunt-contrib-concat": "^0.4.0", "grunt-contrib-copy": "^0.5.0", "grunt-contrib-cssmin": "^0.9.0", "grunt-contrib-htmlmin": "^0.3.0", "grunt-contrib-imagemin": "^0.8.1", "grunt-contrib-jshint": "^0.10.0", "grunt-contrib-uglify": "^0.4.0", "grunt-filerev": "^0.2.1", "grunt-google-cdn": "^0.4.0", "grunt-newer": "^0.7.0", "grunt-ng-annotate": "^0.3.0", "grunt-svgmin": "^0.4.0", "grunt-usemin": "^2.1.1", "grunt-wiredep": "^1.7.0", "jshint-stylish": […]

Yeomanangular发生器错误

当我使用angular度yeoman发生器,我得到以下错误: module.js:340 throw err; ^ Error: Cannot find module './lib/pack.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (C:\Users\kra\AppData\Roaming\npm\node_modules\generator-karma\node_modules\yeoman-generator\n ode_modules\download\node_modules\decompress\node_modules\decompress-tarbz2\node_modules\tar\tar.js:171:16) 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) at Module.require (module.js:364:17) 任何想法为什么? npm版本1.4.28 节点版本0.10.33 yeoman版本1.3.3