File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 3
3
export class CreateProjectCommand implements ICommand {
4
4
constructor ( private $projectService : IProjectService ) { }
5
5
6
+ public enableHooks = false ;
7
+
6
8
execute ( args : string [ ] ) : IFuture < void > {
7
9
return ( ( ) => {
8
10
this . $projectService . createProject ( args [ 0 ] ) . wait ( ) ;
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ interface INpmInstallOptions {
14
14
15
15
interface IStaticConfig extends Config . IStaticConfig { }
16
16
17
+ interface IConfiguration extends Config . IConfig { }
18
+
17
19
interface IApplicationPackage {
18
20
packageName : string ;
19
21
time : Date ;
Original file line number Diff line number Diff line change 3
3
4
4
import path = require( "path" ) ;
5
5
6
- require ( "./common/extensions" ) ;
7
6
require ( "./bootstrap" ) ;
8
7
require ( "./options" ) ;
9
8
@@ -12,11 +11,8 @@ errors.installUncaughtExceptionListener();
12
11
13
12
$injector . register ( "config" , {
14
13
CI_LOGGER : false ,
15
- PROJECT_FILE_NAME : ".tnsproject" ,
16
14
DEBUG : process . env . NATIVESCRIPT_DEBUG ,
17
- version : require ( "../package.json" ) . version ,
18
- helpTextPath : path . join ( __dirname , "../resources/help.txt" ) ,
19
- client : "nativescript"
15
+ TYPESCRIPT_COMPILER_OPTIONS : { }
20
16
} ) ;
21
17
22
18
var dispatcher = $injector . resolve ( "dispatcher" ) ;
Original file line number Diff line number Diff line change 2
2
3
3
import path = require( "path" ) ;
4
4
import helpers = require( "./common/helpers" ) ;
5
+ import commonOptions = require( "./common/options" ) ;
5
6
import osenv = require( "osenv" ) ;
6
7
7
8
var knownOpts :any = {
@@ -27,8 +28,12 @@ var knownOpts:any = {
27
28
"p" : "path"
28
29
} ;
29
30
31
+ _ . extend ( knownOpts , commonOptions . knownOpts ) ;
32
+ _ . extend ( shorthands , commonOptions . shorthands ) ;
33
+
30
34
var defaultProfileDir = path . join ( osenv . home ( ) , ".nativescript-cli" ) ;
31
- var parsed = helpers . getParsedOptions ( knownOpts , shorthands , defaultProfileDir ) ;
35
+ var parsed = helpers . getParsedOptions ( knownOpts , shorthands ) ;
36
+ parsed [ "profile-dir" ] = parsed [ "profile-dir" ] || defaultProfileDir ;
32
37
33
38
Object . keys ( parsed ) . forEach ( ( opt ) => exports [ opt ] = parsed [ opt ] ) ;
34
39
You can’t perform that action at this time.
0 commit comments