Skip to content

Commit

Permalink
- everything is served from static folder /public
Browse files Browse the repository at this point in the history
- stylus removed
  • Loading branch information
vladotesanovic committed Jun 17, 2016
1 parent 39df977 commit a21f6cd
Show file tree
Hide file tree
Showing 7 changed files with 984 additions and 13 deletions.
6 changes: 0 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,13 @@ var users = require('./routes/users');

var app = express();

// expose node_modules to client app
app.use(express.static(__dirname + "/node_modules"));

// uncomment after placing your favicon in /public
// app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());

// Do we need this?
app.use(require('stylus').middleware(path.join(__dirname, 'public')));

app.use(express.static(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'app')));

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"debug": "~2.2.0",
"express": "~4.13.1",
"morgan": "~1.6.1",
"serve-favicon": "~2.3.0",
"stylus": "0.42.3"
"serve-favicon": "~2.3.0"
},
"devDependencies": {
"@angular/common": "2.0.0-rc.2",
Expand Down
9 changes: 4 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
<link rel="stylesheet" href="css/style.css">

<!-- Polyfill(s) for older browsers -->
<script src="core-js/client/shim.min.js"></script>

<script src="zone.js/dist/zone.js"></script>
<script src="reflect-metadata/Reflect.js"></script>
<script src="systemjs/dist/system.src.js"></script>
<script src="js/vendor/shim.min.js"></script>
<script src="js/vendor/zone.min.js"></script>
<script src="js/vendor/Reflect.js"></script>
<script src="js/vendor/system.js"></script>
<!--
Development mod
<script src="js/systemjs.config.js"></script>
Expand Down
Loading

0 comments on commit a21f6cd

Please sign in to comment.