This file ( 874B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
const fs = require('fs');
module.exports = (grunt) => {
grunt.registerTask('cory-generate-tasks', function () {
const config = grunt.config.get();
const tasks = [];
Object.keys(config).forEach((item) => {
Object.keys(config[item]).forEach((sub) => {
if (sub === 'options') {
return;
}
tasks.push(`${item}:${sub}`);
})
})
for (let taskName in grunt.task._tasks) {
const task = grunt.task._tasks[taskName];
if (taskName.startsWith('cory')) {
tasks.push(`${taskName}`);
}
}
const template = `
# Tasks
Skeleton tasks
\`\`\`js
${tasks.sort().join(`
`)}
\`\`\`
`;
fs.writeFileSync(`artifacts/readme/builds/tasks.md`, template);
})
}