A small tool that you might use in your work, and record it here. The features you can implement are:
Local HTTP Server
Page real-time Refresh
Can simulate AJAX requests
The first step is to create a new Package.json file. Used Gulp, Gulp-webserver, Gulp-livereload.The contents of Package.json are as follows:{ "name": "LocalServer", "versi
The previous article (http://www.cnblogs.com/xiaoningz/p/7122633.html) uses grunt-protractor-coverage as the coverage test plug-in, if the project management tool is just grunt, That is perfect, but some projects are using Gulp to do management tools, that maintenance of two sets of management tools is a bit of resources wasted, just gulp also has a matching protractor e2e test coverage plug-in, this articl
") .V1.0.0-beta: Building a front-end resource with Gulp+webpackThere are always ways to solve the problem, but it's always awkward and uncomfortable to write, which leads us to think about whether Webpack really works for our project. After a discussion, we finally decided to try to build it in a gulp+webpack way.
Using Webpack to construct JavaScript resources, it is convenient to use the idea of
Install Gulp under Mac System, then execute Gulp report as following error:-bash:gulp:command not foundThe backtracking installation process found the following problems1. Execute NPM Root:Applications/xampp/xamppfiles/htdocs/gulp/node_modulesThe above path indicates that NPM is only installed on a local directory and needs to change the NPM directory by executin
This is a simple tool that is very easy to get started and has a variety of functions.For example, the entire Web site packaging down, see the JS code is always confusing, this is similar to the gulp of the tool is encrypted, and many other features are not discussed here. The first is the installation of the gulp.The installation of Gulp first requires a server, where node. js and Git Bash are installed.
Gulp is a NODEJS-based automated task tool, similar to Ant in Java, combined with related plug-ins can be easily completed javascript/coffee/sass/less/html/image/css and other files such as testing, inspection, merging, compression, formatting, The browser automatically refreshes, deploys the file generation, and listens for files that repeat the specified steps after the change. Good use of the Nodejs stream and pipe, the first level of output direct
First, the choice of toolsCSS preprocessing language lessBuild Tool Gulp (node-based environment)Gulp Plugin:gulp-connect--is mainly used to run a webserverNPM Install--save-dev Gulp-connectPlugin Description: Https://www.npmjs.com/package/gulp-connectgulp.spritesmith--Sprite ChartNPM Install Gulp.spritesmith--save-dev
Because my project team has been using gulp to build tools, and I just in the environment of the previous set up each run Gulp Packjs to package JS, the inside of the things completely unknown, just recently some time I want to learn from the gulp how to use to build a front-end project, This will also have a deep understanding of the build tool.First of all, wha
http://www.w3ctech.com/topic/134 (This article has a lot of errors) http://markpop.github.io/2014/09/17/Gulp%E5%85%A5%E9%97%A8%E6%95%99% e7%a8%8b/node init build package file NPM install-g Gulp Install Gulp command line tool $ NPM Install Gulp--save-dev installation in Project Gulp
First of all, do not say nonsense, its introduction and the author does not say more, online 100 degrees a lot;I'm just here to write about my 2 days of seajs understanding and climb over the pit, and the realization of a small demo (purely to achieve, master please detour);first, Environmental tools and installation1, first, must first explain, this demo is based on Nodejs environment development, so to install Nodejs (address: https://nodejs.org/en/);2, Next install
Objective:In the process of doing pure static page development, inevitably encounter some embarrassing problems. For example: The entire code has 50 pages, 40 of which have the same top and bottom modules. So the same two pieces of code we copied 40 times (the most uncomfortable way). Then the problem is solved. Then, the product manager saw a few times and suddenly said that the top of a block need to change the design ... Suddenly feel good embarrassed ~ ~ (Heart is steeds ~), then? Then look
Gulp IntroductionGulp is a NODEJS-based automatic task runner that automates the testing, checking, merging, compressing, formatting, automatic browser refresh, and deployment file generation of JAVASCRIPT/COFFEE/SASS/LESS/HTML/IMAGE/CSS and other files. And listen for files that repeat the specified steps after the change. In the implementation, gulp borrowed from the UNIX operating system pipeline (pipe)
has been using grunt, the total sense of Grunt parameter configuration method is very cumbersome, not a clearer flow, coupled with their own gulp flow operations more interested in the decision to go to gulp.
Believe that the front-end ER in the release of their own code, if not using some of the front-end building tools, for frequent online projects, their own manual compression and packaging to replace
With the development of front-end technology, the mv* framework has sprung up-and many front-end building tools have been sought after.Today, let's say Webpack + Gulp to achieve the front-end engineering posture Bar (self-feeling this posture is not good enough, you have a better posture to tell!) )What is Webpack? Https://github.com/webpack Webpack is a module loader, in Webpack, all the resources are used as modules (JS, CSS, pictures, etc.). corre
1. How to WriteGrunt use the idea of configuration to write packaging scripts, everything is configured, so there will be more configuration items, such as option,src,dest and so on. and different plug-ins may have their own extension fields, resulting in increased cognitive costs, when used to understand the various plug-in configuration rules.Gulp is the code to write the packaging script, and the code in a flow-style, only abstract out the gulp. sr
The so-called engineering, is the disorderly, complex operations organized, the use of tools to simplify, standardize the process, so as to achieve project construction, development, maintenance of the integration process.
As far as the front end is concerned, the more popular project building tools are now yoeman,grunt,gulp,bower. This article will describe how to use yoeman,grunt/gulp,bower to create a f
write in front
Http://jafeney.com/2016/03/06/2016-03-06-gulp/gulp used it for a while, and several of the company's projects were built with automation. But for this simple and crude tool, I often love and fear. What do you mean. Daniel wrote the gulp task I understand, but also can leaf out apply to their own projects, but if you leave Doc, let me write myself
How to compile sass Gulp is an automated tool that frontend developers can use to process common tasks:
1. Set up a web Server
2. automatically reload the browser when saving the file
3. Use preprocessors such as Sass and LESS
4. Optimize resources, such as compressing CSS, JavaScript, and images
Of course, Gulp can do more than that. If you are crazy enough, you can even use it to build a Static Pag
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.