File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { libsize } from "./libsize";
11
11
import { release , RELEASE_TYPES , toReleaseType } from "./release" ;
12
12
import { sandbox } from "./sandbox" ;
13
13
import { sassdoc } from "./sassdoc" ;
14
+ import { sassMigrator } from "./sassMigrator" ;
14
15
import { shared } from "./shared" ;
15
16
import { themes } from "./themes" ;
16
17
import { typedoc } from "./typedoc" ;
@@ -205,4 +206,6 @@ createCommand("typedoc")
205
206
)
206
207
. action ( ( ) => typedoc ( ) ) ;
207
208
209
+ createCommand ( "migrate" ) . action ( ( ) => sassMigrator ( ) ) ;
210
+
208
211
program . parse ( process . argv ) ;
Original file line number Diff line number Diff line change
1
+ import { exec } from "child_process" ;
2
+ import { promisify } from "util" ;
3
+
4
+ import { glob } from "./utils" ;
5
+
6
+ const execPromise = promisify ( exec ) ;
7
+
8
+ export async function sassMigrator ( ) : Promise < void > {
9
+ const files = await glob ( "packages/!(documentation)/src/**/*.scss" ) ;
10
+
11
+ await Promise . all (
12
+ files . map ( ( file ) => execPromise ( `sass-migrator division ${ file } ` ) )
13
+ ) ;
14
+ }
You can’t perform that action at this time.
0 commit comments