gruntjs

Bootstrap 4 release - create custom css

一世执手 提交于 2019-12-06 04:19:54
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 Gruntfile.js . I copied the one from alpha6 version, but it's not running. I am getting this: D:\Bootstrap4

grunt-contrib-watch causing Maximum call stack size exceeded

和自甴很熟 提交于 2019-12-06 04:14:43
When I execute the clean task (grunt clean), everything works as expected but when I run the watch task (grunt test), I get the following error: util.js:35 var str = String(f).replace(formatRegExp, function(x) { ^ RangeError: Maximum call stack size exceeded Here's my gruntfile module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') clean: ['tmpDir/'] watch: options: spawn: false src: tasks: ['clean'] files: [ src: 'client/assets/strings/en/str.coffee' ] # plugins grunt.loadNpmTasks('grunt-contrib-clean') grunt.loadNpmTasks('grunt-contrib-watch') # tasks grunt

Assemble: How can I generate pages from json/yaml?

纵饮孤独 提交于 2019-12-06 03:32:05
Is there a way to generate pages from json/yaml if you provide a layout? I thought this was possible, but can't find in docs. This is currently being tracked here in GitHub: http://webb.li/QjTX Since the options.pages feature has been implemented, you can add pages like this: options: { pages: { "about": { "data": { "title": "About" }, "content": "Content for {{title}}" }, ... } } We aren't supporting automatic loading of a json/yml file, but you can do this inside your Gruntfile and add the object to options.pages that way... module.exports = function(grunt) { grunt.initConfig({ // package

Grunt Watch repeatedly showing “Warning: must provide pattern”

寵の児 提交于 2019-12-06 02:50:50
问题 I'm having trouble configuring Grunt to watch my project files, rebuild and update a page hosted in a connect server. If I run any of the build tasks and then 'watch' as part of a combined task, then 'watch' seems to get stuck in a loop, endlessly printing the message. Running "watch" task Waiting... Warning: must provide pattern If instead I just run $ grunt watch , it will happily watch my source files and compile/build as appropriate. I think the relevant task configurations are these:

Puppet installing packages, but these do not seem to work

半城伤御伤魂 提交于 2019-12-06 02:01:13
I have the following puppet file. It seems to have installed everything without errors, but commands such as yo or bower dont seem to work. Any idea why? class yeoman { Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] } $yeomanPackages = ["git", "rubygems", "libjpeg-turbo-progs", "optipng", "phantomjs", "python-software-properties" ] package { $yeomanPackages: ensure => "installed", require => Exec['apt-get update'], } exec { "apt-get update": command => "/usr/bin/apt-get update" } package { 'compass': ensure => latest, provider => 'gem', require => Package["rubygems"], }

grunt-contrib-handlebars - Output is different than when I run the handlebars npm task

不打扰是莪最后的温柔 提交于 2019-12-06 01:33:54
Thank you in advance for your time and help. I'm trying to precompile handlebars (.hbs) templates using grunt-contrib-handlebars When I run the run task I end up with this: this["JST"] = this["JST"] || {}; this["JST"]["app/templates/err.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { this.compilerInfo = [4,'>= 1.0.0']; helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression; buffer += "<div>Error: "; if (stack1 = helpers.error) { stack1 = stack1.call(depth0,

Removing file extension using grunt-contrib-connect and grunt-connect-rewrite

筅森魡賤 提交于 2019-12-06 01:31:19
问题 I'm trying to remove '.html' from files in my grunt web app. http://testing.com/one/ should return index.html from that folder, but if there is no trailing slash (http://testing.com/one) it should check for one.html The grunt-connect-rewrite seems to be working fine with examples that I can find, but removing file extensions from .html files seems to be killing me. The rule here is one similar to what i'd use in an .htaccess file. connect: { server: { options: { port: 9000, keepalive: true,

How to configure grunt-contrib-uglify to minify files while retaining directory structure

China☆狼群 提交于 2019-12-06 01:07:06
问题 In case I have multiple subdirectories under 'js' directory in the example Gruntfile posted below, and want to retain the subdirectories under a different destination directory, how do I do it? For e.g. module.exports = function (grunt) { grunt.initConfig({ // define source files and their destinations uglify: { files: { src: 'js/**/*.js', // source files mask dest: 'minJs/', // destination folder expand: true, // allow dynamic building flatten: true, // remove all unnecessary nesting } } });

Node WebKit and YouTube: chrome is not defined

空扰寡人 提交于 2019-12-06 00:27:08
I'm developing an app for Android , iOS , Mac OS and Windows using PhoneGap and Node-WebKit . This application has embedded youtube videos. These youtube videos are working fine in my Mobile app ( Android / iPhone ) using PhoneGap , but if I test it on my Mac (building the app using grunt node-webkit builder ) I get the following error: Uncaught ReferenceError: chrome is not defined www-embed-player.js:184 I tried to check that line and there is some code like: chrome.cast.requestSession(v(this.Lc,this) I'm embedding the videos using an iframe: <iframe src="http://www.youtube.com/embed

selenium webdriver manager update - npm

百般思念 提交于 2019-12-05 23:04:56
I tried to update the selenium webdriver using the "webdriver-manager", but i get the error as, Error: Got error Error: read ECONNRESET from https://selenium-release.storage.googleapis.com/2.48/selenium-server-standalone-2.48.2.jar Error: Got error Error: read ECONNRESET from https://selenium-release.storage.googleapis.com/2.48/selenium-server-standalone-2.48.2.jar fs.js:60 throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs ^ Error: EPERM: operation not permitted, unlink 'C:\Users\user_name\AppData\Roaming\npm\node_modules\protractor\selenium\selenium-server-standalone-2