mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
07b6e73bd8
* 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
48 lines
1.2 KiB
JavaScript
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']
|
|
);
|
|
};
|