MCPcopy Index your code
hub / github.com/NativeScript/nativescript-sdk-examples-js / build

Function build

scripts/build.js:50–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48};
49
50function build() {
51 // Re-create the `dist` dir
52 var cwd = process.cwd();
53 var distDir = path.join(cwd, "dist");
54 rimraf.sync(distDir);
55 fs.mkdirSync(distDir);
56
57 var articlesDir = path.join(distDir, "cookbook");
58 fs.mkdirSync(articlesDir);
59
60 var appDir = path.join(cwd, "app");
61
62 var mainOverview = path.join(appDir, "global-overview.md");
63 fs.copySync(mainOverview, path.join(articlesDir, "overview.md"));
64
65 var jenkinsPosition = 1;
66
67 gatherArticles(cwd, appDir, articlesDir, jenkinsPosition);
68};
69
70function gatherArticles(cwd, appDir, articlesDir, jenkinsPosition) {
71 // Gather all main subfolders - ui

Callers 1

build.jsFile · 0.85

Calls 1

gatherArticlesFunction · 0.85

Tested by

no test coverage detected