requirejs-steps (en)
passos básicos para utilizar o require.js
-
- O RequireJS possui uma ferramenta de otimização para concatenar todos os arquivos javascript na árvore de dependências e minificar o arquivo resultante
-
Necessário ter o Git instalad
-
Necessário ter o node.js (v0.10.x ou superior) instalado com o npm (Node Package Manager)
-
Necessário ter o Gulp.js instalado como pacote global do node.
sudo npm install -g gulp -
Necessário ter o bower instalado como pacote global do node.
sudo npm install -g bower
Digite os comandos abaixo no terminal
git clone https://github.com/soudev/requirejs-steps.git
cd requirejs-steps
npm installExecuta o gulp
npm startFluxo de desenvolvimento
gulpnpm init
npm install \
lazypipe \
jshint-stylish \
browser-sync \
gulp \
gulp-load-plugins \
gulp-sequence \
gulp-util \
gulp-cached \
gulp-jshint \
gulp-lintspaces \
--save-dev
touch gulpfile.js
bower init
touch .bowerrc
bower install \
jquery \
requirejs \
mustache.js \
--save-
-
[GitHub] janl / mustache.js - Minimal templating with {{mustaches}} in JavaScript
-
Tutorial: HTML Templates with Mustache.js | Christophe Coenraets
-
--
-
[GitHub] BrowserSync / browser-sync - Keep multiple browsers & devices in sync when building websites.
-
[GitHub] OverZealous / lazypipe - Lazily create a pipeline out of reusable components. Useful for gulp.
-
[GitHub] gulpjs / gulp - The streaming build system
-
[GitHub] jackfranklin / gulp-load-plugins - Automatically load in gulp plugins
-
[GitHub] gulpjs / gulp-util - Utilities for gulp plugins
-
[GitHub] wearefractal / gulp-cached - A simple in-memory file cache for gulp
-
[GitHub] spalger / gulp-jshint - JSHint plugin for gulp
- [GitHub] sindresorhus / jshint-stylish - Stylish reporter for JSHint
-
[GitHub] ck86 / gulp-lintspaces - A Gulp plugin for lintspaces
-
[GitHub] teambition / gulp-sequence - Run a series of gulp tasks in order