# All files / examples/server config.ts

100% Statements 10/10
100% Branches 0/0
100% Functions 1/1
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    184x

    4x
    16x
    4x
    4x
    4x
    4x

    4x
    4x

     import { resolve } from 'path'

    export const port = 2021
    const resolveDirname = (target: string) => resolve(__dirname, target)
    const JsFilePath = resolveDirname('../JS')
    const VueFilePath = resolveDirname('../Vue')
    const ReactFilePath = resolveDirname('../React')
    const Vue3FilePath = resolveDirname('../Vue3')
    // dist在外面一层
    const distFilePath = resolve('./dist')
    export const FilePaths = {
      '/JS': JsFilePath,
      '/Vue': VueFilePath,
      '/React': ReactFilePath,
      '/Vue3': Vue3FilePath,
      '/dist': distFilePath
    }