Skip to content

Commit 6cafe04

Browse files
sis0k0NathanWalker
authored andcommitted
Fix(npm scripts): remove postinstall and uninstall scripts (#107)
* chore(CI): remove postinstall tests * fix(npm scripts): remove postinstall and uninstall scripts The postinstall and uninstall scripts are no longer needed after change NativeScript/NativeScript#3035 in `tns-core-modules`. The above change enables shorthand css import from `tns_modules`. Closes #95
1 parent ed31f63 commit 6cafe04

File tree

10 files changed

+4
-387
lines changed

10 files changed

+4
-387
lines changed

.travis.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
language: node_js
2-
node_js:
3-
- "6"
4-
5-
cache:
6-
directories:
7-
- .nvm
2+
node_js: "6"
83

94
before_install:
10-
- ./scripts/travis/lint.sh
5+
- ./scripts/lint.sh
116

127
install:
13-
- ./scripts/travis/install.sh
8+
- echo no | npm install
149

1510
script:
16-
- ./scripts/travis/build.sh
17-
- ./scripts/travis/test.sh
11+
- npm run builder

nativescript-theme-core.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,5 @@
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/NativeScript/theme"
11-
},
12-
"scripts": {
13-
"postinstall": "node scripts/postinstall.js",
14-
"uninstall": "node scripts/uninstall.js"
1511
}
1612
}

scripts/builder.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ fs.mkdirSync("nativescript-theme-core");
1717
fs.mkdirSync("nativescript-theme-core/css");
1818
fs.mkdirSync("nativescript-theme-core/theme-core-scss");
1919
fs.mkdirSync("nativescript-theme-core/fonts");
20-
fs.mkdirSync("nativescript-theme-core/scripts");
21-
2220

2321
var version = getVersion();
2422
var versionPlaceholder = "__VERSION__";
@@ -36,17 +34,9 @@ copyFonts();
3634
// Copy our Package
3735
copyFile("./nativescript-theme-core.json", "./nativescript-theme-core/package.json");
3836

39-
// Copy our Post Install Script
40-
copyFile("./scripts/postinstall.js", "./nativescript-theme-core/scripts/postinstall.js");
41-
42-
// Copy our Un-install
43-
copyFile("./scripts/uninstall.js", "./nativescript-theme-core/scripts/uninstall.js");
44-
4537
// Copy our Readme
4638
copyFile("./nativescript-theme-core.md", "./nativescript-theme-core/readme.md");
4739

48-
49-
5040
console.log("Change to the 'nativescript-theme-core' folder and you can now do your `npm publish`");
5141
// TODO: We could Automatically run "npm publish"
5242

File renamed without changes.

scripts/postinstall.js

Lines changed: 0 additions & 173 deletions
This file was deleted.

scripts/travis/build.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

scripts/travis/env.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

scripts/travis/install.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

scripts/travis/test.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)