gruntjs

Grunt integration with Jenkins on windows issue

不想你离开。 提交于 2019-12-23 02:32:08
问题 I am running Jenkins on Tomcat7 - Windows 7. I have provided the node bin path in my jenkins configuration. Then running a shell script as follows: echo $PATH node --version npm install -g grunt-cli npm install grunt cssmin As suggested in other post Jenkins integration with Grunt, I have restarted my jenkins several times, and tried to work on all the answers written in that post, but still it shows error, grunt: command not found. Error stack trace from jenkins console output: /c/apache

Grunt integration with Jenkins on windows issue

杀马特。学长 韩版系。学妹 提交于 2019-12-23 02:32:01
问题 I am running Jenkins on Tomcat7 - Windows 7. I have provided the node bin path in my jenkins configuration. Then running a shell script as follows: echo $PATH node --version npm install -g grunt-cli npm install grunt cssmin As suggested in other post Jenkins integration with Grunt, I have restarted my jenkins several times, and tried to work on all the answers written in that post, but still it shows error, grunt: command not found. Error stack trace from jenkins console output: /c/apache

How to tell JSHint to look for definitions in another JS file

断了今生、忘了曾经 提交于 2019-12-23 02:29:15
问题 Here's the problem: I'm using JSHint in Grunt. I have a couple JS files and they'll be merged into one file in the end. But before merging, I would like to run JSHint. However, JSHint complaints some undefined variables. Here's an example: 1. JavaScript/file_one.js defines a variable: var Foo = (function (){}()); 2. JavaScript/file_two.js uses that module. new Foo(). jshint: { files: ['Gruntfile.js', 'javascript/**/*.js', ], options: { // some options. } } JSHint complaints that Foo isn't

HTML comments causing an issue exporting CSS files with Grunt-usemin

泄露秘密 提交于 2019-12-22 22:20:30
问题 I'm using yeoman/grunt to for my build process and I'm running into an issue. I'm trying to build two .css files, one for IE8 and one for everything else. If I place the IE conditional on the outside of the build block, an error is thrown because of the comment within a comment. If I put the IE conditional on the inside it gets stripped out. <!--[if lte IE 8]> <!-- build:css({.tmp,app}) styles/main-old-ie.css --> <link rel="stylesheet" href="styles/main-old-ie.css"> <!-- endbuild --> <![endif

HTML comments causing an issue exporting CSS files with Grunt-usemin

倾然丶 夕夏残阳落幕 提交于 2019-12-22 22:19:04
问题 I'm using yeoman/grunt to for my build process and I'm running into an issue. I'm trying to build two .css files, one for IE8 and one for everything else. If I place the IE conditional on the outside of the build block, an error is thrown because of the comment within a comment. If I put the IE conditional on the inside it gets stripped out. <!--[if lte IE 8]> <!-- build:css({.tmp,app}) styles/main-old-ie.css --> <link rel="stylesheet" href="styles/main-old-ie.css"> <!-- endbuild --> <![endif

Use requirejs to load a file with several classes inside (grunt-concat)

情到浓时终转凉″ 提交于 2019-12-22 18:15:10
问题 I have a little problem with grunt concat and requirejs (and typescript). The problem is simple, when I generated one file per class and I load each file seperately, I don't have problem. (But it's slower for the browser) Example: A.js Message.js ValidatorMessage.js (extends Message and has a dependency) loader.ts: require.config({ paths: { 'A': '../generated/shared/A.min', 'Message': '../generated/shared/Message.min', 'ValidatorMessage': '../generated/shared/ValidatorMessage.min', }//more

How to transform a npm script to a grunt task?

房东的猫 提交于 2019-12-22 14:48:45
问题 I have the following script with my nodeJS. "scripts": { "start": "grunt", "test": "node --debug --harmony node_modules/grunt-cli/bin/grunt test" } I am running node v0.11.13 so I need to set --harmony flag. On grunt the tests are configured right if I start them with npm test, but I would prefer to have it all in a gruntfile. Is there a way to configure grunt to start the server and also run the test ? 回答1: You can create an alias task that spawns grunt with those node flags, like such:

Grunt compass task not compatible with this directory structure?

主宰稳场 提交于 2019-12-22 12:48:29
问题 I have the following directory structure (only showing the relevant bits for illustration purposes): proj \ \ Gruntfile.js \ package.json \ test \ (all my tests are in this folder structure) \ app \ \ index.html \ scripts \ (all my scripts are in here) \ views \ (all views are in here) \ styles \ \ style.css \ oldie.css \ print.css \ images \ \ hires \ (all high resolution images are here) \ lowres \ (all low resolution images are here) The compass section of my Gruntfile.js file looks like

Font awesome URL not coded in main.css for grunt dist

佐手、 提交于 2019-12-22 12:32:25
问题 I used Yeoman to scaffold my project and Bower to install Font Awesome. I added $fa-font-path: "../bower_components/font-awesome/fonts/"; @import "../bower_components/font-awesome/scss/font-awesome"; to app/styles/style.css The fonts showed during development but not in the deployed stage where I used grunt dist to pack my files for deployment. I could see the font-awesome URLs in my dist/styles/59268e94.main.css were pointing to /bower_components/font-awesome/fonts/ whereas Bootsrap's

How do bring down a connect server in Grunt?

无人久伴 提交于 2019-12-22 12:07:57
问题 I'm running protractor tests on a connect server, since there is no built in web server as in karma. No problem with that, only karma shuts down its web server once it's done running the tests but there is no such mechanism in protractor. I'd like to run protractor tests on a connect server and then spin up another connect server, potentially with a different configuration. So far I've managed to run another connect server on a different port but I still have the two connect servers running