добавляет симлинк
This commit is contained in:
13
scripts/symlink.js
Normal file
13
scripts/symlink.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const fs = require('fs')
|
||||
const process = require('process')
|
||||
const path = require('path')
|
||||
|
||||
const notesSymlink = path.join(process.cwd(), 'src/notes')
|
||||
|
||||
if (!fs.existsSync(notesSymlink)) {
|
||||
fs.symlinkSync(
|
||||
path.join(process.cwd(), '../content/notes'),
|
||||
notesSymlink,
|
||||
'junction'
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user