Skip to content

Commit

Permalink
Finalized Gulp dist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemke committed Jan 5, 2015
1 parent 50be7ea commit bf8f51a
Show file tree
Hide file tree
Showing 203 changed files with 47,608 additions and 7 deletions.
26 changes: 19 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ var concatFilenames = {

var startupScript = 'server.js';

var sysDirs = [
baseDirs.app + 'app/**/*.js',
baseDirs.app + 'config/**/*.js',
baseDirs.app + 'views/**/*.jade',
baseDirs.app + 'config/**/*.js',
baseDirs.app + 'views/**/*.jade',
baseDirs.app + 'node_modules/'
];

gulp.task('clean', function() {
return gulp.src(baseDirs.dist).pipe(clean());
return gulp.src(baseDirs.dist, {read: false}).pipe(clean());
});

gulp.task('dev:concatjs', function () {
Expand Down Expand Up @@ -83,7 +92,7 @@ gulp.task('watch', function () {
});

gulp.task('default', ['dev:concatjs', 'dev:concatcss', 'nodemon', 'watch']);
gulp.task('dist', ['dev:concatjs', 'dev:concatcss', 'dist:minifycss', 'dist:minifyjs']);
gulp.task('dist', ['dev:concatjs', 'dev:concatcss', 'dist:minifycss', 'dist:minifyjs', 'dist:copy']);

gulp.task('dist:minifycss', function() {
return gulp.src(baseDirs.app + publicDirs.css + concatFilenames.css)
Expand All @@ -97,9 +106,12 @@ gulp.task('dist:minifyjs', function() {
.pipe(gulp.dest(baseDirs.dist + publicDirs.js));
});

gulp.task('dist:copy', function() {
// server.js
gulp.src(baseDirs.app + '/' + startupScript)
.pipe(gulp.dest(baseDirs.dist));






// sysDirs
gulp.src(sysDirs, {cwd: baseDirs.app + '**'})
.pipe(gulp.dest(baseDirs.dist));
});
19 changes: 19 additions & 0 deletions public/libs/angular-route/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "angular-route",
"version": "1.3.7",
"main": "./angular-route.js",
"ignore": [],
"dependencies": {
"angular": "1.3.7"
},
"homepage": "https://github.com/angular/bower-angular-route",
"_release": "1.3.7",
"_resolution": {
"type": "version",
"tag": "v1.3.7",
"commit": "d2aea3640b24f191fa288b3d9b481ace6f43a832"
},
"_source": "git://github.com/angular/bower-angular-route.git",
"_target": "*",
"_originalSource": "angular-route"
}
77 changes: 77 additions & 0 deletions public/libs/angular-route/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# packaged angular-route

This repo is for distribution on `npm` and `bower`. The source for this module is in the
[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngRoute).
Please file issues and pull requests against that repo.

## Install

You can install this package either with `npm` or with `bower`.

### npm

```shell
npm install angular-route
```

Add a `<script>` to your `index.html`:

```html
<script src="/node_modules/angular-route/angular-route.js"></script>
```

Then add `ngRoute` as a dependency for your app:

```javascript
angular.module('myApp', ['ngRoute']);
```

Note that this package is not in CommonJS format, so doing `require('angular-route')` will
return `undefined`.

### bower

```shell
bower install angular-route
```

Add a `<script>` to your `index.html`:

```html
<script src="/bower_components/angular-route/angular-route.js"></script>
```

Then add `ngRoute` as a dependency for your app:

```javascript
angular.module('myApp', ['ngRoute']);
```

## Documentation

Documentation is available on the
[AngularJS docs site](http://docs.angularjs.org/api/ngRoute).

## License

The MIT License

Copyright (c) 2010-2012 Google, Inc. http://angularjs.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit bf8f51a

Please sign in to comment.