Search Posts

Category: gruntjs

Jenkins grunt compass ENOENT No such file or directory @ realpath_rec

I am working on an existing project to replace bower with yarn and upgrading angularjs from 1.2.9 to 1.3.0 I’ve got it working on my local system but it fails on jenkins when running deploy grunt task with a filepath issue, the weird thing is on jenkins it complains with my local path Errno::ENOENT on line [“33”] of /var/lib/jenkins/.rvm/gems/ruby-2.3.3/gems/compass-1.0.3/lib/compass/exec/global_options_parser.rb: No such file or directory @ realpath_rec – /home/leonidas /home/leonidas is my local path This is […]

Getting started with [Wrap]Bootstrap theme with Bower/Grunt

This is my first attempt at using a frontend package that uses Grunt/Bower. I am specifically referring to a Wrapbootstrap theme. I followed the instructions as follows: npm install -g grunt-cli npm install -g bower npm install bower install I believe the process went fine. There were some deprecation warnings though. What I ended up was with a file structure like this: However, now I am lost as how to start. The instructions says to […]

Grunt usemin, get final path of compressed files to allow preload

I have a HTML block like this for minify css and js files: <!– build:css static/assets/css/combined.css –> <link rel=”stylesheet” href=”static/bower_components/font-awesome/css/font-awesome.css”> <link rel=”stylesheet” href=”static/bower_components/photoswipe/dist/photoswipe.css” /> <link rel=”stylesheet” href=”static/bower_components/photoswipe/dist/default-skin/default-skin.css” /> <link rel=”stylesheet” href=”static/assets/css/jasny-bootstrap.min.css”> <link rel=”stylesheet” href=”static/assets/css/main.min.css”> <link rel=”stylesheet” href=”static/assets/css/custom.css”> <link rel=”stylesheet” href=”static/common/da-angular-spinkit/angular-spinkit.min.css”> <!– endbuild –> I need to make a preload of the resource static/assets/css/combined.css but the final file has a hash at the end of its name, so the final path is like static/assets/css/combined.min-af5890ce41.css, so I […]

Migration from grunt to webpack in angular 1.6

I have an existing application in angular 1.6 We are currently using grunt and bower to build the application. Now the requirement came to migrate the existing application to webpack and removing grunt and bower. Anyone can give me the right suggestion , how to approach for the same. I am struggling with entry point, bundle path and the loader I am supposed to put in webpack config. The index.html, which script tags to remove […]

How do I get angularjs-dragula working with grunt-contrib-requirejs

I use grunt and requirejs (via grunt-contrib-requirejs) to compile a single kernel.js file with all js dependencies. In this setup most angular modules install just fine, but I’m having a real problem with angularjs-dragula. I’m wondering if anyone has gotten angularjs-dragula working in an enterprise, built environment using grunt-contrib-requirejs. Technical details on what I’ve tried below: per the example in the module, if you’re including the files directly in the html, you can include angular, […]

How Do You Add Packages To AngularJS?

So currently, I thought I’d have a go at teaching myself AngularJS and NPM. Using Professional AngularJS by Diego Netto and Valeri Karpov as a guide, which I hope isn’t a bad book for the language, I managed to get as far as installing the application using Yeoman and then using Grunt to run it. The problem is, where I’m up to in the book, really doesn’t explain how to add third party packages from […]

Removing the hash from the url in AngularJS 1.x [duplicate]

This question already has an answer here: AngularJS – Enable HTML5 Mode Page Refresh Without 404 Errors 3 answers I’m building a web app with Angular 1.x(not using ionic, building a website). I would like to remove the ‘#’ from the URLs. I did implement html5mode true and put a base tag in the head tag in index.html. It works fine until I refresh the pages. When it is in html5mode it thinks that the […]

NPM and Grunt not working Typescripts changes in solutions after deployment

I am building a .net project having angular & node.js. It is working perfectly when building on 2008 Server R2 but its Not working on 2012 Server R2. On 2012 Server R2 it is skipping many packages and not downloading everything. please suggest what could be the reason. this command is behaving differently on below servers on below windows configurations npm install –prefix ./Project/Path/ -g grunt-cli grunt –save-dev grunt-cache-breaker Win Server 2008 R2 node -v […]

Is it possible to send http calls via grunt connect?

I have a web application with front end based on angular and back end as a spring rest API. I’m using grunt connect to serve the front end while the rest api runs on localhst:8080, the grunt server runs on localhost:9002. So from angular, when I’m sending an http call to the back end server using angular-resource, I’m getting following error : Failed to load localhost:8080/api/v1/user: Cross origin requests are only supported for protocol schemes: […]

Next Page »