Skip to content

Commit

Permalink
added ng min
Browse files Browse the repository at this point in the history
  • Loading branch information
jonniespratley committed Jan 11, 2015
1 parent fafab43 commit 938257c
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 45 deletions.
5 changes: 1 addition & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ module.exports = function (grunt) {
require('json-proxy').initialize(proxyConfig),
mountFolder(connect, '.grunt'),
mountFolder(connect, '.tmp'),
mountFolder(connect, config.publicDir),
mountFolder(connect, config.staticDir),
mountFolder(connect, 'app')
];
}
Expand Down Expand Up @@ -418,7 +416,6 @@ module.exports = function (grunt) {
src: [
'*.{ico,png,txt}', '.htaccess',
//'bower_components/**/*',
'libs/*',
'images/{,*/}*.{webp}',
'fonts/*'
]
Expand Down Expand Up @@ -666,7 +663,7 @@ module.exports = function (grunt) {
'concurrent:dist',
'autoprefixer',
'concat',
//'ngmin',
'ngmin',
'ngtemplates',
'copy:dist',
//'cdnify',
Expand Down
25 changes: 14 additions & 11 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<meta name="msapplication-square310x310logo" content="images/mstile-310x310.png">
<meta name="msapplication-wide310x150logo" content="images/mstile-310x150.png">

<!-- build:css({.tmp,app}) styles/main.css -->
<!-- build:css({.tmp,app}) styles/app.css -->
<link rel="stylesheet" href="bower_components/angular-motion/dist/angular-motion.min.css">
<link rel="stylesheet" href="bower_components/bootstrap-additions/dist/bootstrap-additions.min.css">
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
Expand All @@ -55,17 +55,17 @@
<!-- endbuild -->
<link rel="stylesheet" ng-href="{{App.settings.cdn}}/bootswatch.com/{{App.theme | lowercase}}/bootstrap.min.css"/>

<!--[if lt IE 9]>
<script src="bower_components/es5-shim/es5-shim.js"></script>
<script src="bower_components/json3/lib/json3.min.js"></script>
<![endif]-->
</head>
<body data-ng-class="App.route.current.scope.name">

<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->

<!--[if lt IE 9]>
<script src="bower_components/es5-shim/es5-shim.js"></script>
<script src="bower_components/json3/lib/json3.min.js"></script>
<![endif]-->

<div id="app" class="app" data-ng-controller="AppCtrl" data-ng-cloak>
<header id="header" data-ng-include="App.layout.header">
Expand Down Expand Up @@ -98,6 +98,12 @@
<script src="bower_components/es5-shim/es5-shim.js"></script>
<script src="bower_components/json3/lib/json3.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="libs/parse-1.2.17.min.js"></script>
<script src="libs/md5.js"></script>
<script src="libs/markdown.js"></script>
<!-- endbuild -->

<!-- build:js({.tmp,app}) scripts/modules.js -->
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-ui-utils/ui-utils.js"></script>
<script src="bower_components/angular-strap/dist/angular-strap.min.js"></script>
Expand All @@ -108,12 +114,9 @@
<script src="bower_components/angular-cookies/angular-cookies.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/angular-form-gen/dist/angular-form-gen.js"></script>
<!-- endbower -->
<!-- Dependent libs -->
<script src="libs/parse-1.2.17.min.js"></script>
<script src="libs/md5.js"></script>
<script src="libs/markdown.js"></script>
<!-- endbuild -->
<!-- endbuild -->

<!-- endbower -->

<!-- build:js({.tmp,app}) scripts/scripts.js -->
<script src="scripts/config.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions config/config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"baseurl":"http://localhost:8181",
"baseurl":"http://127.0.0.1:8181",
"sitetitle":"angular-cms",
"sitedesc":"This is the description",
"sitebrand":"/images/angular-cms-brand.png",
"sitecopy":"2014 ",
"version":"0.1",
"email":"[email protected]",
"host":"localhost",
"host": "127.0.0.1",
"port":8181,
"apiBase":"/api/v2",
"version":"v2",
Expand Down Expand Up @@ -37,7 +37,7 @@
"publicDir":"www",
"uploadsTmpDir":".tmp",
"uploadsDestDir":"www/cms-content/uploads",
"uploadsUrl":":8181/cms-content/",
"uploadsUrl":"/cms-content/",
"logFormat":"[:date] - [:method] - :url - :status - :response-time ms",
"debug":true,
"feature":{
Expand Down
26 changes: 0 additions & 26 deletions npm-debug.log

This file was deleted.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"grunt-karma-coveralls": "^2.5.1",
"grunt-mocha-test": "^0.12.4",
"grunt-newer": "~0.5.4",
"grunt-ng-annotate": "^0.8.0",
"grunt-ngdocs": "~0.1.7",
"grunt-ngmin": "0.0.3",
"grunt-protractor-runner": "^1.1.0",
Expand Down Expand Up @@ -132,7 +133,8 @@
"karma": "~0.12.0"
},
"engines": {
"node": ">=0.10.0"
"node": "0.10.x",
"npm": "1.3.x"
},
"scripts": {
"test": "grunt test",
Expand Down
6 changes: 6 additions & 0 deletions routes/cms-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ var http = require('http'), util = require('util');

module.exports.mount = function(config, app) {
'use strict';

//Fix for cloud foundry
if(process.env.VCAP_APP_PORT ){
config.port = process.env.VCAP_APP_PORT;
}


var server = http.createServer(app);
var serverPort = process.env.PORT || config.port;
Expand Down

0 comments on commit 938257c

Please sign in to comment.