gulp

Modifying destination and filename of gulp-svg-sprite

房东的猫 提交于 2019-12-11 03:32:07
问题 I need to change the directory that the sprite files are compiled to. I'm just trying to wrap my head around gulp-svg-sprite for the first time. The goal is to have the scss file included in my sass directory, and then compiled with the rest of my partials - this part works fine. However, the generated svg directory is also put into the sass directory, so I end up with: - theme -- sass ---- _sprites.scss ---- svg ------ sprite.css-58jkdf8js.svg -- css ---- styles.css When I actually need this

How does Ionic's default gulpfile relate to its cli tool?

穿精又带淫゛_ 提交于 2019-12-11 03:26:57
问题 Currently, I am running the app emulation using the Chrome browser with ionic serve . I also see that there is a gulpfile.js associated with the framework. What is the relationship between ionic and and gulp? 回答1: Have a look at: https://github.com/driftyco/ionic-cli#advanced-serve-options (see "Gulp Integrations"). You can add a gulpStartupTasks property in the ionic.project file located in your project root. They example the above linked documentation gives is: { "name": "SmoothRiders",

Jhipster - 404 error on app.js when running in prod profile

爷,独闯天下 提交于 2019-12-11 03:25:03
问题 I have a problem running my jhipster application in prod. After the deployment of prod war file the site is unable to load due to a 404 not found on /app/app.js However vendor js and css are correctly injected. Not sure what's causing this issue. Error message : Failed to load resource: the server responded with a status of 404 (Not Found) generated.js:19530 Uncaught TypeError: Cannot read property 'module' of undefined(…) http://localhost:9080/app/app.js Failed to load resource: the server

Browserify uglify via node script or command line?

一世执手 提交于 2019-12-11 03:17:49
问题 It seems in many places the professionals are building their projects using a node.js script that involves either gulp or grunt. What I can't figure out though, is why the script method is preferrable? When switching from the command line version to the script version, you add other packages in: i.e. gulp-uglify, vinyl-source-stream and vinyl-buffer. Wouldn't it be safer long-term-wise to use a method with the least amount of dependencies? Take for example the following command line method

How to bundle typescript files for the browser user gulp and tsproject?

我的梦境 提交于 2019-12-11 02:39:03
问题 I'm kinda new to front end development, being a long time backend C# and Java developer, and I'm trying to come to grips with how to build front end applications. I would like to build an application using typescript and use gulp for my build pipeline to transpile, bundle and minify my code to a single JavaScript file. For this purpose, I have been looking at the node module tsproject which, as far as I can understand, is supposed to do exactly what I want. Except, I can't get it to do what I

Angular Jasmine tests fail with minified source

自古美人都是妖i 提交于 2019-12-11 02:26:10
问题 I'll try to approach this question with a little bit of abstraction, since going into the code details would be useless. I have an angular module that is split in 2 source files, say source1.js and source2.js . Then i have 3 unit test files which are designed to test 3 angular service/factory/provider. The project layout is as follows: root | -dist | -source.min.js -src | -source1.js -source2.js -tests | -unit | -service1.js -service2.js -service3.js All the tests, run with karma and jasmine,

gulp command not recognized in Jenkins

狂风中的少年 提交于 2019-12-11 02:15:51
问题 I've installed gulp and it works well in my cmd. So when I'm trying the gulp commands they work well. So I'm going to this path in my cmd: C:\Program Files (x86)\Jenkins\workspace\project1 And I can run gulp (its a github project on my Jenkins). But when I'm working on my project1 in Jenkins itself (localhost), the gulp commands aren't recognized. Jenkins doesn't know gulp. How do I have to integrate gulp in Jenkins? So my Jenkins will know its commands. I read something about node.js and its

gulp is not calling the callback — it just hangs at end of task

前提是你 提交于 2019-12-11 02:12:04
问题 callback is firing, but task just hangs on Finished 'hooks:pull' after 2.04 s gulp.task('hooks:pull', function(callback){ var files = [ { remote: '~/deploy/test.example.com/hooks/post-receive', local: './bin/post-receive.test' }, { remote: '~/deploy/staging.example.com/hooks/post-receive', local: './bin/post-receive.staging' }, { remote: '~/deploy/example.com/hooks/post-receive', local: './bin/post-receive.production' } ]; async.each(files, function(file, cb) { var opts = { host: 'example.com

Gulp CSS minify & gzip + django-compressor not working

我只是一个虾纸丫 提交于 2019-12-11 02:02:46
问题 I am trying to minify and compress my css (and later js) and serve it. To this end I first minify and compress it with gulp and then serve the gzipped files with django-compressor (so only http request will be made). I pretty much followed this guide: http://www.revsys.com/blog/2014/oct/21/ultimate-front-end-development-setup/ Using directly the gzipped files works good, however when I try to group them with django-compressor I get the following error: UncompressableFileError at /

SPFx Webpart - node_modules/@types/ [prop types] and [react] index.d.ts: loads of “error TS1005” on gulp build

我的未来我决定 提交于 2019-12-11 00:53:38
问题 So Im building a spfx webpart of which one feature is to display link previews. I used this library for the task. I had to change the version of the package "styled-components" and update my "react"(16.4.18) and "react-dom"(16.0.9) in order for it to work. After making these changes and running gulp build I receive the follwing List of errors: [10:21:13] [tsc] typescript version: 2.4.2 [10:21:17] Error - [tsc] node_modules/@types/prop-types/index.d.ts(27,38): error TS1005: '=' expected. [10