inikit 1.2.0 → 1.2.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/dist/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import { chalkStderr } from 'chalk';
|
|
|
4
4
|
import { titleCase, addCommitlint, addGit, addPrettier, createNextApp, createReactApp, addTailwind, } from './utils.js';
|
|
5
5
|
import path from 'node:path';
|
|
6
6
|
import packageJSON from './package.json' with { type: 'json' };
|
|
7
|
-
const { cyan, green, yellow } = chalkStderr;
|
|
7
|
+
const { cyan, green, yellow, gray } = chalkStderr;
|
|
8
8
|
const response = async () => await p.group({
|
|
9
9
|
projectName: () => {
|
|
10
|
-
p.log.info(`Welcome to ${green(titleCase(packageJSON.name) + ' v' + packageJSON.version)}\n
|
|
10
|
+
p.log.info(`Welcome to ${green(titleCase(packageJSON.name) + ' v' + packageJSON.version)}\n${gray(`- by ${packageJSON.author.name}`)}`);
|
|
11
11
|
return p.text({
|
|
12
12
|
message: `Enter the ${cyan('project name')}`,
|
|
13
13
|
placeholder: 'my-app',
|
|
@@ -51,6 +51,7 @@ const response = async () => await p.group({
|
|
|
51
51
|
},
|
|
52
52
|
],
|
|
53
53
|
initialValues: ['tailwind', 'prettier', 'commitlint'],
|
|
54
|
+
required: false,
|
|
54
55
|
});
|
|
55
56
|
},
|
|
56
57
|
// libraries: () =>
|
package/dist/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inikit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Best way to get started with Next.js and React project.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
8
|
"build": "npx eslint . && npm run clean && tsc && cp -r templates dist/templates",
|
|
9
9
|
"clean": "rm -rf dist",
|
|
10
|
+
"lint": "eslint . ",
|
|
11
|
+
"lint:fix": "eslint . --fix",
|
|
12
|
+
"format": "prettier --write .",
|
|
10
13
|
"dev": "tsx index.ts",
|
|
11
14
|
"prepare": "husky",
|
|
12
15
|
"deploy": "npm run build && npm publish --access public"
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import 'tailwindcss';
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
5
|
+
line-height: 1.5;
|
|
6
|
+
font-weight: 400;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
color-scheme: light dark;
|
|
9
|
+
color: rgba(255, 255, 255, 0.87);
|
|
10
|
+
background-color: #242424;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
font-synthesis: none;
|
|
13
|
+
text-rendering: optimizeLegibility;
|
|
14
|
+
-webkit-font-smoothing: antialiased;
|
|
15
|
+
-moz-osx-font-smoothing: grayscale;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
a {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
color: #646cff;
|
|
21
|
+
text-decoration: inherit;
|
|
22
22
|
}
|
|
23
23
|
a:hover {
|
|
24
|
-
|
|
24
|
+
color: #535bf2;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
body {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
margin: 0;
|
|
29
|
+
display: flex;
|
|
30
|
+
place-items: center;
|
|
31
|
+
min-width: 320px;
|
|
32
|
+
min-height: 100vh;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
h1 {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
font-size: 3.2em;
|
|
37
|
+
line-height: 1.1;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
button {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
border: 1px solid transparent;
|
|
43
|
+
padding: 0.6em 1.2em;
|
|
44
|
+
font-size: 1em;
|
|
45
|
+
font-weight: 500;
|
|
46
|
+
font-family: inherit;
|
|
47
|
+
background-color: #1a1a1a;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
transition: border-color 0.25s;
|
|
50
50
|
}
|
|
51
51
|
button:hover {
|
|
52
|
-
|
|
52
|
+
border-color: #646cff;
|
|
53
53
|
}
|
|
54
54
|
button:focus,
|
|
55
55
|
button:focus-visible {
|
|
56
|
-
|
|
56
|
+
outline: 4px auto -webkit-focus-ring-color;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
@media (prefers-color-scheme: light) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
:root {
|
|
61
|
+
color: #213547;
|
|
62
|
+
background-color: #ffffff;
|
|
63
|
+
}
|
|
64
|
+
a:hover {
|
|
65
|
+
color: #747bff;
|
|
66
|
+
}
|
|
67
|
+
button {
|
|
68
|
+
background-color: #f9f9f9;
|
|
69
|
+
}
|
|
70
70
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import react from '@vitejs/plugin-react';
|
|
3
3
|
import tailwindcss from '@tailwindcss/vite';
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
// https://vite.dev/config/
|
|
7
6
|
export default defineConfig({
|
|
8
7
|
plugins: [react(), tailwindcss()],
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inikit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Best way to get started with Next.js and React project.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
8
|
"build": "npx eslint . && npm run clean && tsc && cp -r templates dist/templates",
|
|
9
9
|
"clean": "rm -rf dist",
|
|
10
|
+
"lint": "eslint . ",
|
|
11
|
+
"lint:fix": "eslint . --fix",
|
|
12
|
+
"format": "prettier --write .",
|
|
10
13
|
"dev": "tsx index.ts",
|
|
11
14
|
"prepare": "husky",
|
|
12
15
|
"deploy": "npm run build && npm publish --access public"
|
|
@@ -61,4 +64,4 @@
|
|
|
61
64
|
"execa": "^9.5.3",
|
|
62
65
|
"tsx": "^4.19.4"
|
|
63
66
|
}
|
|
64
|
-
}
|
|
67
|
+
}
|