inikit 1.2.1 → 1.2.3
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 +11 -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.3",
|
|
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
|
@@ -11,12 +11,22 @@ export const titleCase = (str) => {
|
|
|
11
11
|
.join(' ');
|
|
12
12
|
};
|
|
13
13
|
export const createNextApp = async (appName, typeScript, tailwind = true) => {
|
|
14
|
+
await $({
|
|
15
|
+
cwd: process.cwd(),
|
|
16
|
+
}) `
|
|
17
|
+
npm install -g create-next-app@latest
|
|
18
|
+
`;
|
|
14
19
|
const { stdout } = await $({
|
|
15
20
|
cwd: process.cwd(),
|
|
16
|
-
}) `npx create-next-app
|
|
21
|
+
}) `npx create-next-app ${appName} ${typeScript ? '--ts' : '--js'} ${tailwind ? '--tailwind' : '--no-tailwind'} --eslint --app --turbopack --use-npm --yes --disable-git`;
|
|
17
22
|
return stdout;
|
|
18
23
|
};
|
|
19
24
|
export const createReactApp = async (appName, typeScript) => {
|
|
25
|
+
await $({
|
|
26
|
+
cwd: process.cwd(),
|
|
27
|
+
}) `
|
|
28
|
+
npm install -g create-vite@latest
|
|
29
|
+
`;
|
|
20
30
|
const { stdout } = await $({
|
|
21
31
|
cwd: process.cwd(),
|
|
22
32
|
}) `npm create vite@latest ${appName} --- --template ${typeScript ? 'react-ts' : 'react'}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inikit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
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"
|