gruntjs

Running webdriver-start and protractor-start using grunt and protractor is not starting as webdriver-start command doesn't let next process to start

早过忘川 提交于 2019-12-08 07:50:58
问题 I am using Grunt to run protractor end to end test cases. I have following three tasks (I am using windows 7 machine) webdriver-stop webdriver-start protractor-start I am trying to run these three tasks as mentioned above order. However problem is grunt stuck at #webdriver-start process and doesn't let #protractor-start process to run. Following is my grunt config. Please help. /** * New node file */ module.exports = function(grunt){ //globalConfig and paths which will used in the grunt

Grunt fail build “Arguments to path.join must be strings” error

给你一囗甜甜゛ 提交于 2019-12-08 06:14:55
问题 Updated to Node 0.10.0, now while Grunt server still works, Grunt (build) and Grunt Test return "Arguments to path.join must be strings" error on Running "useminPrepare:html" (useminPrepare) task, effectively failing to build. Set up: Node: 0.10.0 Yeoman: 1.0.0-beta.3 Grunt: grunt-cli v0.1.6, grunt v0.4.0rc7 I know there's some fix been made, but tried all suggested solutions (npm cache clear, Grunt reinstall, etc.) with no success. Any help appreciated. 回答1: This question has been answered

How can I customize this build script with Node?

亡梦爱人 提交于 2019-12-08 04:30:23
问题 I have a unique directory structure that I need help making a build script for. Here is the link (slightly different) or directory structure: client /extensions /sandbox /widgets /form /collections /models /views /styles custom.css /controllers main.coffee server /views /layouts /errors app.coffee config.coffee Couple things I need: Compile coffeescript with a watch task into a server-dist + client-dist Copy over all other files into their nested folders, preferably with a watch task also

Development Workflow - Bootstrap (Less), Bower and Grunt

别来无恙 提交于 2019-12-08 03:33:11
问题 I am trying to step up my game as far as my folder structure and workflow is considered. I have recently discovered that front end package management and automation of tasks are key to improve speed, decreasing dev time, decrease file size and increase profit. My issue is I am not too sure what the best method of using these tools are. I have a builds folder, which includes a dev and prod folder. My components are outside this folder in the bower_components folder. I usually customise

Compile less files and minify js files in node.js project on AWS Elastic Beanstalk

a 夏天 提交于 2019-12-08 02:27:32
问题 I am using the Eb Command Line Interface to deploy a node.js project to AWS Elastic Beanstalk. I am using git for version control. So the command I run to deploy is simply 'git aws.push'. Locally, I am using grunt to compile css files from less files and also minify and cmobine js files. I don't want to include the *.min.css files or *.min.js files in my git repository but would rather have them recompiled on AWS after deployment. Is there a way to do this? Maybe with a .ebextensions hook or

Capistrano returning wrong release_path

岁酱吖の 提交于 2019-12-08 02:27:24
问题 I have a question about capistrano version 3.2.1. In my deploy.rb file I'm using the following line: set :theme_path, "#{release_path}/web/app/themes/myproject" The variable release_path is not showing to latest release folder, lets say 201409151420 as it should, but it is pointing to folder current , so the output is: DEBUG[68031037] Command: cd /var/www/myproject/current/web/app/themes/myproject && ( WP_ENV=staging /usr/bin/env npm install --silent ) The output should be: DEBUG[68031037]

Bootstrap 4 release - create custom css

ⅰ亾dé卋堺 提交于 2019-12-08 00:49:34
问题 I am trying to figure out how to build a custom css for B4 released version. I have downloaded source files but don't see a Gruntfile.js that I used for v4.alpha6. I am looking at: V4 doc which says: Should you require build tools, they are included for developing Bootstrap and its docs, but they’re likely unsuitable for your own purposes. So, what do I use for my own purposes? How do I build a custom css? I see that I have to create my own _custom.scss file, but I am not sure about the

Compiling coffeescript files with grunt

匆匆过客 提交于 2019-12-08 00:21:37
问题 I am trying to write a grunt task to compile numerous .coffee files to corresponding .js files and .map files using grunt. I have the grunt coffee plugin, but there are some problems: It compiles all files into one common destination folder instead of keeping the .js files in same folder as the .coffee file. It merges two .coffee files of the same name in different directories into one file in the destination directory. Please help solving these: Grunt plugin: https://www.npmjs.org/package

Grunt keeps removing my absolute paths

馋奶兔 提交于 2019-12-08 00:06:53
问题 I have references to some external JS files in my index.html like this: <!-- build:js(app) /scripts/vendor.js --> <!-- bower:js --> <script src="/bower_components/jquery/jquery.js"></script> <script src="/bower_components/angular/angular.js"></script> <script src="/bower_components/jquery-ui/ui/jquery-ui.js"></script> <!-- endbower --> <!-- endbuild --> Every time I run grunt serve (generator-angular-fullstack), the initial slashes are removed ( "/bower_components/..." → "bower_components/...

Karma + PhantomJS + no internet access

穿精又带淫゛_ 提交于 2019-12-07 22:32:46
问题 I need to run Karma tests using PhantomJS on a continuous integration server with no internet access. Every build starts from running npm install --no-registry and then grunt Grunt Karma is configured for single run ( singleRun: true ) Everything works well except PhantomJS. Even though phantomjs package is in npm-cache it tries to download actual binary (.exe in my case) directly from bitbucket.org and obviously fails due to no inet access. I tried to pre-install PhantomJS package globally (