renamed public to src and moved views in it
22
Gruntfile.js
@ -1,12 +1,12 @@
|
||||
var src = 'public/';
|
||||
var src = 'src/';
|
||||
var dest = 'dist/';
|
||||
|
||||
var scripts = [
|
||||
'public/js/app.js',
|
||||
'public/js/controllers.js',
|
||||
'public/js/filters.js',
|
||||
'public/js/directives.js',
|
||||
'public/js/script.js'
|
||||
'src/js/app.js',
|
||||
'src/js/controllers.js',
|
||||
'src/js/filters.js',
|
||||
'src/js/directives.js',
|
||||
'src/js/script.js'
|
||||
];
|
||||
|
||||
var vendor = [
|
||||
@ -49,7 +49,7 @@ module.exports = function(grunt) {
|
||||
}
|
||||
},
|
||||
files: {
|
||||
'dist/index.html': 'views/index.jade'
|
||||
'dist/index.html': 'src/views/index.jade'
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -58,28 +58,28 @@ module.exports = function(grunt) {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'public/fonts/',
|
||||
cwd: 'src/fonts/',
|
||||
src: ['minimal-*.*'],
|
||||
dest: 'dist/fonts/',
|
||||
filter: 'isFile'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'public/images/',
|
||||
cwd: 'src/images/',
|
||||
src: ['*.ico'],
|
||||
dest: 'dist/',
|
||||
filter: 'isFile'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'public/css/',
|
||||
cwd: 'src/css/',
|
||||
src: styles,
|
||||
dest: 'dist/css/',
|
||||
filter: 'isFile'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'public/js/lib/',
|
||||
cwd: 'src/js/lib/',
|
||||
src: ['*.*'],
|
||||
dest: 'dist/js/lib'
|
||||
}
|
||||
|
2
app.js
@ -23,7 +23,7 @@ if( process.env.NODE_ENV !== 'production' )
|
||||
var bodyParser = require('body-parser');
|
||||
|
||||
// view engine setup
|
||||
app.set('views', path.join(__dirname, 'views'));
|
||||
app.set('views', path.join(__dirname, 'src/views'));
|
||||
app.set('view engine', 'jade');
|
||||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.urlencoded({ extended: false }));
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 574 B After Width: | Height: | Size: 574 B |
Before Width: | Height: | Size: 574 B After Width: | Height: | Size: 574 B |
Before Width: | Height: | Size: 442 KiB After Width: | Height: | Size: 442 KiB |
Before Width: | Height: | Size: 722 KiB After Width: | Height: | Size: 722 KiB |
Before Width: | Height: | Size: 881 KiB After Width: | Height: | Size: 881 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |