Skip to content

Commit

Permalink
fix: askx init --hosted-skill-id -> fail when not include ask-resourc…
Browse files Browse the repository at this point in the history
…es.json in the git (#75)
  • Loading branch information
Chih-Ying authored Mar 30, 2020
1 parent 677a340 commit f0da5da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/controllers/hosted-skill-controller/clone-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const CONSTANTS = require('@src/utils/constants');
const Messenger = require('@src/view/messenger');
const SpinnerView = require('@src/view/spinner-view');

const filesToIgnore = ['lambda/node_modules', '.ask/', 'ask-resources.json'];

module.exports = {
generateProject,
cloneProjectFromGit,
Expand Down Expand Up @@ -90,7 +92,7 @@ function _gitCloneWorkflow(projectPath, repositoryUrl, verbosityOptions, profile
if (verbose) {
Messenger.getInstance().info('- Setting up .gitignore...');
}
const filesToIgnore = ['lambda/node_modules', '.ask/'];

gitClient.setupGitIgnore(filesToIgnore);

if (verbose) {
Expand Down

0 comments on commit f0da5da

Please sign in to comment.