create-nuxt-base 0.1.7 → 0.1.9
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 +15 -0
- package/index.js +39 -0
- package/nuxt-base-template/package.json +2 -1
- package/package.json +1 -1
- package/nuxt-base-template/package-lock.json +0 -27290
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.9](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.8...v0.1.9) (2023-04-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* Add pinia ([230246a](https://github.com/lenneTech/nuxt-base-starter/commit/230246ab16c16122255ad697dfc506fc417a2649))
|
|
11
|
+
|
|
12
|
+
### [0.1.8](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.7...v0.1.8) (2023-03-31)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Add version check ([fe85709](https://github.com/lenneTech/nuxt-base-starter/commit/fe857099af96fa3fda0e06faecbd483e59f279fd))
|
|
18
|
+
* Remove package-lock.json ([149a88a](https://github.com/lenneTech/nuxt-base-starter/commit/149a88ab9917a9738ed5916a3604dd50557405d8))
|
|
19
|
+
|
|
5
20
|
### [0.1.7](https://github.com/lenneTech/nuxt-base-starter/compare/v0.1.6...v0.1.7) (2023-03-31)
|
|
6
21
|
|
|
7
22
|
|
package/index.js
CHANGED
|
@@ -5,6 +5,21 @@ async function create() {
|
|
|
5
5
|
const fs = require("fs");
|
|
6
6
|
const path = require("path");
|
|
7
7
|
const childProcess = require("child_process");
|
|
8
|
+
const pjson = require('./package.json');
|
|
9
|
+
|
|
10
|
+
console.log('ℹ️ create-nuxt-base started in version ', pjson.version);
|
|
11
|
+
|
|
12
|
+
const packageInfos = await getPackageData(pjson.name);
|
|
13
|
+
|
|
14
|
+
if (packageInfos) {
|
|
15
|
+
const latestVersion = packageInfos['dist-tags'].latest;
|
|
16
|
+
|
|
17
|
+
if (latestVersion !== pjson.version) {
|
|
18
|
+
console.log('📣 Its a newer version of create-nuxt-base available!', pjson.version);
|
|
19
|
+
console.log('Your version', pjson.version);
|
|
20
|
+
console.log('Available version', latestVersion);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
8
23
|
|
|
9
24
|
const projectName = process.argv[2];
|
|
10
25
|
|
|
@@ -112,4 +127,28 @@ async function copyFiles(from, to) {
|
|
|
112
127
|
}
|
|
113
128
|
}
|
|
114
129
|
|
|
130
|
+
function getPackageData(packageName) {
|
|
131
|
+
const https = require('https');
|
|
132
|
+
|
|
133
|
+
return new Promise((resolve, reject) => {
|
|
134
|
+
https
|
|
135
|
+
.get('https://registry.npmjs.org/' + packageName, (resp) => {
|
|
136
|
+
let data = '';
|
|
137
|
+
|
|
138
|
+
// A chunk of data has been received.
|
|
139
|
+
resp.on('data', (chunk) => {
|
|
140
|
+
data += chunk;
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
// The whole response has been received. Print out the result.
|
|
144
|
+
resp.on('end', () => {
|
|
145
|
+
resolve(JSON.parse(data));
|
|
146
|
+
});
|
|
147
|
+
})
|
|
148
|
+
.on('error', (err) => {
|
|
149
|
+
reject(err);
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
|
|
115
154
|
create();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-nuxt-base",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Starter to generate a configured environment with VueJS, Nuxt, Tailwind, Eslint, @lenne.tech/nuxt-base, Storybook, Unit Tests, Cypress etc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|