Skip to content

Commit

Permalink
rename export => generate
Browse files Browse the repository at this point in the history
  • Loading branch information
markkaylor committed May 26, 2021
1 parent 0caf339 commit c7281e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/strapi/bin/strapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ program

// `$ strapi export:template <name>`
program
.command('export:template <directory>')
.description('Export project as Strapi template')
.action(getLocalScript('export-template'));
.command('generate:template <directory>')
.description('Generate template from current Strapi project')
.action(getLocalScript('generate-template'));

program.parseAsync(process.argv);
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const { resolve, join } = require('path');
const fse = require('fs-extra');
const inquirer = require('inquirer');

const exportTemplate = require('../export-template');
const exportTemplate = require('../generate-template');

describe('export:template command', () => {
describe('generate:template command', () => {
beforeEach(() => {
jest.spyOn(console, 'log').mockImplementation(() => {});
jest.clearAllMocks();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function copyContent(templatePath) {
});
}

module.exports = async function exportTemplate(directory) {
module.exports = async function generateTemplate(directory) {
const dir = directory.startsWith('.') ? directory : `../${directory}`;
const templatePath = resolve(dir);

Expand Down

0 comments on commit c7281e7

Please sign in to comment.