UNPKG

568 BJavaScriptView Raw
1'use strict';
2
3var path = require('path');
4
5var _require = require('mrm-core'),
6 copyFiles = _require.copyFiles;
7
8// These files will be overwritten without any confirmation
9
10
11var files = ['LICENSE', '.github/ISSUE_TEMPLATE.md', '.github/PULL_REQUEST_TEMPLATE.md'];
12
13// These files will by created only once
14var filesOnce = ['src/index.js', 'src/cjs.js', 'CHANGELOG.md'];
15
16module.exports = function () {
17 var templatesDir = path.resolve(__dirname, '../../templates');
18 copyFiles(templatesDir, files);
19 copyFiles(templatesDir, filesOnce, { overwrite: false });
20};
\No newline at end of file