فهرست منبع

Copy dist contents, not dist itself. Display correct uppy.js location

Kevin van Zonneveld 9 سال پیش
والد
کامیت
1df4cf42ad
3فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 0 3
      .gitignore
  2. 1 1
      bin/bootandkill-servers
  3. 1 1
      website/update.js

+ 0 - 3
.gitignore

@@ -14,10 +14,7 @@ website/public/
 website/.deploy*/
 website/src/_drafts
 website/themes/uppy/source/uppy/
-
 npm-debug.log*
 website/themes/uppy/_config.yml
-
 config/
-
 nohup.out

+ 1 - 1
bin/bootandkill-servers

@@ -96,7 +96,7 @@ echo "[${__base}] --> and I don't know yet how to check for that"
 sleep ${buildWait}
 
 echo "[${__base}] --> Showing uppy.js builds and sizes"
-ls -al dist/uppy.js website/public/js/uppy.js website/themes/uppy/source/uppy/uppy.js || true
+ls -al dist/uppy.js website/public/uppy/uppy.js website/themes/uppy/source/uppy/uppy.js || true
 echo ""
 
 url="http://localhost:4000/uppy/uppy.js"

+ 1 - 1
website/update.js

@@ -52,7 +52,7 @@ var saveConfig = Object.assign({}, defaultConfig, loadedConfig, scanConfig)
 fs.writeFileSync(configPath, YAML.safeDump(saveConfig), 'utf-8')
 console.info(chalk.green('✓ rewritten: '), chalk.dim(configPath))
 
-exec('cp -vfR ' + uppyRoot + '/dist/ ' + webRoot + '/themes/uppy/source/uppy', function (error, stdout, stderr) {
+exec('cp -vfR ' + uppyRoot + '/dist/* ' + webRoot + '/themes/uppy/source/uppy', function (error, stdout, stderr) {
   if (error) {
     console.error(
       chalk.red('x failed to inject: '),