Ghost/ghost/members-api/static/auth/Gruntfile.js
Fabien O'Carroll b219e26ea6 Added members lib module (#10260)
* Added members library inc. gateway

refs #10213

* Added the auth pages and build steps for them

refs #10213

* Cleaned up logs

* Updated gruntfile to run yarn for member auth

* Design refinements on members popups

* UI refinements

* Updated backend call to trigger only if frontend validation passes

* Design refinements for error messages

* Added error message for email failure

* Updated request-password-reset to not attempt to send headers twice

* Updated preact publicPath to relative path

* Build auth pages on init
2019-05-07 17:35:17 +02:00

48 lines
1.2 KiB
JavaScript

/* eslint-env node */
/* eslint-disable object-shorthand */
'use strict';
module.exports = function (grunt) {
// Find all of the task which start with `grunt-` and load them, rather than explicitly declaring them all
require('matchdep').filterDev(['grunt-*', '!grunt-cli']).forEach(grunt.loadNpmTasks);
grunt.initConfig({
clean: {
built: {
src: ['dist/**']
},
dependencies: {
src: ['node_modules/**']
},
tmp: {
src: ['tmp/**']
}
},
shell: {
'npm-install': {
command: 'yarn install'
},
preact: {
command: function (mode) {
switch (mode) {
case 'prod':
return 'yarn build';
case 'dev':
return 'yarn dev';
}
}
},
options: {
preferLocal: true
}
}
});
grunt.registerTask('init', 'Install the preact member dependencies',
['shell:npm-install', 'shell:preact:prod']
);
};