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 dest = 'dist/';
|
||||||
|
|
||||||
var scripts = [
|
var scripts = [
|
||||||
'public/js/app.js',
|
'src/js/app.js',
|
||||||
'public/js/controllers.js',
|
'src/js/controllers.js',
|
||||||
'public/js/filters.js',
|
'src/js/filters.js',
|
||||||
'public/js/directives.js',
|
'src/js/directives.js',
|
||||||
'public/js/script.js'
|
'src/js/script.js'
|
||||||
];
|
];
|
||||||
|
|
||||||
var vendor = [
|
var vendor = [
|
||||||
@ -49,7 +49,7 @@ module.exports = function(grunt) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
'dist/index.html': 'views/index.jade'
|
'dist/index.html': 'src/views/index.jade'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -58,28 +58,28 @@ module.exports = function(grunt) {
|
|||||||
files: [
|
files: [
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: 'public/fonts/',
|
cwd: 'src/fonts/',
|
||||||
src: ['minimal-*.*'],
|
src: ['minimal-*.*'],
|
||||||
dest: 'dist/fonts/',
|
dest: 'dist/fonts/',
|
||||||
filter: 'isFile'
|
filter: 'isFile'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: 'public/images/',
|
cwd: 'src/images/',
|
||||||
src: ['*.ico'],
|
src: ['*.ico'],
|
||||||
dest: 'dist/',
|
dest: 'dist/',
|
||||||
filter: 'isFile'
|
filter: 'isFile'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: 'public/css/',
|
cwd: 'src/css/',
|
||||||
src: styles,
|
src: styles,
|
||||||
dest: 'dist/css/',
|
dest: 'dist/css/',
|
||||||
filter: 'isFile'
|
filter: 'isFile'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: 'public/js/lib/',
|
cwd: 'src/js/lib/',
|
||||||
src: ['*.*'],
|
src: ['*.*'],
|
||||||
dest: 'dist/js/lib'
|
dest: 'dist/js/lib'
|
||||||
}
|
}
|
||||||
|
2
app.js
@ -23,7 +23,7 @@ if( process.env.NODE_ENV !== 'production' )
|
|||||||
var bodyParser = require('body-parser');
|
var bodyParser = require('body-parser');
|
||||||
|
|
||||||
// view engine setup
|
// view engine setup
|
||||||
app.set('views', path.join(__dirname, 'views'));
|
app.set('views', path.join(__dirname, 'src/views'));
|
||||||
app.set('view engine', 'jade');
|
app.set('view engine', 'jade');
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
app.use(bodyParser.urlencoded({ extended: false }));
|
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 |