Search results for introduction to npm Scripts fewliveasync.js

A JavaScript Build System Shootout: Grunt vs. Gulp vs. NPM

by Nicolas Bevacqua

…itself. Defining tasks for npm is as easy as adding properties to a scripts object in your package manifest. The name of the property will be used as the task…

Introduction to npm

by Brian Rinaldi

…the reader: make a new test project; install your newly published module from npm, and then write or modify the existing run.js to test it. Homework What’s that look? You…

Building a JavaScript Library with Grunt.js

by Brian Rinaldi

…to use Grunt.js to build JavaScript library. Grunt.js requires Node.js and npm to run, so first sections explain what those are, how to install them and how to use them….

Choosing Between npm, Bower and component

by Brian Rinaldi

…context of each project, but at least we’re not downloading js/css manually through the browser, using wget or writing bash scripts to download/update our client-side dependencies. We have better options….

Writing a Command Line Utility using Node

by Brian Rinaldi

…other scripts. In the case of our calculator script, this isn’t needed as it is unlikely our script will be used as part of other scripts. We can delete this….

Building your first Node.js module

by Jonathan Fielding

…Using Homebrew (Mac only) – brew install node Downloading the installer from http://nodejs.org Having installed Node.js we will now configure NPM with our details so that it knows who we…

Roll Your Own Asset Pipeline with Gulp

by Brian Rinaldi

…Then add this script task to your gulpfile.js: var gulp = require(‘gulp’); var less = require(‘gulp-less’); var concat = require(‘gulp-concat’); gulp.task(‘less’, function() { return gulp.src(‘css/app.less’) .pipe(less()) .pipe(gulp.dest(‘dist’)); }); gulp.task(‘scripts‘, function()…

Towards a More Modular Future for JavaScript Libraries

by Brian Rinaldi

…let’s put more value in there! Related Resources microjs – a listing of small JS libraries npm – the Node Package Manager registry bower – the Bower registry require.js –…

ECMAScript 6: Jump in, the water is warm!

by Mark Volkmann

…next line, Traceur looks for todolist.js // in the build directory instead of the scripts directory. import TodoList from ‘./todolist’; var app = angular.module(‘Todo’, []); var todoList = new TodoList();…

Using Bootstrap 3 as a Web Development Workflow Tool

by Brian Rinaldi

…stripBanners: false }, bootstrap: { src: [ ‘js/transition.js‘, // … Other Bootstrap scripts … //New script name goes here … ‘js/my-awesome-script.js‘ //Example ], dest: ‘dist/js/<%= pkg.name %>.js‘ } } To…