gruntjs

Warning: Error: dyld: lazy symbol binding failed: Symbol not found: _objc_autoreleasePoolPush

那年仲夏 提交于 2019-12-12 02:50:46
问题 I'm getting an error when imagemin is run on png : Warning: Error: dyld: lazy symbol binding failed: Symbol not found: _objc_autoreleasePoolPush i'm on a macbook pro 10.6.8 I installed grunt today along with the plugin's Any help would be wonderful as google is pointing me to IOS development issues. 回答1: The binary is compiled for a newer version of the OS (you're now 4 major releases behind — upgrade if you can!) 来源: https://stackoverflow.com/questions/26642685/warning-error-dyld-lazy-symbol

new to grunt - warning: task “concat, uglify” not found

て烟熏妆下的殇ゞ 提交于 2019-12-12 02:27:14
问题 As the title says I'm new to Grunt. I am following a tutorial located at: http://24ways.org/2013/grunt-is-not-weird-and-hard/. It is an older tutorial but most seems to work the same. I have installed "grunt-contrib-concat" and "grunt-contrib-uglify" and can run both individually. But when I run grunt , I get the following error: Warning: Task "concat, uglify" not found. Use --force to continue. Aborted due to errors. I've been looking around and can't seem to figure it out. My files are as

Method 'exec' doesn't work in grunt task

女生的网名这么多〃 提交于 2019-12-12 02:04:46
问题 I have a task that registred in grunt config: grunt.registerTask('test_Branches', 'Run Branches check on windows', require('PATH').check); And in my branches.test.js I have method check(): this.check = function () { 'use strict'; console.log("Execution started\n"); exec('git for-each-ref --sort=-committerdate refs/remotes/origin/ --format='%(committername)', {cwd: currentDir}, function (error, stdout, stderr) { console.log('started 1.1'); if (stderr) { console.log('stderr: ' + stderr + "\n");

Ignore invalid self-signed ssl certificate warning in Grunt

狂风中的少年 提交于 2019-12-12 01:43:17
问题 I'm using Grunt with grunt-nwabap-ui5uploader plugin to deploy an application to NW ABAP server, I have written a upload task in Gruntfile and trying to execute it, but having an error about self signed certificate, which aborts the task. I have tried to use option --force to ignore the warning but it seems that this task isn't executed: > Running "nwabap_ui5uploader:upload_webapp" (nwabap_ui5uploader) task > Warning: Error: self signed certificate (undefined) Used --force, continuing. > >

How to load multiple JSON files into Jade templates using Grunt?

荒凉一梦 提交于 2019-12-12 01:09:35
问题 I can successfully load one JSON file as a data source for my Jade templates using Grunt, similar to this solution. Now I need to load a set of JSON files from different folders inside my project so that all the data from them is accessible from Jade templates. How to do it better in context of Grunt tasks? 回答1: You can load as many json files as you like with this method: // Jade => HTML gruntConfig.jade = { compile: { options: { data: { object: grunt.file.readJSON('JSON_FILE.json'), object1

Prevent `grunt-watch` from looping when there is a syntax error in less files?

不打扰是莪最后的温柔 提交于 2019-12-11 20:23:05
问题 I'm using grunt-watch to re-build my less style sheets: watch: { less: { files: ['media/less/**/*.less'], tasks: ['less'], options: { atBegin: true, spawn: false } } } But if there is a syntax error in any of the .less files, the task just loops, trying to re-build the .less files every second… which makes debugging fairly difficult, because the error messages scroll past very quickly. Is there any way fix that, so grunt-watch will only re-run the task once the .less files have been changed

using grunt to CONCATENATE FILES in sequence

痞子三分冷 提交于 2019-12-11 20:12:59
问题 i'm new to grunt and i want to concatenate java script files to one file using grunt and i have 6 js files but they need to be in some sequence to run the code without errors like jquery should loaded in first but the result file which came from grunt not preserve this sequence i tried many things like arrange them in src or make more than one folder but it didn't work note - when i make manual concatenation in one file by copy and paste it works fine so is there any command to make grunt

How to use dynamic values in Grunt tasks called from inside a forEach?

丶灬走出姿态 提交于 2019-12-11 19:33:47
问题 We are trying to run grunt tasks using grunt.config.set for dynamically concatinated strings. These grunt.configs are set in a forEach loop and change each time before the task is run. This does unfortunately not work, as grunt only uses the last grunt.config.set and runs it multiple times with that very same value. See this example with a simple "copy" task ("copy" is just an example, we want to use this kind of dynamic options in other tasks, too): copy: { projectFiles : { files : [{ src:

Glyphicons not appearing after running grunt in angular generator

倖福魔咒の 提交于 2019-12-11 18:58:57
问题 When you run grunt to build the app, the vendor.css file created in the dist folder 'mis-links' the glyphicons as /app/bower_componenets/.../glyphicons-... instead of ../fonts/glyphicons-... 回答1: In Gruntfile.js comment out the following line to fix this issue: cssmin: { options: { //root: '<%= yeoman.app %>' } } Source: https://github.com/yeoman/generator-angular/issues/645 来源: https://stackoverflow.com/questions/23587597/glyphicons-not-appearing-after-running-grunt-in-angular-generator

Bundling browserified libraries

谁说胖子不能爱 提交于 2019-12-11 17:01:54
问题 I'm having problems finding a canonical approach to building apps with cascading browserified dependencies. I've got a dependency chart that looks something like this: angular --> lib 1 --> lib 2 --> application Both libraries and the app are CommonJS Angular modules. I'd like to bundle each library separately so they can be used independently and/or in non-CJS apps. When I bundle the app, I want to include all upstream deps (angular, lib1, lib2, etc) in a single vendors.js and the