Learning Gulp## LEARNING gulp Free unaffiliated eBook created from Stack Overflow contributors. ## Table of Contents About ..... 1 Chapter 1: Getting started with gulp ..... 2 Remarks ..... 2 Versions .... .. 2 1. Install Node.js and NPM: ..... 2 2. Install gulp globally: ..... 2 3. Initialize your project directory: ..... 3 4. Install gulp in your project devDependencies: ..... 3 5. Create a gulpfile gulpfile.js at the root of your project: ..... 3 6. Run gulp: ..... 3 Task dependency ..... 3 Concat js file in sub folder using gulp ..... 4 gulp CLI docs ..... 4 Flags ..... 4 Task specific flags0 码力 | 45 页 | 977.19 KB | 2 年前3
Gulp 入门指南## Gulp 入门指南 ## 关于 来源:https://github.com/nimojs/gulp-book gulp 是基于 node 实现 Web 前端自动化开发的工具,利用它能够极大的提高开发效率。 在 Web 前端开发工作中有很多 “重复工作”,比如压缩CSS/JS文件。而这些工作都是有规律的。找到这些规律,并编写 gulp 配置代码,让 gulp 自动执行这些 “重复工作”。 “重复工作”。 ## 将规律转换为 gulp 代码 现有目录结构如下: ___js/ ___a.js ## 规律 1. 找到 js/目录下的所有 .js 文件 2. 压缩这些 js 文件 3. 将压缩后的代码另存在 dist/js/ 目录下 ## 编写 gulp 代码 // 压缩 JavaScript 文件 gulp.task('script', function() { // 1. 找到 gulp.src('js/*.*.js') // 2. 压缩 .pipe(uglify()) // 3. 另存 .pipe(gulp.dest('dist/js')) }); ## 代码执行结果 代码执行后文件结构 
## 目录 介绍 0 快速上手 1 5分钟了解TypeScript 1.1 ASP.NET Core 1.2 ASP.NET 4 1.3 Gulp 1.4 Knockout.js 1.5 React与webpack 1.6 React 1.7 Angular 2 1.8 从JavaScript迁移到TypeScript ,PRs Welcome!!! 在相关链接的末尾可以找到本手册的Github地址。 ## 目录 快速上手 5分钟了解TypeScript ASP.NET Core ASP.NET 4 Gulp Knockout.js React与webpack React Angular 2 从JavaScript迁移到TypeScript - 新增功能 TypeScript 2.4 - TypeScript语言规范 ● 本手册中文版Github地址 ## Table of Contents • ASP.NET Core • ASP.NET 4 • Gulp • Knockout.js • React与webpack • Angular 2 从JavaScript迁移到TypeScript 让我们使用TypeScript来创建一个简单的Web应用。0 码力 | 557 页 | 7.48 MB | 2 年前3
TypeScript 4.0 使用手册
## 目录 致谢 README Introduction 快速上手 5分钟了解TypeScript ASP.NET Core ASP.NET 4 Gulp Knockout.js React与webpack React Angular 2 从JavaScript迁移到TypeScript 手册 基础类型 Reward Code ## $ ^{2} $ 目录 - 快速上手 - 5分钟了解TypeScript - ASP.NET Core - ASP.NET 4 - Gulp - Knockout.js - React与webpack - React - Angular 2 - 从JavaScript迁移到TypeScript • Introduction - Introduction - 快速上手 - 5分钟了解TypeScript - ASP.NET Core - ASP.NET 4 - Gulp - Knockout.js - React与webpack - React - Angular 2 - 从JavaScript迁移到TypeScript - 手册0 码力 | 683 页 | 6.27 MB | 2 年前3
前端开发者指南(2017)H5 混合式移动开发在多数情况下不具备足够优势。 - React Native 和 NativeScript 开始替代 H5 混合式 webview 开发。 - 大多数人舍弃 Gulp 转而使用 NPM 脚本,但 Gulp 仍受欢迎。 • SASS 工具继续受到欢迎,与此同时 PostCSS(+ CSSNext)开始发展。 - 大多数开发者都开始对 HTML、CSS 和 JavaScript(ESlint 自己在上述领域是专家的人非常稀少,甚至少的出奇。 不过,考虑到 JavaScript 已经渗透到了整套技术栈的所有层面(例如:React, node.js, express, couchDB, gulp.js 等),找到一个会前端开发和后端开发的 JavaScript 开发者并没有那么难。通常,这些全栈开发人员只需要关心 JavaScript —— 不像先前那样荒谬(还要关心视觉设计、交互设计和 SystemJS: - 用 SystemJS 和 jspm 编写现代的,模块化的 JavaScript 代码 [视频][付费] ## 注释: 开发者使用类似于 Gulp 之类的 JS 模块化打包工具来帮助开发并不鲜见。然而,许多的 Gulp 插件本质上仅仅是利用了 Webpack, Rollup, 或者 SystemJS 而已。 ## 关于包管理工具的学习 包管理工具或者包管理系统,是一些以一致0 码力 | 164 页 | 6.43 MB | 2 年前3
Laravel 5.0 Documentation
Extension vii. Elixir i. Introduction ii. Installation & Setup iii. Usage iv. Gulp v. Extensions viii. Encryption i. Introduction ii. Basic Usage ix. Errors & assets. If you've ever been intimidated by learning Grunt or Gulp, fear no more. Elixir makes it a cinch to get started using Gulp to compile your Less, Sass, and CoffeeScript. It can even run your quickly. Homestead includes Nginx 1.6, PHP 5.6, MySQL, Postgres, Redis, Memcached, Beanstalk, Node, Gulp, Grunt, & Bower. Homestead includes a simple Homestead.yaml configuration file for managing multiple0 码力 | 242 页 | 1.44 MB | 2 年前3
django cms 3.7.x Documentation[http://eslint.org]. In order to run the linter you need to do this: gulp lint Or you can also run the watcher by just running gulp. Process This is how you fix a bug or add a feature: 1. fork [https://github [https://github.com/creationix/nvm] to get the correct version of Node. 2. gulp - see Gulp’s Getting Started notes [https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md] 3. Local dependencies npm install org/] implementation of Sass compiler through gulp [http://gulpjs.com/]. In order to compile the stylesheets you need to run this command from the repo root: gulp sass While developing it is also possible0 码力 | 409 页 | 1.67 MB | 1 年前3
django cms 3.4.x Documentation[http://eslint.org]. In order to run the linter you need to do this: gulp lint Or you can also run the watcher by just running gulp. ## Process This is how you fix a bug or add a feature: 1. fork [https://github [https://github.com/creationix/npm] to get the correct version of Node. 2. gulp - see Gulp’s Getting Started notes [https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md] 3. Local dependencies npm org/] implementation of Sass compiler through gulp [http://gulpjs.com/]. In order to compile the stylesheets you need to run this command from the repo root: gulp sass While developing it is also possible0 码力 | 395 页 | 1.64 MB | 1 年前3
共 324 条
- 1
- 2
- 3
- 4
- 5
- 6
- 33
相关搜索词
GulpNode.js任务运行器自动化配置文件gulpfile.jsgulp-uglifygulp-imagemingulp-sourcemapsDjango CMS版本更新Sassgulp.js管理命令重构BabelJSpresetplugintranspilingpolyfillsTypeScript基础类型模块声明文件TypeScript 4.0编译速度优化可选链编辑器支持自动补全前端开发开发工具HTMLJavaScriptCSSLaravel 5.0升级指南ComposerEloquentMiddlewaredjango CMSrelease notesLTSapphookspluginsDjango CMS 3.4LTS版本新功能重大变化升级注意事项













