1.

Record Nr.

UNINA9910300644703321

Autore

Ambler Tim

Titolo

JavaScript Frameworks for Modern Web Dev [[electronic resource] /] / by Tim Ambler, Nicholas Cloud

Pubbl/distr/stampa

Berkeley, CA : , : Apress : , : Imprint : Apress, , 2015

ISBN

1-4842-0662-2

Edizione

[1st ed. 2015.]

Descrizione fisica

1 online resource (502 p.)

Collana

Expert's Voice in Web Development

Disciplina

004

Soggetti

Computer programming

Programming languages (Electronic computers)

Web Development

Programming Languages, Compilers, Interpreters

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Includes index.

Nota di contenuto

Contents at a Glance; Contents; About the Authors; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: Bower;  Getting Started;  Configuring Bower;  The Manifest;  Creating a New Manifest;  Finding, Adding, and Removing Bower Packages;  Finding Packages ;  Adding Packages ; Development Dependencies;  Removing Packages;  Semantic Versioning;  Managing the Dependency Chain;  Creating Bower Packages;  Choose a Valid Name;  Use Semver Git Tags ;  Publish Your Package to the Registry;  Summary; Chapter 2: Grunt;  Installing Grunt ;  How Grunt Works;  Gruntfile.js ;  Tasks

Plugins  Configuration ;  Adding Grunt to Your Project;  Maintaining a Sane Grunt Structure;  Working with Tasks;  Managing Configuration ;  Task Descriptions ;  Asynchronous Tasks ;  Task Dependencies ;  Multi- Tasks ;  Multi-Task Options ;  Configuration Templates ;  Command-Line Options ;  Providing Feedback ;  Handling Errors ;  Interacting with the File System;  Source-Destination Mappings ;  Watching for File Changes; Automated JavaScript Linting ; Automated Sass Stylesheet Compilation ; Automated Unit Testing ;  Creating Plugins;  Getting Started;  Creating the Task

Publishing to npm  Summary;  Related Resources; Chapter 3: Yeoman;  Installing Yeoman ;  Creating Your First Project;  Subcommands;  Creating Your First Generator;  Yeoman Generators are Node Modules ;  



Sub-Generators ; Lodash Templates ;  Defining Secondary Commands ;  Composability ;  Summary;  Related Resources; Chapter 4: PM2;  Installation ;  Working with Processes;  Recovering from Errors ;  Responding to File Changes ;  Monitoring Logs;  Monitoring Resource Usage;  Monitoring Local Resources ;  Monitoring Remote Resources ;  Advanced Process Management;  JSON Application Declarations

Load-Balancing Across Multiple Processors Zero-Downtime Deployments;  Summary;  Related Resources; Chapter 5: RequireJS;  Running the Examples;  Working with RequireJS;  Installation;  Configuration;  Application Modules and Dependencies;  Paths and Aliases; Loading Plugins with Proxy Modules;  Shims; Shim Dependencies;  Loader Plugins; text. js ; Page Load ;  i18n ;  Cache Busting;  RequireJS Optimizer;  Configuring r. js ;  Running the r.js Command ;  Summary; Chapter 6: Browserify;  The AMD API vs. CommonJS ;  Installing Browserify;  Creating Your First Bundle

Visualizing the Dependency Tree Creating New Bundles As Changes Occur;  Watching for File Changes with Grunt ;  Watching for File Changes with Watchify;  Using Multiple Bundles;  The Node Way;  Module Resolution and the NODE_PATH Environment Variable; Taking Advantage of NODE_PATH Within Browserify;  Dependency Management ;  Defining Browser-Specific Modules;  Extending Browserify with Transforms;  brfs;  folderify ;  bulkify ;  Browserify- Shim ;  Summary;  Related Resources; Chapter 7: Knockout;  Views, Models, and View Models;  The Recipe List;  Recipe Details

Binding View Models to the DOM

Sommario/riassunto

JavaScript Frameworks for Modern Web Dev is your guide to the wild, vast, and untamed frontier that is JavaScript development. The JavaScript tooling landscape has grown and matured drastically in the past several years. This book will serve as an introduction to both new and well established libraries, frameworks, and utilities that have gained popular traction and support from seasoned developers. It covers tools applicable to the entire development stack, both client- and server-side. While no single book can possibly cover every JavaScript library of value, JavaScript Frameworks for Modern Web Dev focuses on incredibly useful libraries and frameworks that production software uses. You will be treated to detailed analyses and sample code for tools that manage dependencies, structure code in a modular fashion, automate repetitive build tasks, create specialized servers, structure client side applications, facilitate horizontal scaling, and interacting with disparate data stores. The libraries and frameworks covered include Bower, Grunt, Yeoman, PM2, RequireJS, Browserify, Knockout, AngularJS, Kraken, Mach, Mongoose, Knex, Bookshelf, Faye, Q, Async.js, Underscore, and Lodash. Written from first-hand experience, you will benefit from the glorious victories and innumerable failures of two experienced professionals, gain quick insight into hurdles that aren't always explicitly mentioned in API documentation or Readmes, and quickly learn how to use JavaScript frameworks and libraries like a Pro. Enrich your development skills with JavaScript Frameworks for Modern Web Dev today.