@lotte-innovate/ui-component-test 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/post-tinymce.js +6 -5
package/package.json
CHANGED
package/post-tinymce.js
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
import fs from 'fs';
|
2
2
|
import path from 'path';
|
3
3
|
|
4
|
+
const sourceFile =
|
5
|
+
'node_modules/@lotte-innovate/ui-component-test/public/tinymce/skins/ui/oxide/content.min.css';
|
6
|
+
const destinationFile = 'public/tinymce/skins/ui/oxide/content.min.css';
|
7
|
+
|
4
8
|
function copyFile(src, dest) {
|
5
9
|
const destDir = path.dirname(dest);
|
6
10
|
|
@@ -8,12 +12,9 @@ function copyFile(src, dest) {
|
|
8
12
|
fs.mkdirSync(destDir, { recursive: true });
|
9
13
|
}
|
10
14
|
|
15
|
+
// 파일 복사
|
11
16
|
fs.copyFileSync(src, dest);
|
12
|
-
console.log(
|
17
|
+
console.log(`파일이 성공적으로 복사되었습니다: ${dest}`);
|
13
18
|
}
|
14
19
|
|
15
|
-
// skins 파일도 같이 배포 <= 이 경로로 sourceFile 바라보게 !!!
|
16
|
-
const sourceFile = 'public/tinymce/skins/ui/oxide/content.min.css';
|
17
|
-
const destinationFile = 'public/tinymce/skins/ui/oxide/content.min.css';
|
18
|
-
|
19
20
|
copyFile(sourceFile, destinationFile);
|