Menu
  • HOME
  • TAGS

Grunt build to nginx causes errors (angularJS)

angularjs,nginx,gruntjs,yeoman-generator-angular

When you see an error in AngularJS like "Unknown provider: aProvider <- a" or "Unknown provider: nProvider <- n", it means the AngularJS dependency injection system was not able to match an argument to a provider. This error is legitimate when you have an argument in an injected function that...

Where to put “non-bower” components

angularjs,yeoman,bower,yeoman-generator,yeoman-generator-angular

You could put them in the scripts folder with in a subfolder thirdpartyor librariesor whatever fits best for you. Make sure that the libraries are minified with the main scripts....

yo angular generates files in wrong path ( home directory )

yeoman,ubuntu-14.04,yeoman-generator-angular

Thanks to issue page at https://github.com/yeoman/generator-angular/issues/1037#issuecomment-83118093 the solutions was relatively easy. After the command mkdir my-new-project && cd $_ I needed to create an empty .yo-rc.json file with {} as content to this folder. Then I could start yo and all files are created in my my-new-project folder now....

yeoman angular generator generated app throws angular undefined error

angularjs,yeoman,yeoman-generator-angular

The only thing I can think of here is that the virtual directory to the bower_components folder (one level up from the app folder) is not there or not working. Check the Net tab in firebug and makes sure angular.js is not 404-ing. My guess is that it is. You'll...

Yeoman angular dist version of app, does not restrict the direct folder access

angularjs,.htaccess,gruntjs,yeoman-generator,yeoman-generator-angular

.htaccess files are specific for apache server, but you are running grunt, so all .htaccess files are ignored. You should not use Grunt as your production server, since it is designed to local development environment only. Take a look here: can grunt server use for production application deployment Files generated...

yo generate with tabs instead of spaces

yeoman,yeoman-generator,yeoman-generator-angular

As of version 0.18, generators can use gulp plugins to process file writes. This allows generators to ask a user their preferred indentation and apply it to the output. You can see more about this technical detail on the release announcement: http://yeoman.io/blog/release-0.18.html It is important to note that every generator...

How to use x-editable plugin with meanjs yeoman generated code?

angularjs,express,x-editable,meanjs,yeoman-generator-angular

You can try do this in file moduleName.client.config.js and do moduleName.run(function(editableOptions) { editableOptions.theme = 'bs3'; }); don't forget to connect the module in applicationModuleVendorDependencies...

yeoman and bower not adding bootstrap css (angular generator)

yeoman,yeoman-generator-angular

After doing the codelab I had exactly the same problem with the same result as you are getting (warnings and all). I had to just work around the issue by rolling back to bootstrap 3.3.4. Just edit bower.json and change the bootstrap line to: "bootstrap": "3.3.4", Then run the following...

Running tests with localStorage

gruntjs,yeoman,yeoman-generator-angular

your setup is correct now (after you removed $httpBackend from the arguments list) Controller: MainCtrl should add items to the list then remove FAILED this error is a simple test error, which means that your code somewhere doesnt work as expected (your second test fails) i for myself would check...

Grunt Build Aborted Due to Warnings

angularjs,gruntjs,yeoman,karma-jasmine,yeoman-generator-angular

Okay here's the error I was missing: Parse Error: <head "Access-Control-Allow-Origin: http://www.requesting-page.com"> I commented out the line <head "Access-Control-Allow-Origin: http://www.requesting-page.com"> From index.html and now it's building with out errors...

Yeoman Angular generator - bower_components missing in app folder

yeoman,bower,yeoman-generator-angular

Made it work - edited .bowerrc { "directory": "app/bower_components" } and then bower install. Now all dependencies are in app directory....

grunt task to modify yeoman angular index.html

angularjs,gruntjs,yeoman,yeoman-generator-angular

Maybe you should let the paths be as they are since CSS files are bower dependencies, too. Copy the dependencies to a directory with the same relative path? But if you will, I think this will help you modify your grunt tasks. I assume you have (at least) the following...

WARNING: Tried to load angular more than once. when I include JQuery

angularjs,bower,yeoman-generator-angular

