yeoman

AngularJS Error: Module ngAnimate is not available

两盒软妹~` 提交于 2019-12-18 12:15:46
问题 I'am new to angular and running into a problem. I used the yeoman angular generator and added the ngAnimate module. When I run grunt test I get the following error: Error: [$injector:modulerr] Failed to instantiate module portfolioApp due to: Error: [$injector:modulerr] Failed to instantiate module ngAnimate due to: Error: [$injector:nomod] Module 'ngAnimate' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the

Yeoman and Bower not adding Bootstrap CSS (AngularJS generator)

前提是你 提交于 2019-12-18 10:33:58
问题 I am following along a codelab on the Yeoman webpage, and so far I've managed to follow along (with a few major hiccups getting my development environment going, but now it doesn't return any errors). So I made my project folder and ran yo , selected AngularJS and run the thing. Fairly soon into the process I got a prompt ? Overwrite package.json? I answered with y and got the following warnings: npm WARN package.json codelab@0.0.0 No license field. npm WARN peerDependencies The peer

google map error - Uncaught ReferenceError: google is not defined - yeoman

爱⌒轻易说出口 提交于 2019-12-18 04:54:42
问题 on the yeoman-ionic framework i've tried to add google map to my app.the problem was that every time i ran grunt serve the index.html scripts got deleted. so i've ran this:bower install --save angular-google-maps and the problem solved since it wrote the scripts on some other file in addition to index.html. the only problem is when i ran grunt serve againt i got a diffrent error and ever since then i just can't figure out what i am doing wrong... the error: Uncaught ReferenceError: google is

can grunt server use for production application deployment

青春壹個敷衍的年華 提交于 2019-12-18 01:15:15
问题 i am at fresher level,i want to know about the Grunt server is able to handle production application deployment. .. please help me. 回答1: Yes you can run grunt in production, You can see this post for how to do it. What's the purpose of gruntjs server task? But, i woudn't recommend that . Grunt server is basically designed to help the developer to run your app, without using an actual server. Apart from serving pages, It does some tasks like compiling sass, less files and reloading the page

Angular “Unknown Provider” error after minification with Grunt Build in Yeoman app

不问归期 提交于 2019-12-17 18:27:48
问题 I'm having problems with grunt build on a Yeoman generated Angular app, using Coffee and Slim, with all libraries up-to-date. (The app was just generated a few days ago with the most recent generator.) grunt build and grunt server both worked fine initially. But after a few days of development using grunt server , I discovered that grunt build had stopped working entirely. There were a few different problems that I fixed. The biggest one was that I had to abandon Slim entirely for my index

Routing issue with AngularJS project using yeoman setup [duplicate]

白昼怎懂夜的黑 提交于 2019-12-17 16:41:40
问题 This question already has answers here : AngularJS: How to remove #!/ (bang prefix) from URL? (6 answers) Closed 2 years ago . I have setup a new Angular project using yeoman. Angular version is 1.6.0. Project setup was successful but I have been facing an issue with routing Task runner - Grunt When I run the project in local my local page will load with URL http://localhost:9000/#!/ I was expecting http://localhost:9000/#/ When clicked on About link browser is routed to http://localhost:9000

Grunt - 安装指南

家住魔仙堡 提交于 2019-12-17 09:03:03
发现周围有些人对前端存在偏见。 他们认为前端只是用没那么复杂的技术对着界面调来调去,一点点打磨,最后做出一个没什么实用价值的“花瓶”。 其实,前端的技术栈并不简单,比如我们可以用 Grunt 进行一些自动化操作。 这里简单记录下Grunt的安装,希望对大家有帮助。 Node.js 我们用到的很多组建都是依赖Node.js构建的,所以首先要安装Node.js。 安装Node.js几乎没什么难度,可以直接进Node.js的 官网 ,或者使用 brew , apt-get , yum 等进行安装。 安装结束后,执行一下命令,检查输出是否正确: $ node --version v0.12.7 npm 会跟着Node.js安装进来,我们需要经常执行 npm install 之类的操作。 所以如果之前没有解除过 npm ,你可能需要过一次 Getting Started 。 Grunt 进入Grunt的 官网 看到一头野猪,Grunt将自己定义为 Javascript Task Runner ,而我们通过Grunt执行的就是一个个 task 。 先install再说,注意是 grunt-cli npm install -g grunt-cli 看看是否成功安装 Ezra:~ Kavlez$ grunt --version grunt-cli v0.1.13 该怎么用起来呢?这里列出简单步骤。

AngularJS Inject service in .run function

三世轮回 提交于 2019-12-14 03:55:57
问题 In my AngularJS app, using Yeoman, when minifying my app I have this error : Uncaught Error: [$injector:unpr] Unknown provider: aProvider <- a <- $http <- AuthenticationService that I obviously do not have before minifying. Here is the definition of my service in a separate runner.js file : angular.module('myApp').run(['$rootScope', 'AuthenticationService', 'FlashService', 'SessionService', function ($rootScope, AuthenticationService, FlashService, SessionService) { //some code }]); I thought

Angular-Fullstack Requiring external module babel-register

喜夏-厌秋 提交于 2019-12-14 02:35:44
问题 I am getting this error when use gulp serve from a angular-fullstack project generator. Please, how can I solve this issue? The dependencie was set in package.json properly. [18:03:54] Requiring external module babel-register /home/gcfabri/Workspace/sportfitness/gulpfile.babel.js:4 import _ from 'lodash'; ^^^^^^ SyntaxError: Unexpected token import at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:387:25) at loader (/home/gcfabri/node_modules/babel-register/lib/node.js

Failing to setup a test environment with grunt, phantomjs and mocha

房东的猫 提交于 2019-12-13 13:29:34
问题 I'm trying to setup a test environment with grunt, phantomjs and mocha using yeoman. The problem is when run the test task I got the following warning: Warning: PhantomJS timed out, possibly due to a missing Mocha run() call. Use --force to continue. But I'm calling mocha.run() in my index.html file. Here it is: <!doctype html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Mocha Spec Runner</title> <link rel="stylesheet" href="bower