Skip to content

Commit faf5b30

Browse files
committed
Add bin folder and entry point for cli
1 parent 0348371 commit faf5b30

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎bin/nativescript‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
AB_DIR="`dirname \"$0\"`"
4+
node "$AB_DIR/nativescript.js" $@

‎bin/nativescript.cmd‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@node %~dp0\nativescript.js %*

‎bin/nativescript.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
require("../lib/nativescript-cli.js");

‎lib/nativescript-cli.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
///<reference path=".d.ts"/>
2+

0 commit comments

Comments
 (0)