gruntjs

yeoman: grunt server waiting… can't go back to command line

最后都变了- 提交于 2019-12-04 22:34:01
问题 I installed yeoman, and trying use command: grunt server to preview my application. everything is fine except when i try to get back to command line to continue typing in some commands, below is the status after i run grunt server: Running "autoprefixer:dist" (autoprefixer) task Prefixed file ".tmp/styles/main.css" created. Running "connect:livereload" (connect) task Started connect web server on 127.0.0.1:9000. Running "watch" task Waiting... does anybody know how to stop it? 回答1: This is

Use Javascript frameworks without build tools like grunt and gulp? [closed]

元气小坏坏 提交于 2019-12-04 22:24:44
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I'm trying out some modern Javascript frameworks like Angular, React, Vue and Ember, and they all want me to use build tools like npm , grunt , gulp , maven , etc. Web-programming used to be fun. Just change some files, refresh the browser and see if it works. Now every time I

yeoman generator font awesome

守給你的承諾、 提交于 2019-12-04 21:13:55
I created a mobile application with the yeoman mobile-generator. Now I want to add font awesome. I tried this , but not really works in the compiling process. A small advice or experience would be great Okay, it's really a bit unclear. Sorry. The compiling process works, but console says 404 not founds for the fonts. It's not really clear to me how is a good way to do this. Creating the CSS from the scss files, implemeted the .min.css in the index.html with "<-- build: ... -->" or something else?! When I add this in my main .scss file the the fonts would not be found. $fontAwesomePath: "..

Grunt concat failing with “Unable to find local grunt”

风流意气都作罢 提交于 2019-12-04 20:33:51
I have installed Grunt like so `npm install -g grunt-cli successfully. I have also installed the grunt-contrib-concat libary succesfully like so: npm install grunt-contrib-concat --save-dev I have created a package.json : { "name": "my-project-name", "version": "0.1.0", "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-jshint": "~0.1.1", "grunt-contrib-nodeunit": "~0.1.2" } } and a Gruntfile.js : module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { separator: ';' }, dist: { src: ['src/init.js', 'src/Game.js', 'ui/Ui.js', 'ui

How do I tell Grunt to NOT minify or concatenate js files in a build task?

你。 提交于 2019-12-04 20:15:57
问题 I've just scaffolded an Angular app using Yeoman. I've noticed that the build task does several things by default, including minifying and concatenating js files. I'd like to have a simpler build task that didn't do any minifying or concatenation, and, instead, only did the following two things: compile my .scss into .css copy a working app into my distribution directory Can anyone help me write a grunt task that will do (only) these two things? Many thanks. 回答1: Ok, I've edited the default

How can I set the viewport size of PhantomJS through grunt & jasmine?

心不动则不痛 提交于 2019-12-04 20:03:14
I'm trying to test something using grunt + jasmine + phantomjs. This specific test requires a large viewport so the responsive styles render the large-screen version within phantomjs. I noticed in the grunt-contrib-jasmine plugin this code, which would seem to allow for setting phantomjs options: // Merge task-specific options with these defaults. var options = this.options({ ... phantomjs : {}, ... }); However, when I add this to my config in grunt it has no effect: options: { phantomjs: { viewportSize: { width: 2000, height: 1000 } } } The answer lies in the fact that viewportSize is an

Use Foundation instead of Bootstrap with SASS in a yeoman created application

久未见 提交于 2019-12-04 19:45:27
I've created an AngularJS application with yeoman. Now I want to switch the front-end framework from bootstrap to foundation. After I installed foundation with bower install foundation --save Grunt will add the following line to my index.html file. <link rel="stylesheet" href="bower_components/foundation/css/foundation.css" /> How can I force grunt to use the sass way. For the sass way the index.html is untouched (except js files) but the main.scss file nedds the following line or simliar @import "../bower_components/foundation/scss/foundation" to work with the sass. Here is the Grundfile.js

'define' is not defined error on RequireJS & Webapp Yo generator

核能气质少年 提交于 2019-12-04 19:44:39
I have struggled a few days to figure this out,, but finally I need your help today. my repo: https://github.com/seoyoochan/bitsnut-web what I want to achieve : - Load and optimize r.js - Write bower tasks for RequireJS and r.js : tasks are: minify & uglify & concatenation for RequireJS, and optimise with r.js on production - How to exclude js script tags in index.html when using wiredep tasks and load them through RequireJS loader? I use Yeoman 'Webapp' generator and generated the scaffold app. I installed backbone, marionette, text, underscore, and etc via bower install I modified bower.json

grunt watch livereload Fatal error: Port 35279 is already in use by another process

时光毁灭记忆、已成空白 提交于 2019-12-04 19:09:39
问题 I'm trying to use livereload with watch. I keep getting the message "Fatal error: Port 35279 is already in use by another process" . I've changed the port for livereload but then nothing reloads. module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), compass: { dist: { options: { cssDir: 'stylesheets', sassDir: 'stylesheets/sass/', imagesDir: 'images', javascriptsDir: 'scripts', require: ['sass-globbing','modular-scale'], force: true } } }, cssmin: {

Grunt build - Running “concurrent:dist” (concurrent) task Killed

喜欢而已 提交于 2019-12-04 18:47:29
问题 For some reason, when doing a grunt build on my VM, it simply dies off in this way: ... Running "concurrent:dist" (concurrent) task Killed I am not sure what is happening. Seems to be able to build on my local computer, not sure why it doesn't work on my VM. Any ideas? Thanks! UPDATE grunt build --verbose Running "concurrent:dist" (concurrent) task Verifying property concurrent.dist exists in config...OK Files: [no src] -> dist Killed Here is the Gruntfile.js. // Generated on 2013-08-13 using