1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Update webpack stack

This commit is contained in:
Chocobozzz 2017-06-11 15:19:43 +02:00
parent 8635a2c70c
commit 1840c2f7c9
32 changed files with 424 additions and 77 deletions

View file

@ -23,10 +23,6 @@ function createEmptyCallback () {
}
}
function isTestInstance () {
return process.env.NODE_ENV === 'test'
}
function getFormatedObjects (objects: any[], objectsTotal: number) {
const formatedObjects = []
@ -40,18 +36,11 @@ function getFormatedObjects (objects: any[], objectsTotal: number) {
}
}
function root () {
// We are in /dist/helpers/utils.js
return join(__dirname, '..', '..', '..')
}
// ---------------------------------------------------------------------------
export {
badRequest,
createEmptyCallback,
generateRandomString,
isTestInstance,
getFormatedObjects,
root
getFormatedObjects
}