inikit 1.2.2 → 1.2.4
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/dist/package.json +4 -3
- package/dist/utils.js +6 -1
- package/package.json +4 -3
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inikit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Best way to get started with Next.js and React project.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
"clean": "rm -rf dist",
|
|
10
10
|
"lint": "eslint . ",
|
|
11
11
|
"lint:fix": "eslint . --fix",
|
|
12
|
+
"format:check": "prettier --check .",
|
|
12
13
|
"format": "prettier --write .",
|
|
13
14
|
"dev": "tsx index.ts",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
15
|
+
"deploy": "npm run build && npm publish --access public",
|
|
16
|
+
"prepare": "husky"
|
|
16
17
|
},
|
|
17
18
|
"bin": {
|
|
18
19
|
"inikit": "./dist/index.js"
|
package/dist/utils.js
CHANGED
|
@@ -22,9 +22,14 @@ export const createNextApp = async (appName, typeScript, tailwind = true) => {
|
|
|
22
22
|
return stdout;
|
|
23
23
|
};
|
|
24
24
|
export const createReactApp = async (appName, typeScript) => {
|
|
25
|
+
await $({
|
|
26
|
+
cwd: process.cwd(),
|
|
27
|
+
}) `
|
|
28
|
+
npm install -g create-vite@latest
|
|
29
|
+
`;
|
|
25
30
|
const { stdout } = await $({
|
|
26
31
|
cwd: process.cwd(),
|
|
27
|
-
}) `
|
|
32
|
+
}) `npx create-vite ${appName} --- --template ${typeScript ? 'react-ts' : 'react'}`;
|
|
28
33
|
await $({
|
|
29
34
|
cwd: path.resolve(process.cwd(), appName),
|
|
30
35
|
}) `npm install`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inikit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Best way to get started with Next.js and React project.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
"clean": "rm -rf dist",
|
|
10
10
|
"lint": "eslint . ",
|
|
11
11
|
"lint:fix": "eslint . --fix",
|
|
12
|
+
"format:check": "prettier --check .",
|
|
12
13
|
"format": "prettier --write .",
|
|
13
14
|
"dev": "tsx index.ts",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
15
|
+
"deploy": "npm run build && npm publish --access public",
|
|
16
|
+
"prepare": "husky"
|
|
16
17
|
},
|
|
17
18
|
"bin": {
|
|
18
19
|
"inikit": "./dist/index.js"
|