renamed public to src and moved views in it

This commit is contained in:
cubedro 2015-05-27 13:16:56 +03:00
parent a1f0145317
commit 7ae41cbe63
51 changed files with 12 additions and 12 deletions

View File

@ -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
View File

@ -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 }));

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 574 B

After

Width:  |  Height:  |  Size: 574 B

View File

Before

Width:  |  Height:  |  Size: 574 B

After

Width:  |  Height:  |  Size: 574 B

View File

Before

Width:  |  Height:  |  Size: 442 KiB

After

Width:  |  Height:  |  Size: 442 KiB

View File

Before

Width:  |  Height:  |  Size: 722 KiB

After

Width:  |  Height:  |  Size: 722 KiB

View File

Before

Width:  |  Height:  |  Size: 881 KiB

After

Width:  |  Height:  |  Size: 881 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB