a simple Angular seed with RequireJS server side
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
js
node_modules
.gitignore
GruntFile.js
README.md
index.html
package.json

README.md

A simple Angular seed with requireJs

By @ThThiery

About

This is a simple AngularJS Seed with RequireJS. The intent is to provide a base for using the requireJS with AngularJS.

Contents

  • The README.md file describe the project
  • The rMyApp.js file describe the require configuration for the example
  • The GruntFile.js file to describe the grunt Task to compile the example
  • The package.json file give useful informations for the example package (author, dependencies...)
  • The lib/ngMyApp.js the main Angular module defintion

Prerequisites

  • Must have Git installed
  • Must have node.js (at least v0.8.1) installed with npm (Node Package Manager)
  • Must have Grunt node package installed globally. npm install -g grunt-cli

Install a simple Angular seed with requireJS

Enter the following commands in the terminal.

  1. git clone https://github.com/matohawk/angular-seed-requirejs.git
  2. cd angular-seed-requirejs
  3. npm install

Getting Started

  • Installation and prerequisites
    • To compile the example and generate the myApp.js use grunt
    • To watch js files to any changes and compile the example and optimize use grunt watch

Commentary

  • We refer in the DOM only the myApp.js who is generate by RequireJS server side
  • We use only RequireJS on the server
  • We use the SHIM configuration for requireJS, I consider AMD module don't feet very well with AngularJS