Search results for 2014 03 17 creating modular view components with react and grunt

Building a JavaScript Library with Grunt.js

by Brian Rinaldi

…{ options: { trailing: true, eqeqeq: true }, target: { src: [‘src/**/*.js’, ‘test/**/*.js’] } } }); grunt.loadNpmTasks(‘grunt-contrib-jshint’); grunt.loadNpmTasks(‘grunt-contrib-concat’); grunt.loadNpmTasks(‘grunt-contrib-uglify’); grunt.loadNpmTasks(‘grunt-contrib-copy’); grunt.loadNpmTasks(‘grunt-contrib-qunit’); grunt.registerTask(‘default’, [‘jshint’, ‘concat’, ‘uglify’, ‘copy’, ‘qunit’]); }; Conclusion Grunt.js…

Creating Modular View Components with React and Grunt

by Simon Smith

tasks: [‘browserify’] } }, browserify: { options: { transform: [ require(‘gruntreact‘).browserify ] }, client: { src: [‘react_components/**/*.jsx’], dest: ‘scripts/app.built.js’ } } }); grunt.loadNpmTasks(‘grunt-browserify’); grunt.loadNpmTasks(‘grunt-contrib-watch’); grunt.registerTask(‘default’, [ ‘browserify’ ]); }; The…

Automating Complex Workflows with Grunt Custom Tasks

by Ben Farrell

at how to run an existing Grunt task we’ve grabbed from npm or GitHub. In a Grunt.js file, we will typically Load the task. For example: grunt.loadNpmTasks(‘grunt-contrib-copy’); Register the task:…

Building Your First Grunt Plugin

by Brian Rinaldi

…should be cloned manually: git clone https://github.com/gruntjs/grunt-init-gruntplugin.git ~/.grunt-init/gruntplugin Next, execute grunt-init in the folder where you would like to create your plugin: grunt-init gruntplugin The scaffolder will ask you plenty…

Getting started with Redux using the Mullet Stack

mm by Weyland Joyner

…{ Component } from ‘react‘; import { Provider } from ‘react-redux’; import ReactDOM from ‘react-dom’; import store from ‘./configureStore’; import Main from ‘./components/Main’; class Index extends Component { render() {…

Managing Bower Components with Grunt

by Simon Smith

…concat: { angular: { files: { ‘scripts/vendor/angular/angular.js’: [‘bowercomponents/angular/angular.js’] } }, jquery: { files: { ‘scripts/vendor/jquery/jquery.js’: [‘bowercomponents/jquery/jquery.js’] } }, react: { files: { ‘scripts/vendor/react/react.js’: [‘bower_components/react/react.js’] } } } I like the…

Soma.js – Your Way Out of Chaotic JavaScript

by Brian Rinaldi

…the full soma.js documentation for more information on mediators. The Clock Views Three types of clock views are available in the application: Analog view (clock.AnalogView); DigitalView (clock.DigitalView); PolarView (clock.PolarView); As…

Ember Components – Reusable Building Blocks For Your Application

by Brian Rinaldi

components. Ember components share more than a similar name with Web Components, they aim to adhere as closely to the W3C Web Component spec as possible. In this article, I’ll…

First Look: Getting Started with Facebook’s ReactJS Library

by Mike Hostetler

but in return gives you an instrument for creating fast and easily extended web-applications. You can find another articles on various topics from this author here. http://facebook.github.io/react/docs/why-react.html http://davidwalsh.name/event-delegate/ http://facebook.github.io/react/ http://code.tutsplus.com/tutorials/intro-to-the-react-framework–net-35660…

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

by Nicolas Bevacqua

as many packages exist to accommodate for those tasks, such as grunt-git, grunt-rsync, or grunt-ec2, to name a few. So where does Grunt fall short? It may get too verbose…