After long hours of testing... it ended up being that on my index.html file I had a <ui-view /> to be used by angular ui router and replacing it to this, did the trick. <ui-view></ui-view> ...

Permission denied while installing Yo

angularjs,yeoman,yeoman-generator-angular,yo

I worked around the issue by using: sudo npm install -g yo --unsafe-perm Use of --unsafe-perm suggested by nyakto in this bug report. Edit - realised that this is the URL posted by @Stephan in his answer. I don't know the specifics about --unsafe-perm - I can only state that...

Error: [ng:areq] Argument is not a function, got undefined, on thinkster.io's tutorial [closed]

javascript,angularjs,yeoman,yeoman-generator-angular

Your controller name has a typo: app.controller('PostsCtrl', ... while in the route it's controller: 'PostCtrl' ...

Grunt build is leaving out a new directory in 'Dist'

angularjs,build,gruntjs,yeoman,yeoman-generator-angular

The root cause is you forgetting to update copy task You need add the new folder app/ to src list. copy: { dist: { files: [{ expand: true, dot: true, cwd: '<%= yeoman.app %>', dest: '<%= yeoman.dist %>', src: [ '*.{ico,png,txt}', '.htaccess', '*.html', 'views/{,*/}*.html', 'images/{,*/}*.{webp}', 'styles/fonts/{,*/}*.*' 'app/*' ] } ...

Modals do not show up after grunt build in a yeoman app

angularjs,yeoman-generator-angular,mobile-angular-ui

Bingo. The problem actually came from a clash between mobile-angular-ui and bootstrap, as I was using both of them for the mobile and desktop views respectively. Since I use a very limited subset of bootstrap, I decided to remove all my bootstrap dependencies and only work with mobile-angular-ui which also...

Accessing root folder in yeoman project gives 404, but bower_components is not

angularjs,yeoman,bower,yeoman-generator,yeoman-generator-angular

The Gruntfile generated by angular generator uses connect for the http server, the generator also attaches a plugin to the server called livereload which magically injects new code or reloads the page (depending on the extension of the file modified), these are the defaults options of the Gruntfile.js file, I...

AngularJS directive scope seems to accept only one argument

javascript,angularjs,yeoman,yeoman-generator-angular

Set the editing variable in the link function myapp.directive('userinfo', function () { var directive = {}; directive.restrict = 'E'; directive.template = '<b>User: {{ user.firstName }} {{ user.lastName}}</b>'; directive.scope = { user: '=' }; directive.link = function (scope) { scope.editing = false; }; return directive; }); ...

Push yeoman project to github

github,yeoman,yeoman-generator-angular

I think that angular generator for Yeoman already creates a package.json file with grunt defined as dependency along with all its task. So the correct way to compile a project after the clone is to install all npm dependencies locally using: npm install then run grunt to compile everything: grunt...

How to include gruntfile.js in existing yeoman project

gruntjs,yeoman,yeoman-generator,yeoman-generator-angular

looks like yeoman is not scaffolded properly. Follow http://yeoman.io/codelab/setup.html and try to scaffold again.

Use yeomen generator branch locally

git,npm,yeoman,yeoman-generator-angular

If you wish to use canary branch you need to checkout this branch. git checkout -b canary Once you merge it you can delete it or continue to work on it and merge it again several times as your on going work. ...

Building Yeoman app breaks CSS background images

angularjs,yeoman,yeoman-generator-angular

See https://github.com/yeoman/generator-angular/issues/667. After removing the cssmin section I ran into another problem: images urls included in css files weren't being correctly revved. I fixed that last issue by adding images path to usemin assetsDir: usemin: { html: ['<%= yeoman.dist %>/**/*.html'], css: ['<%= yeoman.dist %>/styles/{,*/}*.css'], options: { assetsDirs: ['<%= yeoman.dist %>',...

Does someone know a good workflow with yeoman and netbeans?

netbeans,yeoman,yeoman-generator-angular

I have been in the same shoes man. read these... https://github.com/yeoman/generator-angular Yeoman generator for AngularJS - lets you quickly set up a project with sensible defaults and best practices. It'll download and setup everything . Plus a generator to generate your controller , route etc... read its documentation . ...