gruntjs

Problems Deploying Yeoman app to Heroku

瘦欲@ 提交于 2020-01-06 04:21:28
问题 I've been trying to deploy my AngularFullstack (node) app to Heroku. I created the app in the terminal with: yo angular-fullstack . Whenever I try to deploy to Heroku I get the following when I go to my deployed app: Application Error An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details. The logs are: 2015-07-24T06:57:35.184227+00:00 heroku[web.1]: State changed from up to

Problems Deploying Yeoman app to Heroku

落花浮王杯 提交于 2020-01-06 04:21:06
问题 I've been trying to deploy my AngularFullstack (node) app to Heroku. I created the app in the terminal with: yo angular-fullstack . Whenever I try to deploy to Heroku I get the following when I go to my deployed app: Application Error An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details. The logs are: 2015-07-24T06:57:35.184227+00:00 heroku[web.1]: State changed from up to

how to minify html with grunt htmlmin plugin?

走远了吗. 提交于 2020-01-06 02:34:29
问题 I have generated a angular app with yeoman and now trying to minify my html files with grunt + htmlmin. The htmlmin bit looks like this: htmlmin: { dist: { options: { collapseWhitespace: true, conservativeCollapse: true, collapseBooleanAttributes: true, removeCommentsFromCDATA: true }, files: [{ expand: true, cwd: '<%= yeoman.dist %>', src: ['*.html'], dest: '<%= yeoman.dist %>' }] } }, When I run this task then it responds that it has minified 2 files but I cant see them in the dist folder?

Cachebusting using grunt for multiple js files

流过昼夜 提交于 2020-01-05 08:34:11
问题 There are several questions on SO for grunt / cachebusting but I didn't find anything close enough to what I'm looking for. Hence, a new question.. Here is what I'm looking for. My Backbone/Marionette app's JS files are organized into module level folders. |- app |- modules |- module1 |- scripts |- models |- views |- templates |- module2 |- scripts |- models |- views |- templates |- index.html |- scripts |- app.js |- styles What I need is a way to concatenate / minify / uglify all of module1

forwarding grunt connect to different url

你。 提交于 2020-01-05 08:00:51
问题 I'm using grunt connect with livereload for my dev environment. I want to be able to call the production api which is under /server. To do that I need to direct any calls from http://localhost:9000/server to http://www.production-server.com/server This is good for me because sometimes I want to test against the production server when in dev mode. Here's my current connect configuration (Generated by Yeoman): connect: { options: { port: 9000, // Change this to '0.0.0.0' to access the server

Using Grunt to Replace Text in a File

早过忘川 提交于 2020-01-05 07:36:33
问题 I'm trying to get Grunt to replace a path reference and I'm not sure what I'm doing wrong. This looks like it should work. Essentially, I'm copying a Bootstrap file up a directory and changing the @import paths, so I'm just trying to replace 'bootstrap/' with the new destination path 'MY/NEW/DEST/PATH/bootstrap'. I don't want to use a module for something as straight forward as this, seems needless. Everything works but the replace. var destFilePath = path.join(basePath, file); // Does the

Node/Grunt - Autoprefixer - How to add configuration to my Gruntfile.js & how to check supported browsers?

六月ゝ 毕业季﹏ 提交于 2020-01-05 05:47:11
问题 I want to start using the CSS post-processor called autoprefixer (https://github.com/ai/autoprefixer). After a bit of juggling things around I actually got this working which is quite amazing to me since I am an absolute node, grunt and terminal beginner. In the autoprefixer documentation it says one can configure which browsers to support, as explanation this line of code is given: autoprefixer("last 1 version", "> 1%", "ie 8", "ie 7").compile(css); But where do I put this code? I tried to

assemble - Render a list of strings as Handlebars partial

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 15:26:23
问题 Using the assemble i actually stuck on a problem which i can't fix myself. I'm defining a bunch of widgets in the YAML front matter section and including an partial aside {{> aside}} . Until here everything works as expected! What i'm trying to do now, is to take the list widgets and rendering my partials within the aside template. But anyhow it does not work as expected. src/templates/layouts/layout-default.hbs --- layout: src/templates/layouts/layout-default.hbs widgets: - widget_link-list

Grunt compile all .less to .css in each directory

馋奶兔 提交于 2020-01-04 14:16:40
问题 So I have setup my site to use modules, in which each module has it's own .less file which needs to be compiled into .css. Folder Structure: /common/modules/{module-name}/style.less I need all the style.less files to be converted into style.css files in the same directory. For example: /common/modules/clock/style.less would need to be compiled to /common/modules/clock/style.css I don't want to have to add each of the modules individually to my grunt file, is there a way to do this dynamically

import mocha unit tests result in sonarqube

自作多情 提交于 2020-01-04 14:14:58
问题 I use mocha to get unit tests results and istanbul to get code coverage. I'm using grunt to run these tasks. It works fine. I'm also using grunt-sonar-runner plugin to import these result in sonar. Currently code coverage is imported but that is not the case for unit tests results. During the build, sonar report me this : 20:40:19.410 WARN - Test result will not be saved for test class "Account Controllers User Controller forgot password", because SonarQube associated resource has not been