forked from slab/quill
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
718a6db
commit 14f911b
Showing
7 changed files
with
2,303 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ | |
.vscode/ | ||
.cache/ | ||
.http-log | ||
/playground/css | ||
/playground/js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { existsSync, mkdirSync, cpSync } from 'fs'; | ||
import { join } from 'path'; | ||
|
||
const DEVEXTREME_PATH = '../DevExtreme'; | ||
const PLAYGROUND_PATH = './playground'; | ||
const DEVEXTREME_ARTIFACTS_PATH = '../DevExtreme/packages/devextreme/artifacts'; | ||
|
||
const ARTIFACTS_JS_PATH = join(DEVEXTREME_ARTIFACTS_PATH, 'js'); | ||
const ARTIFACTS_CSS_PATH = join(DEVEXTREME_ARTIFACTS_PATH, 'css'); | ||
const PLAYGROUND_JS_PATH = join(PLAYGROUND_PATH, 'js'); | ||
const PLAYGROUND_CSS_PATH = join(PLAYGROUND_PATH, 'css'); | ||
|
||
function prepareFolders() { | ||
[PLAYGROUND_CSS_PATH, PLAYGROUND_JS_PATH].forEach((folder) => { | ||
if (!existsSync(folder)) { | ||
mkdirSync(folder); | ||
} | ||
}); | ||
} | ||
|
||
function copyJsFiles() { | ||
cpSync(ARTIFACTS_JS_PATH, PLAYGROUND_JS_PATH, { recursive: true }); | ||
} | ||
|
||
function copyCssFiles() { | ||
cpSync(ARTIFACTS_CSS_PATH, PLAYGROUND_CSS_PATH, { recursive: true }); | ||
} | ||
|
||
(() => { | ||
if (existsSync(DEVEXTREME_PATH)) { | ||
prepareFolders(); | ||
copyJsFiles(); | ||
copyCssFiles(); | ||
console.log('Playground is ready'); | ||
} else { | ||
console.log('DevExtreme folder was not found'); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.