Skip to content

Commit

Permalink
Move minified app to app_client
Browse files Browse the repository at this point in the history
  • Loading branch information
simonholmes committed Aug 11, 2015
1 parent 03f1564 commit 1b5dfb3
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ app.use(express.static(path.join(__dirname, 'app_client')));
// app.use('/users', users);

app.use(function(req, res) {
res.sendFile(path.join(__dirname, 'public', 'index.html'));
res.sendFile(path.join(__dirname, 'app_client', 'index.html'));
});


Expand Down
2 changes: 2 additions & 0 deletions app_client/app.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/app.min.js.map → app_client/app.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app_client/home/home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.controller('homeCtrl', homeCtrl);

function homeCtrl () {
console.log('Home controller running');
console.log('Home controller is running');
}

})();
File renamed without changes.
8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ var sourcemaps = require('gulp-sourcemaps');
var ngHtml2Js = require("gulp-ng-html2js");

gulp.task('scripts', function() {
gulp.src(['./app_client/**/*.js', '!./app_client/**/*.test.js'])
gulp.src(['./app_client/**/*.js', '!./app_client/**/*.test.js', '!./app_client/app.min.js'])
.pipe(sourcemaps.init())
.pipe(concat('./app.min.js'))
.pipe(uglify({mangle: true}))
.pipe(gulp.dest('public'))
.pipe(gulp.dest('app_client'))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('public'));
.pipe(gulp.dest('app_client'));
});

gulp.task('watch', function() {
watch('./app_client/**/*.js', function () {
watch(['./app_client/**/*.js', '!./app_client/**/*.test.js', '!./app_client/app.min.js'], function () {
gulp.start('scripts');
});
});
Expand Down
2 changes: 0 additions & 2 deletions public/app.min.js

This file was deleted.

0 comments on commit 1b5dfb3

Please sign in to comment.