@akinon/projectzero 1.33.1 → 1.33.2
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/CHANGELOG.md +6 -0
- package/app-template/CHANGELOG.md +12 -0
- package/app-template/package.json +9 -9
- package/commands/create.ts +5 -0
- package/dist/commands/create.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.33.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @akinon/next@1.33.2
|
|
8
|
+
- @akinon/pz-b2b@1.33.2
|
|
9
|
+
- @akinon/pz-gpay@1.33.2
|
|
10
|
+
- @akinon/pz-masterpass@1.33.2
|
|
11
|
+
- @akinon/pz-one-click-checkout@1.33.2
|
|
12
|
+
- @akinon/pz-otp@1.33.2
|
|
13
|
+
- @akinon/pz-pay-on-delivery@1.33.2
|
|
14
|
+
|
|
3
15
|
## 1.33.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.2",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"prestart": "pz-prestart"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@akinon/next": "1.33.
|
|
26
|
-
"@akinon/pz-b2b": "1.33.
|
|
27
|
-
"@akinon/pz-gpay": "1.33.
|
|
28
|
-
"@akinon/pz-masterpass": "1.33.
|
|
29
|
-
"@akinon/pz-one-click-checkout": "1.33.
|
|
30
|
-
"@akinon/pz-otp": "1.33.
|
|
31
|
-
"@akinon/pz-pay-on-delivery": "1.33.
|
|
25
|
+
"@akinon/next": "1.33.2",
|
|
26
|
+
"@akinon/pz-b2b": "1.33.2",
|
|
27
|
+
"@akinon/pz-gpay": "1.33.2",
|
|
28
|
+
"@akinon/pz-masterpass": "1.33.2",
|
|
29
|
+
"@akinon/pz-one-click-checkout": "1.33.2",
|
|
30
|
+
"@akinon/pz-otp": "1.33.2",
|
|
31
|
+
"@akinon/pz-pay-on-delivery": "1.33.2",
|
|
32
32
|
"@hookform/resolvers": "2.9.0",
|
|
33
33
|
"@next/third-parties": "14.1.0",
|
|
34
34
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"yup": "0.32.11"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@akinon/eslint-plugin-projectzero": "1.33.
|
|
55
|
+
"@akinon/eslint-plugin-projectzero": "1.33.2",
|
|
56
56
|
"@semantic-release/changelog": "6.0.2",
|
|
57
57
|
"@semantic-release/exec": "6.0.3",
|
|
58
58
|
"@semantic-release/git": "10.0.1",
|
package/commands/create.ts
CHANGED
|
@@ -104,6 +104,10 @@ function updatePluginsFile(projectDir: string): void {
|
|
|
104
104
|
fs.writeFileSync(pluginsFilePath, content, { encoding: 'utf8' });
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
function createEnvironmentFile(projectDir: string) {
|
|
108
|
+
fs.copyFileSync(`${projectDir}/.env.example`, `${projectDir}/.env`);
|
|
109
|
+
}
|
|
110
|
+
|
|
107
111
|
export default async (): Promise<void> => {
|
|
108
112
|
const minNodeVersion = 18;
|
|
109
113
|
const currentNodeVersion = parseInt(
|
|
@@ -138,6 +142,7 @@ export default async (): Promise<void> => {
|
|
|
138
142
|
fs.cpSync(templatesDir, projectDir, { recursive: true });
|
|
139
143
|
|
|
140
144
|
updatePluginsFile(projectDir);
|
|
145
|
+
createEnvironmentFile(projectDir);
|
|
141
146
|
|
|
142
147
|
if (answers.projectDescription) {
|
|
143
148
|
updateFileContents(path.join(projectDir, 'akinon.json'), {
|
package/dist/commands/create.js
CHANGED
|
@@ -109,6 +109,9 @@ function updatePluginsFile(projectDir) {
|
|
|
109
109
|
const content = 'module.exports = [];';
|
|
110
110
|
fs.writeFileSync(pluginsFilePath, content, { encoding: 'utf8' });
|
|
111
111
|
}
|
|
112
|
+
function createEnvironmentFile(projectDir) {
|
|
113
|
+
fs.copyFileSync(`${projectDir}/.env.example`, `${projectDir}/.env`);
|
|
114
|
+
}
|
|
112
115
|
exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
113
116
|
const minNodeVersion = 18;
|
|
114
117
|
const currentNodeVersion = parseInt(process.version.replace('v', '').split('.')[0]);
|
|
@@ -125,6 +128,7 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
125
128
|
const templatesDir = path_1.default.resolve(__dirname, '../../../projectzero/app-template');
|
|
126
129
|
fs.cpSync(templatesDir, projectDir, { recursive: true });
|
|
127
130
|
updatePluginsFile(projectDir);
|
|
131
|
+
createEnvironmentFile(projectDir);
|
|
128
132
|
if (answers.projectDescription) {
|
|
129
133
|
updateFileContents(path_1.default.join(projectDir, 'akinon.json'), {
|
|
130
134
|
description: answers.projectDescription
|