|
@@ -1,4 +1,4 @@
|
|
|
-var fs = require('fs')
|
|
|
+var fs = require('fs')
|
|
|
var path = require('path')
|
|
|
var chalk = require('chalk');
|
|
|
|
|
@@ -34,15 +34,21 @@ fs.writeFileSync(
|
|
|
)
|
|
|
|
|
|
// Copy latest uppy version into website so the CDN example can use it
|
|
|
-fs.writeFileSync(
|
|
|
- webRoot + '/themes/uppy/source/js/uppy.js',
|
|
|
- fs.readFileSync(locations.dev, 'utf-8')
|
|
|
-);
|
|
|
-console.info(chalk.green('✓ injected: '), chalk.dim('uppy.js build into site'));
|
|
|
-
|
|
|
+// fs.writeFileSync(
|
|
|
+// webRoot + '/themes/uppy/source/js/uppy.js',
|
|
|
+// fs.readFileSync(locations.dev, 'utf-8')
|
|
|
+// );
|
|
|
+// console.info(chalk.green('✓ injected: '), chalk.dim('uppy.js build into site'));
|
|
|
+//
|
|
|
+//
|
|
|
+// fs.writeFileSync(
|
|
|
+// webRoot + '/themes/uppy/source/css/uppy.css',
|
|
|
+// fs.readFileSync(locations.css, 'utf-8')
|
|
|
+// );
|
|
|
+// console.info(chalk.green('✓ injected: '), chalk.dim('uppy.css build into site'));
|
|
|
|
|
|
-fs.writeFileSync(
|
|
|
- webRoot + '/themes/uppy/source/css/uppy.css',
|
|
|
- fs.readFileSync(locations.css, 'utf-8')
|
|
|
-);
|
|
|
-console.info(chalk.green('✓ injected: '), chalk.dim('uppy.css build into site'));
|
|
|
+// Copy latest uppy version into website so the CDN example can use it
|
|
|
+var exec = require('child_process').exec;
|
|
|
+exec('cp -fR ./dist/. ./website/themes/uppy/source/uppy', function (error, stdout, stderr) {
|
|
|
+ console.info(chalk.green('✓ injected: '), chalk.dim('uppy umd build into site'));
|
|
|
+});
|