No provider for “framework:jasmine”! (Resolving: framework:jasmine)

I had the same error after creating a new project the yeoman angular generator (yo angular). The solution for me was adding “karma-jasmine” to the devDependencies in packages.json and running “npm install” again. npm install karma-jasmine –save-dev This solved the error message “No provider for “framework:jasmine”!” I also had to add a karma browser launcher … Read more

What does the “expand” option do in grunt-contrib-copy? The examples all use it but the docs say nothing about what it does

Since expand is a part of Grunt, and not specific for grunt-contrib-copy, information about it can be found in Grunt’s file configuration API: Set expand to true to enable the following options: cwd All src matches are relative to (but don’t include) this path. src Pattern(s) to match, relative to the cwd. dest Destination path … Read more

Using node-inspector with Grunt tasks

To run grunt in debug, you need to pass the grunt script to node explicitly: node-debug $(which grunt) task and put a debugger; line in your task. node-inspector will then open a browser with debugging tools. Edit 28 Feb 2014 node-inspector has added the command node-debug, which launches node in a –debug state and opens … Read more

Task Runners (Gulp, Grunt, etc) and Bundlers (Webpack, Browserify). Why use together?

Grunt and Gulp are actually task runners, and they have differences like config driven tasks versus stream based transformations. Each has its own strengths and weaknesses, but at the end of the day, they pretty much help you create tasks that can be run to solve a larger build problem. Most of the time, they … Read more

Have Grunt generate index.html for different setups

I recently discovered these Grunt v0.4.0 compatible tasks: grunt-preprocess Grunt task around preprocess npm module. grunt-env Grunt task to automate environment configuration for future tasks. Below are snippets from my Gruntfile.js. ENV setup: env : { options : { /* Shared Options Hash */ //globalOption : ‘foo’ }, dev: { NODE_ENV : ‘DEVELOPMENT’ }, prod … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)