gulp

Gulp only compiles LESS the first time I run it. It still sees my changes but doesn't update the compiled CSS file

夙愿已清 提交于 2020-01-16 13:23:39
问题 I'm a little new with gulp. I have an old Wordpress theme which I'm trying to use gulp with to compile the LESS files. My structure is like this: -theme --library ---less ----style.less (all the imports all of the less files) ----brew (all the less files are in this folder) ---css ----style.css (this is the compiled css file) -gulp-dev --node_modules --gulpfile.js --package.json And here is my gulpfile: var gulp = require('gulp'); var less = require('gulp-less'); var browserSync = require(

/usr/bin/env: ‘node’: No such file or directory when running vscode task

▼魔方 西西 提交于 2020-01-16 03:40:26
问题 I have a basic task setup to build my TypeScript and Sass files. It looks like this: { "version": "2.0.0", "tasks": [ { "label": "Gulp Build", "group": "build", "command": "./node_modules/.bin/gulp", "type": "shell", "args": [ "build" ], "problemMatcher": [] } ] } When I press Ctrl+Shift+B to select a build task, I select the one above and in my terminal I get this: > Executing task: ./node_modules/.bin/gulp build < /usr/bin/env: ‘node’: No such file or directory The terminal process

How to configure karma and systemjs to run tests for angular ES6 transpiled by traceur into amd format ES5 modules

て烟熏妆下的殇ゞ 提交于 2020-01-15 07:27:08
问题 Ok, I have been pounding my head against the desk for far too long, it is time to ask for help. Maybe I am way off base, or I just cannot see the trees in the forest. Please help. I am trying to build an application using gulp, Angular 1.3+, ES6, traceur, SystemJS, es_module_loader and http-server. So far the app is looking good, it compiles and runs and hosts just fine from the compiled folder location, but I cannot get Karma to run a single test within my compiled project. Here is my

Is it necessary to rename .js files to invalidate cache?

谁说我不能喝 提交于 2020-01-15 03:59:06
问题 I want to invalidate cached app.js after every single release. Short question : Is it necessary to physically rename(by gulp-rev, for example) app.js to app-a23ds.js every time or is enough to add param with hash in html like app.js?_=<build number> Description : I was sure before that is enought to write something like app.js?_=<build number> in index.html to load new file instead of cahed. But when I'm investigate this question deeper I found a few of huge solutions for this case. Like gulp

Installation of gulp through node.js's npm breaks windows

我的梦境 提交于 2020-01-14 19:49:08
问题 I want to use gulp on my windows machine and it actually works pretty fine, unless I try to use the created files (like pushing to github or deleting). Then it breaks, because the filepaths are too long and it seems to be a fairly common problem. https://github.com/joyent/node/issues/6960#issuecomment-45569604 I understand that the problem arises through npm's nested directories, which extend the maximal char count for Windows directories, but in my understanding there is not any solution yet

Only include modules from Angular Material that I need

早过忘川 提交于 2020-01-14 12:53:08
问题 I'm using the module $mdDialog from Angular Material but I don't need the full library. Is it possible to only include the modules that I need in the project, and how can I do that? I have installed Angular Material with Bower and using Gulp in my project. 回答1: Soon Angular Material will turn into v1.1.0 as a major release. As an addition the material-tools repository will be announced . Material Tools allows developers to build a custom Angular Material build with the most necessary

Only include modules from Angular Material that I need

核能气质少年 提交于 2020-01-14 12:52:16
问题 I'm using the module $mdDialog from Angular Material but I don't need the full library. Is it possible to only include the modules that I need in the project, and how can I do that? I have installed Angular Material with Bower and using Gulp in my project. 回答1: Soon Angular Material will turn into v1.1.0 as a major release. As an addition the material-tools repository will be announced . Material Tools allows developers to build a custom Angular Material build with the most necessary

Only include modules from Angular Material that I need

試著忘記壹切 提交于 2020-01-14 12:52:09
问题 I'm using the module $mdDialog from Angular Material but I don't need the full library. Is it possible to only include the modules that I need in the project, and how can I do that? I have installed Angular Material with Bower and using Gulp in my project. 回答1: Soon Angular Material will turn into v1.1.0 as a major release. As an addition the material-tools repository will be announced . Material Tools allows developers to build a custom Angular Material build with the most necessary

Gulp 4 Split Tasks Across Multiple Files Using Gulp-Hub Fails Due to Missing Get Function

天大地大妈咪最大 提交于 2020-01-14 08:56:22
问题 Using Gulp 4 and the recipe for splitting my tasks into multiple files using gulp-hub throws this error just from attempting to load the task files. The task file is super simple just wanted to test everything was working. I found this reference on Undertaker on Github for the get function, but I really don't understand what they are trying to say, and it seems like gulp-hub is supposed to be doing the lifting. Anyone else run into this and know how to solve it? Gulp File 'use strict'; var

Jasmine/PhantomJs spec runner

泄露秘密 提交于 2020-01-14 08:50:30
问题 I cannot get my test to run using phantomJs. gulp task var jasminePhantomJs = require('gulp-jasmine2-phantomjs'); gulp.task('test', function() { return gulp.src('./SpecRunner.html') .pipe(jasminePhantomJs()); }); SpecRunner.html <script src="lib/jquery.min.js"></script> <script src="lib/lodash.min.js"></script> <script type="text/javascript" src="lib/jasmine-2.0.0/jasmine.js"></script> <script type="text/javascript" src="lib/jasmine-2.0.0/jasmine-html.js"></script> <script type="text