Skip to content

Commit

Permalink
991206 improvment nuxt file & add the files in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza-ab committed Feb 24, 2021
1 parent 6e2dbb0 commit b9bee75
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ pnpm-debug.log*
*.sln
*.sw?

// Cypress additional files
# Cypress additional files
cypress/videos
cypress/screenshots
10 changes: 4 additions & 6 deletions nuxt.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { join, resolve } from 'path'
import { join } from 'path'

export default function (option) {
if (option['PersianDate'])
this.addPlugin({
src: resolve(__dirname, '../persian-date/lib/plugin.js'),
fileName: 'PersianDate.js'
})
if (option['PersianDate']) {
this.addModule('@alireza-ab/persian-date/lib/nuxt')
}
this.nuxt.hook('components:dirs', (dirs) => {
dirs.push({
path: join(__dirname, 'src/components'),
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"vue persian datepicker",
"vue persian range datepicker"
],
"files": [
"src",
"dist",
"nuxt.js"
],
"author": "Alireza Alibeiki <[email protected]>",
"license": "MIT",
"dependencies": {
Expand Down

0 comments on commit b9bee75

Please sign in to comment.