create-routify 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/src/versions/two.js +17 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-routify",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "A powerful cli for super-powering your routify development experience",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -34,8 +34,9 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"kleur": "^4.1.4",
|
|
36
36
|
"log-symbols": "^5.1.0",
|
|
37
|
-
"minimist": "^1.2.
|
|
37
|
+
"minimist": "^1.2.6",
|
|
38
38
|
"prompts": "^2.4.2",
|
|
39
|
+
"simple-git": "^3.7.1",
|
|
39
40
|
"update-notifier": "^5.1.0"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
package/src/versions/two.js
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import logSymbols from 'log-symbols';
|
|
2
|
+
import simpleGit from 'simple-git';
|
|
3
|
+
import { rmSync } from 'fs';
|
|
4
|
+
import { join } from 'path';
|
|
5
|
+
import k from 'kleur';
|
|
6
|
+
|
|
7
|
+
export const run = async ({ projectDir, args }) => {
|
|
8
|
+
const git = simpleGit(projectDir);
|
|
9
|
+
|
|
10
|
+
console.log(k.blue(`\n${logSymbols.info} Cloning template...`));
|
|
11
|
+
|
|
12
|
+
await git.clone('https://github.com/roxiness/routify-starter', projectDir);
|
|
13
|
+
|
|
14
|
+
rmSync(join(projectDir, '.git'), {
|
|
15
|
+
recursive: true,
|
|
16
|
+
force: true,
|
|
17
|
+
});
|
|
3
18
|
};
|