mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-26 03:35:19 +00:00
website update script should add robodog to webRoot/themes/uppy, too
This commit is contained in:
parent
9e4a788564
commit
aef00725ee
1 changed files with 3 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ const touch = require('touch')
|
|||
|
||||
const webRoot = __dirname
|
||||
const uppyRoot = path.join(__dirname, '../packages/uppy')
|
||||
const robodogRoot = path.join(__dirname, '../packages/@uppy/robodog')
|
||||
|
||||
const configPath = path.join(webRoot, '/themes/uppy/_config.yml')
|
||||
const { version } = require(path.join(uppyRoot, '/package.json'))
|
||||
|
|
@ -112,7 +113,8 @@ async function updateSizes (config) {
|
|||
async function injectBuiltFiles () {
|
||||
const cmds = [
|
||||
`mkdir -p ${path.join(webRoot, '/themes/uppy/source/uppy')}`,
|
||||
`cp -vfR ${path.join(uppyRoot, '/dist/*')} ${path.join(webRoot, '/themes/uppy/source/uppy/')}`
|
||||
`cp -vfR ${path.join(uppyRoot, '/dist/*')} ${path.join(webRoot, '/themes/uppy/source/uppy/')}`,
|
||||
`cp -vfR ${path.join(robodogRoot, '/dist/*')} ${path.join(webRoot, '/themes/uppy/source/uppy/')}`
|
||||
].join(' && ')
|
||||
|
||||
const { stdout } = await promisify(exec)(cmds)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue