App skeleton

This commit is contained in:
Senad Uka
2018-08-05 12:55:43 +02:00
commit 52a9367d4e
72 changed files with 12652 additions and 0 deletions

27
tasks/register/prod.js Normal file
View File

@@ -0,0 +1,27 @@
/**
* `tasks/register/prod.js`
*
* ---------------------------------------------------------------
*
* This Grunt tasklist will be executed instead of `default` when
* your Sails app is lifted in a production environment (e.g. using
* `NODE_ENV=production node app`).
*
* For more information see:
* https://sailsjs.com/anatomy/tasks/register/prod.js
*
*/
module.exports = function(grunt) {
grunt.registerTask('prod', [
'polyfill:prod', //« Remove this to skip transpilation in production (not recommended)
'compileAssets',
'babel', //« Remove this to skip transpilation in production (not recommended)
'concat',
'uglify',
'cssmin',
'sails-linker:prodJs',
'sails-linker:prodStyles',
'sails-linker:clientSideTemplates',
]);
};