mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-07 23:40:21 -05:00
77b922472c
Co-authored-by: Chris Breiding <chrisbreiding@gmail.com> Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
23 lines
391 B
JavaScript
23 lines
391 B
JavaScript
const fs = require('fs-extra')
|
|
const path = require('path')
|
|
|
|
function dist (...args) {
|
|
const paths = [__dirname, '..', 'dist'].concat(args)
|
|
|
|
return path.join(...paths)
|
|
}
|
|
|
|
module.exports = {
|
|
getPathToDist (...args) {
|
|
return dist(...args)
|
|
},
|
|
|
|
getInjectionContents () {
|
|
return fs.readFile(dist('injection.js'))
|
|
},
|
|
|
|
getPathToIndex () {
|
|
return dist('index.html')
|
|
},
|
|
}
|