Permalink
Browse files

Adding express-stack current version to branch.

  • Loading branch information...
1 parent 659e795 commit 69409e1cacf1ec09eb0597c73720f90fd5428dd8 @addyosmani addyosmani committed Jan 15, 2013
Showing 1,084 changed files with 262,993 additions and 1,609 deletions.
View
@@ -1,18 +0,0 @@
-
-Usage: <%= 'yeoman'.bold.red %> <%= 'command'.yellow %> [task]
-
-Available commands supported by yeoman
-
- <%= 'init'.yellow %> Initialize and scaffold a new project using generator templates
- <%= 'build'.yellow %> Build an optimized version of your app, ready to deploy
- <%= 'server'.yellow %> Launch a preview server which will begin watching for changes
- <%= 'test'.yellow %> Run a Mocha test harness in a headless PhantomJS
-
- <%= 'install'.yellow %> Install a package from the clientside package registry
- <%= 'uninstall'.yellow %> Uninstall the package
- <%= 'update'.yellow %> Update a package to the latest version
- <%= 'list'.yellow %> List the packages currently installed
- <%= 'search'.yellow %> Query the registry for matching package names
- <%= 'lookup'.yellow %> Look up info on a particular package
-
-Certain commands such as <%= 'init'.yellow %> also provide further help via a --help flag
View
@@ -1,191 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var fs = require('fs');
-var path = require('path');
-var execFile = require('child_process').execFile;
-var nopt = require('nopt');
-var colors = require('colors');
-var _ = require('lodash');
-var pkg = require('../package.json');
-var updateNotifier = require('update-notifier');
-var Insight = require('insight');
-
-var helpScreen = _.template(fs.readFileSync(path.join(__dirname, 'help.txt'), 'utf8'));
-var args = process.argv.slice(2);
-var opts = nopt({}, {}, process.argv, 2);
-var cmd = args[0];
-
-var insight = new Insight({
- trackingCode: 'UA-31537568-1',
- packageName: pkg.name,
- packageVersion: pkg.version
-});
-
-/*jshint multistr:true */
-var insightMsg = '\
-=========================================================================='.grey + '\n\
-We\'re constantly looking for ways to make '.yellow + pkg.name.bold.red + ' better! \n\
-May we anonymously report usage statistics to improve the tool over time? \n\
-More info: yeoman.io/insight.html & http://yeoman.io'.yellow + '\n\
-=========================================================================='.grey;
-
-// selective tracking since we don't want to track all the bad grammar
-function track() {
- if (!process.env.yeoman_test && opts.insight !== false) {
- // only track the two first subcommands
- // TODO: Enable this before release
- //insight.track.apply(insight, args.slice(0, 2));
- }
-}
-
-function runInit() {
- var env = require('yeoman-generator')();
-
- track();
-
- // default to generator-webapp
- if (opts.argv.remain.length === 1) {
- args[1] = 'webapp';
- }
-
- // alias any single namespace to *:all and *:app, all taking precedence over
- // app.
- env.alias(/^([^:]+)$/, '$1:app');
- env.alias(/^([^:]+)$/, '$1:all');
-
- // adds yeoman- prefix in addition to the built-in `generator-` one
- env.prefix('yeoman-');
-
- // lookup for npm packages
- env.lookup('*:*');
-
- env.on('end', function() {
- console.log('done running sir');
- });
-
- env.on('error', function(err) {
- console.error('Error executing yeoman-init', process.argv.slice(2).join(' '));
- console.error();
- console.error(opts.debug ? err.stack : err.message);
- process.exit(err.code || 1);
- });
-
- env.run(args.slice(1), opts);
-}
-
-function runGrunt() {
- // search for installed grunt by using node's built-in require() logic
- var args = ['-p', '-e', 'require.resolve("grunt")'];
- execFile(process.execPath, args, function(err, stdout, stderr) {
- var gruntPath = stdout.trim();
-
- if (err) {
- console.error(stderr);
- console.error('Unable to find local grunt'.red);
- process.exit(99);
- }
-
- require(gruntPath).cli();
- });
-
- track();
-}
-
-function runBower() {
- track();
- require('bower').commands[cmd].line(process.argv)
- .on('data', function (data) {
- if (data) {
- console.log(data);
- }
- })
- .on('end', function (data) {
- if (data) {
- console.log(data);
- }
- // run Bower grunt task
- process.argv = ['', '', 'bower'];
- runGrunt();
- })
- .on('error', function (err) {
- console.error(err.message);
- });
-}
-
-// TODO: Update docs to flag `--no-insight`
-if (!process.env.yeoman_test && opts.insight !== false && insight.optOut === undefined) {
- insight.optOut = false;
- insight.track('downloaded');
- insight.askPermission(insightMsg);
- return;
-}
-
-// TODO: Update docs to flag `--no-update-notifier`
-if (!process.env.yeoman_test && opts['update-notifier'] !== false) {
- var notifier = updateNotifier({
- packagePath: '../package',
- // TODO: remove before release:
- packageName: 'yeoman',
- packageVersion: '0.9.3'
- });
-
- if (notifier.update) {
- notifier.notify(true);
- }
-}
-
-if (opts.version) {
- return console.log(pkg.version);
-}
-
-switch (cmd) {
- case undefined:
- track();
- console.log(helpScreen());
- break;
- case 'help':
- case '--help':
- process.argv[2] = 'help';
- track();
- console.log(helpScreen());
- break;
- case 'init':
- case 'i':
- runInit();
- break;
- case 'build':
- case 'b':
- process.argv[2] = 'build';
- runGrunt();
- break;
- case 'server':
- case 's':
- process.argv[2] = 'server';
- runGrunt();
- break;
- case 'test':
- case 't':
- process.argv[2] = 'test';
- process.env.yeoman_test = true;
- runGrunt();
- break;
- case 'watch':
- console.log(('\nFYI: Yeoman`s watch task is integrated within ' +
- 'yeoman server'.bold + ' to combine the dev server, re-compilation and ' +
- 'live reloading of changed assets.\n\nContinuing anyway...\n').yellow);
- runGrunt();
- break;
- case 'install':
- case 'uninstall':
- case 'update':
- case 'list':
- case 'ls':
- case 'search':
- case 'lookup':
- runBower();
- break;
- default:
- console.log(helpScreen());
- break;
-}
View
@@ -1,60 +0,0 @@
-### 0.9.5 - 2012-11-05
-
-- [#627](https://github.com/yeoman/yeoman/issues/627)
-Fix: Usemin:html adds image file before a 'a' anchor
-
-- [#636](https://github.com/yeoman/yeoman/issues/636)
-Python3 support for Insight
-
-- [#603](https://github.com/yeoman/yeoman/issues/603)
-Add ability to specify a base path in the usemin block comment
-
-- [#660](https://github.com/yeoman/yeoman/issues/660)
-Determine linefeed from the content not the platform
-
-- Upgrade to latest Bower
-
-
-### 0.9.4 (12 October, 2012)
-
-* Updated to Bower 0.2.0 (Issue [#551](https://github.com/yeoman/yeoman/issues/551))
-* Less verbose `yeoman init` (Issue [#605](https://github.com/yeoman/yeoman/issues/605))
-* Ability to disable Insight (Issue [#305](https://github.com/yeoman/yeoman/issues/385))
-* Corrections to generator docs (Issue [#608](https://github.com/yeoman/yeoman/issues/608))
-* Fixes to usemin:html skipping anchor tags with images as href (Issue [#615](https://github.com/yeoman/yeoman/issues/615))
-* Fixes to main.css not being replaced with compiled version unless tag structure is exactly as yeoman expects it (Issue [#502](https://github.com/yeoman/yeoman/issues/502))
-* Stops yeoman from looking for win32 binaries in ../vendor/ (Pull [#519](https://github.com/yeoman/yeoman/pull/519))
-* Support for installing Yeoman behind a corporate proxy server (Pull [#587](https://github.com/yeoman/yeoman/pull/587))
-* Remove a trailing comma in the options of the HTML task and add missing semicolons in the server task
-(Issue [#589](https://github.com/yeoman/yeoman/pull/589))
-* Fix to enable blank lines in usemin blocks (Issue [#560](https://github.com/yeoman/yeoman/issues/560))
-* Updates to Insight documentation
-* Fixes usemin:css inserting invalid <link> element (Issue [#586](https://github.com/yeoman/yeoman/issues/586))
-* Fix for usemin replace task incorrectly matcheing filename when files in subfolders have the same name (Issue [#565](https://github.com/yeoman/yeoman/issues/565))
-* New Windows [installation](https://github.com/yeoman/yeoman/wiki/Manual-Install) instructions
-
-### 0.9.3 (3 October, 2012)
-
-* Temporary fix to allow Bower dependencies to be correctly copied to app/components. As a result of this patch RequireJS wiring of Bower deps is currently disabled
-
-### 0.9.2
-
-TBU
-
-### 0.9.1 (15 September, 2012)
-
-* Removal of stdout checks, test against fs (Pull [#473](https://github.com/yeoman/yeoman/pull/473)).
-
-* Fix for initializer example (Pull [#447](https://github.com/yeoman/yeoman/pull/477 )).
-
-* Support for an expanded compass --require arg (Pull [#483](https://github.com/yeoman/yeoman/pull/483)).
-
-* Yeoman setup gets a colored art (Pull [#493](https://github.com/yeoman/yeoman/pull/493))!
-
-* Added ability to configure app index file for rjs task (Pull [#505](https://github.com/yeoman/yeoman/pull/505)).
-
-* yeoman server:test and access to the app js files (Issue [#443](https://github.com/yeoman/yeoman/issues/443)).
-
-* yeoman install backbone deletes existing files in app/scripts/vendor issue was fixed (Issue [#460](https://github.com/yeoman/yeoman/issues/460)).
-
-* Replaced coffescript task with grunt-coffee (Pull[#522](https://github.com/yeoman/yeoman/pull/522))
View
@@ -1,93 +0,0 @@
-# Contributing
-
-We are more than happy to accept external contributions to the project in the form of feedback, bug reports and even better - pull requests :) At this time we are primarily focusing on improving the user-experience and stability of Yeoman for our first release. Please keep this in mind if submitting feature requests, which we're happy to consider for future versions.
-
-
-## Issue submission
-
-In order for us to help you please check that you've completed the following steps:
-
-* Made sure you're on the latest version `npm update -g yeoman`
-* Looked through the list of [known bugs](https://github.com/yeoman/yeoman/wiki/Additional-FAQ) to ensure the issue hasn't been noted or solved already
-* Used the search feature to ensure that the bug hasn't been reported before
-* Included as much information about the bug as possible, including any output you've received, what OS and version you're on, etc.
-* Shared the output from `echo $PATH $NODE_PATH` and `brew doctor` as this can also help track down the issue.
-
-
-## Repos
-
-Yeoman has three primary repos:
-
-* [main project](http://github.com/yeoman/yeoman)
-* [generators](http://github.com/yeoman/generators)
-* [yeoman.io](http://github.com/yeoman/yeoman.io)
-
-
-## Contributor License Agreement
-
-Before we can accept patches, there's a quick web form we need you to fill our [here](http://code.google.com/legal/individual-cla-v1.0.html) (<strong>\*scroll to the bottom!\*</strong>).
-
-If you're contributing under a company, you need to fill out [this form instead](http://code.google.com/legal/corporate-cla-v1.0.html).
-
-This CLA asserts that fixes and documentation are owned by you and that Google can license all work under BSD.
-
-Other projects require a similar agreement: jQuery, Firefox, Apache, and many more.
-
-[More about CLAs](https://www.google.com/search?q=Contributor%20License%20Agreement)
-
-## Quick Start
-
-* Clone this repo and `cd` into it
-* Run this command: `./setup/install.sh`
-* `cd` into the `/cli` directory and run `sudo npm link` after the install is complete.
-* Navigate to a new directory and run `yeoman init` to make sure everything is working as expected.
-* Add `yeoman_test` with any value to your environment variables to disable the updater and Insight.
-
-You can keep Yeoman up to date by using `git pull --rebase upstream master && cd cli && npm link`, where `upstream` is a remote pointing to this repo.
-
-### Generators
-
-When developing in the generators repo you probably want to be able to test out your changes. The recommended workflow is to link the generators module into the yeoman project by running `npm link path/to/generator/folder` in `yeoman/cli/`. This means changes you do in the generators repo will be reflected in the yeoman repo.
-
-### Insight
-
-When developing for Yeoman, you will most likely be running and debugging commands within the CLI. If you have opted into Insight, these commands will be logged. A special `--disable-insight` flag is available for developers wishing to opt out of Insight tracking so inflated stats are not recorded.
-
-## Style Guide
-
-This project uses single-quotes, two space indentation, multiple var statements and whitespace around arguments. Please ensure any pull requests follow this closely. If you notice existing code which doesn't follow these practices, feel free to shout and we will address this.
-
-
-## Pull Request Guidelines
-
-* Submit your CLA, if you haven't.
-* Please check to make sure that there aren't existing pull requests attempting to address the issue mentioned. We also recommend checking for issues related to the issue on the tracker, as a team member may be working on the issue in a branch or fork.
-* Non-trivial changes should be discussed in an issue first
-* Develop in a topic branch, not master
-* Lint the code by running `grunt` in the `/cli` folder
-* Add relevant tests to cover the change
-* Make sure test-suite passes
-* Squash your commits
-* Write a convincing description of your PR and why we should land it
-
-
-## Tests
-
-Yeoman has a test suite to ensure it's reliably and accurately working as a developer tool. You can find the main test suite in [`test/test-build.js`](https://github.com/yeoman/yeoman/blob/master/cli/test/test-build.js), most of the assertions are [checks against yeoman cli stdout](https://github.com/mklabs/yeoman/wiki/test-build).
-
-To run our test suite:
-
-```
-npm test
-```
-
-Do note that if any CLI prompts are not accounted for the test suite will have a timeout failure.
-
-
-## Developer Docs
-
-We have significant developer docs for you if you'd like to hack on Yeoman.
-
-Currently you can find much of the details on [mklabs' yeoman wiki](https://github.com/mklabs/yeoman/wiki/_pages) but also [our primary project](https://github.com/yeoman/yeoman/tree/master/docs/cli).
-
-You're also welcome to `git blame` back to commit messages and pull requests. As a project we value comprehensive discussion for our fellow developers.
Oops, something went wrong.

0 comments on commit 69409e1

Please sign in to comment.