#!/usr/bin/env node
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const fs_extra_1 = __importDefault(require("fs-extra"));
const shelljs_1 = __importDefault(require("shelljs"));
let name = 'my-drayman-app';
const templateDir = path_1.default.resolve(__dirname, '../template');
const dest = path_1.default.resolve(process.cwd(), name);
(async () => {
    await fs_extra_1.default.copy(templateDir, dest);
    await fs_extra_1.default.move(path_1.default.join(dest, 'gitignore'), path_1.default.join(dest, '.gitignore'));
    shelljs_1.default.exec(`cd "${name}" && npm install`);
})();
