gulp

Why doesn't this problemMatcher in VS code work?

你说的曾经没有我的故事 提交于 2019-12-23 10:18:11
问题 Why doesnt my problemMatcher work? I'm pretty sure about the regex, but it doesn't report any problems, even there are some on stdout... // the matcher "problemMatcher": { "owner": "typescript", "fileLocation": ["relative", "${workspaceRoot}"], "pattern": { "regexp": "^TypeScript (warning|error): (.*)\\((\\d+),(\\d+)\\): (.*)$", "severity": 1, "file": 2, "line": 3, "column": 4, "message": 5 } } //the browserify/tsify pipeline browserify().add('main.ts') .plugin(tsify, { noImplicitAny: false,

How to unzip multiple files in the same folder with Gulp

女生的网名这么多〃 提交于 2019-12-23 10:16:02
问题 I'd like to unzip multiple zip files that are inside a single folder. Every unzipped file will be unpacked into a folder with the same name as the original zip file and added as a sub folder to the original folder containing the original zips. Something like this: parent(folder) -a.zip -b.zip -c.zip would become: parent(folder) -a(folder) --a.zip contents here -b(folder) --b.zip contents here -c(folder) --c.zip contents here I believe the code i have so far is a nice try but seems like it's

Migrating ASP.NET MVC 5 bundling “versions” to MVC 6

。_饼干妹妹 提交于 2019-12-23 09:31:59
问题 The bundling feature is excluded from MVC 6 and the suggested method is to do bundling using gulp tasks. Using bundling we used to get a random string at the end of the included css/javascript file url(s). This string was very important because once you changed anything in your css/javascript then a new string would be generated which would force browsers to load the new version(s) of the file(s). So if you had 3 css files they would be bundled into one and they would look like this: <link

Redux NODE_ENV errors with Gulp/Browserify

时光总嘲笑我的痴心妄想 提交于 2019-12-23 09:28:05
问题 I'm getting this error message on a React/Redux app that is minified and packaged with Browserify and Gulp and deployed to Heroku. bundle.js:39 You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. But it seems the build step is being done in NODE_ENV = 'production' . I've a task that set the env variables like so gulp.task('apply-prod-environment', function() { return process.env.NODE_ENV = 'production

gulp-connect and connect.reload

邮差的信 提交于 2019-12-23 08:04:49
问题 I am trying to set up a simple server to test out some d3.js stuff. I'm following a screencast on tagtree.tv. My code matches his, but I cannot get my index.html to reload when I make a change to my JS or SASS files. I'm new to gulp so as far as I can tell things look OK, but that's based upon my assumption that a call to connect.reload() will reload whatever browser is looking at its content. It should be noted that the livereload JS is being inserted into my index.html file. My directory

Gulp hangs after “Finishing”

北战南征 提交于 2019-12-23 07:49:07
问题 I'm new to node and developing in any sort of "proper" environment. I've installed gulp for my current project, along with mocha and a few other modules. Here is my gulpfile.js: var gulp = require('gulp'); var mocha = require('gulp-mocha'); var eslint = require('gulp-eslint'); gulp.task('lint', function () { return gulp.src(['js/**/*.js']) // eslint() attaches the lint output to the eslint property // of the file object so it can be used by other modules. .pipe(eslint()) // eslint.format()

Angular2 - Importing 3rd party javascript in SystemJS

余生颓废 提交于 2019-12-23 07:46:21
问题 fileSaver not getting mapped for some reason. angular2-jwt is working fine. I did npm install file-saver -save to get file-saver then referenced it as follows (I have a gulp task to move the js file to libs directory and I see the file there) in index.htmlI have included the script in src and system.config <script src="libs/file-saver/FileSaver.js"></script> <!-- 2. Configure SystemJS --> <script> System.config({ packages: { app: { format: 'register', defaultExtension: 'js' } } , map: {

VS2017 Task Runner Explorer No Tasks Found

倾然丶 夕夏残阳落幕 提交于 2019-12-23 07:37:00
问题 I'm trying to set up gulp in an MVC Core project within VS 2017. I have what I believe to be a valid gulpfile.js: var gulp = require('gulp'); var rimraf = require('rimraf'); var concat = require('gulp-concat'); var cssmin = require('gulp-cssmin'); var uglify = require( 'gulp-uglify' ); var paths = { webroot: './wwwroot/', }; paths.js = paths.webroot + 'js/**/*.js'; paths.minJs = paths.webroot + 'js/**/*.min.js'; paths.css = paths.webroot + 'css/**/*.css'; paths.minCss = paths.webroot + 'css/*

How to order injected files using Gulp?

 ̄綄美尐妖づ 提交于 2019-12-23 07:07:33
问题 My Angular application has the following structure - src/app/main/ | -main.js -main.controller.js -index.html I'm using Gulp. After the build completes, the *.js files are injected in the wrong order in index.html . The file main.js depends on main.controller.js , so main.controller.js has to be injected before main.js . <!-- build:js({.tmp/serve,.tmp/partials,src}) scripts/app.js --> <!-- inject:js --> <script src="app/main/main.js"></script> <script src="app/main/main.controller.js"><

why am i getting this error? dest.on is not a function - using gulp-file-include

人盡茶涼 提交于 2019-12-23 06:46:07
问题 I am getting an Error of TypeError: dest.on is not a function . When running this task, I can't figure out what could be wrong. var fileinclude = require('gulp-file-include'); var rename = require('gulp-rename'); var paths = { templates : './templates/' } //file include: grab partials from templates and render out html files gulp.task('fileinclude', function() { return gulp.src(paths.templates + '*.tpl.html') .pipe(fileinclude) .pipe(rename({ extname: "" })) .pipe(rename({ extname: ".html" })