UNPKG

sails-generate-gentelella

Version:

Gentelella basic template generator

144 lines (103 loc) 3.72 kB
/* lib to add <link href="/styles/gentelella/bootstrap.min.css" rel="stylesheet"> <link href="/fonts/gentelella/css/font-awesome.min.css" rel="stylesheet"> <link href="/styles/gentelella/animate.min.css" rel="stylesheet"> <!-- Custom styling plus plugins --> <link href="/styles/gentelella/custom.css" rel="stylesheet"> ------- <script src="/js/gentelella/jquery.min.js"></script> <script src="/js/gentelella/nprogress.js"></script> <script src="/js/gentelella/bootstrap.min.js"></script> <!-- bootstrap progress js --> <script src="/js/gentelella/progressbar/bootstrap-progressbar.min.js"></script> <script src="/js/gentelella/nicescroll/jquery.nicescroll.min.js"></script> <script src="/js/gentelella/custom.js"></script> */ // libs var cssFilesToInject = [ 'bootstrap/dist/css/bootstrap.min.css', 'font-awesome/css/font-awesome.min.css', 'animate.css/animate.min.css' ]; var jsFilesToInject = [ 'jquery/dist/jquery.min.js', 'nprogress/nprogress.js', 'bootstrap/dist/js/bootstrap.min.js', 'bootstrap-progressbar/bootstrap-progressbar.min.js', 'jquery.nicescroll/dist/jquery.nicescroll.min.js' ]; // login var cssLoginFilesToInject = [ 'bootstrap/dist/css/bootstrap.min.css', 'font-awesome/css/font-awesome.min.css', 'animate.css/animate.min.css', 'iCheck/skins/flat/green.css' ]; var jsLoginFilesToInject = [ 'jquery/dist/jquery.min.js' ]; // register var cssRegisterFilesToInject = [ 'bootstrap/dist/css/bootstrap.min.css', 'font-awesome/css/font-awesome.min.css', 'animate.css/animate.min.css', 'iCheck/skins/flat/green.css' ]; var jsRegisterFilesToInject = [ 'jquery/dist/jquery.min.js' ]; // errorCode var cssErrorCodeFilesToInject = [ 'bootstrap/dist/css/bootstrap.min.css', 'font-awesome/css/font-awesome.min.css', 'animate.css/animate.min.css', 'iCheck/skins/flat/green.css' ]; var jsErrorCodeFilesToInject = [ 'jquery/dist/jquery.min.js' ]; // fontawesome var fontawesomeToCopy = [ 'font-awesome/fonts/*' ]; var bootstrapFontsToCopy = [ 'bootstrap/fonts/*' ]; // Default path for public folder (see documentation for more information) var tmpPath = 'bower_components/'; // libs module.exports.cssFilesToInject = cssFilesToInject.map(function(cssPath) { return require('path').join(tmpPath, cssPath); }); module.exports.jsFilesToInject = jsFilesToInject.map(function(jsPath) { return require('path').join(tmpPath, jsPath); }); // login module.exports.cssLoginFilesToInject = cssLoginFilesToInject.map(function(cssPath) { return require('path').join(tmpPath, cssPath); }); module.exports.jsLoginFilesToInject = jsLoginFilesToInject.map(function(jsPath) { return require('path').join(tmpPath, jsPath); }); // register module.exports.cssRegisterFilesToInject = cssRegisterFilesToInject.map(function(cssPath) { return require('path').join(tmpPath, cssPath); }); module.exports.jsRegisterFilesToInject = jsRegisterFilesToInject.map(function(jsPath) { return require('path').join(tmpPath, jsPath); }); // errorCode module.exports.cssErrorCodeFilesToInject = cssErrorCodeFilesToInject.map(function(cssPath) { return require('path').join(tmpPath, cssPath); }); module.exports.jsErrorCodeFilesToInject = jsErrorCodeFilesToInject.map(function(jsPath) { return require('path').join(tmpPath, jsPath); }); // fontawesome module.exports.fontawesomeToCopy = fontawesomeToCopy.map(function(fontPath) { return require('path').join(tmpPath, fontPath); }); module.exports.bootstrapFontsToCopy = bootstrapFontsToCopy.map(function(fontPath) { return require('path').join(tmpPath, fontPath); });