nuxt-spec 0.1.1 → 0.1.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/README.md +2 -2
- package/bin/spec-setup.js +1 -1
- package/bin/utils/create-file.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Aside from being "forked" and used as you seem fit, `nuxt-spec` is also availabl
|
|
|
14
14
|
|
|
15
15
|
1) Add following dependency into your `package.json`:
|
|
16
16
|
```
|
|
17
|
-
"nuxt-spec": "0.1.
|
|
17
|
+
"nuxt-spec": "0.1.2"
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
2) Add following section into your `nuxt.config.ts`:
|
|
@@ -43,7 +43,7 @@ The `nuxt-spec` package comes with a CLI tool that can help you:
|
|
|
43
43
|
To use it, just run the following command in your terminal after you installed `nuxt-spec` package (files must be available in your `node_modules` folder):
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
npx
|
|
46
|
+
npx spec-setup
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
You will be prompted for each action which allows you to choose only one action to run and skip the other.
|
package/bin/spec-setup.js
CHANGED
package/bin/utils/create-file.js
CHANGED
|
@@ -12,7 +12,7 @@ export async function createFileFromTemplate(templateFile, targetFile) {
|
|
|
12
12
|
const __dirname = path.dirname(__filename)
|
|
13
13
|
|
|
14
14
|
const templatePath = path.resolve(__dirname, `../${templateFile}`)
|
|
15
|
-
const targetPath = path.resolve(process.cwd(),
|
|
15
|
+
const targetPath = path.resolve(process.cwd(), targetFile)
|
|
16
16
|
|
|
17
17
|
if (!existsSync(templatePath)) {
|
|
18
18
|
console.error(`Template file not found at ${templatePath}`)
|