Skip to content

Commit 6556a21

Browse files
Nathanael AndersonNathanWalker
authored andcommitted
Updated build and postinstall scripts for new SCSS locations and to fix #78 / #79 (#80)
1 parent caa245b commit 6556a21

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

scripts/builder.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*************************************************************************************
22
* Licensed under the APACHE license
33
*
4-
* Version 0.0.1 Nathan@master-technology.com
4+
* Version 0.0.5 Nathan@master-technology.com
55
************************************************************************************/
66
"use strict";
77

@@ -16,7 +16,7 @@ if (fs.existsSync('nativescript-theme-core')) {
1616
}
1717
fs.mkdirSync("nativescript-theme-core");
1818
fs.mkdirSync("nativescript-theme-core/css");
19-
fs.mkdirSync("nativescript-theme-core/scss");
19+
fs.mkdirSync("nativescript-theme-core/theme-core-scss");
2020
fs.mkdirSync("nativescript-theme-core/fonts");
2121
fs.mkdirSync("nativescript-theme-core/scripts");
2222

@@ -84,15 +84,15 @@ function copySCSS() {
8484
});
8585

8686
for (var i=0;i<sassFiles.length;i++) {
87-
var out = sassFiles[i].replace('./app/', './nativescript-theme-core/scss/');
87+
var out = sassFiles[i].replace('./app/', './nativescript-theme-core/');
8888

8989
var paths = sassFiles[i].split('/');
9090
// eliminate the ['.' and 'app']
9191
paths.shift();
9292
paths.shift();
9393

9494
if (paths.length > 1) {
95-
var path = './nativescript-theme-core/scss';
95+
var path = './nativescript-theme-core';
9696
for (var j=0;j<paths.length-1;j++) {
9797
path += '/' + paths[j];
9898
if (!fs.existsSync(path)) {

scripts/postinstall.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*************************************************************************************
22
* Licensed under the APACHE license
33
*
4-
* Version 0.0.3 Nathan@master-technology.com
4+
* Version 0.0.5 Nathan@master-technology.com
55
************************************************************************************/
66
"use strict";
77

@@ -69,7 +69,12 @@ copyFolder(cwd + "fonts", appDir + "fonts");
6969
// ------------------------------------------------------
7070

7171
if (hasSCSS) {
72-
copyFolder(cwd+"scss", appDir+"scss");
72+
copyFolder(cwd+"theme-core-scss", appDir+"theme-core-scss");
73+
copyFile(cwd, appDir, "_bootstrap-map.scss");
74+
copyFile(cwd, appDir, "core.dark.android.scss");
75+
copyFile(cwd, appDir, "core.dark.ios.scss");
76+
copyFile(cwd, appDir, "core.light.android.scss");
77+
copyFile(cwd, appDir, "core.light.ios.scss");
7378
}
7479

7580

0 commit comments

Comments
 (0)