nl_tokens: Returns data on the project in which the CLI commands are executed . If a qooxdoo . json file exists the data is taken from there . If not it tries the following : 1 ) If a Manifest . json exists in the current dir it is assumed to be the main library dir . 2 ) if a compile . json file exists in the current dir it is assumed to be the application dir 3 ) if not the subdir demo / default is checked for a compile . json file .
pl_tokens: async function ( ) { let qooxdooJsonPath = path . <mask> ( process . cwd ( ) , "qooxdoo.json" ) ; let data = { } ; if ( await fs . existsAsync ( qooxdooJsonPath ) ) { data = await this . parseJsonFile ( qooxdooJsonPath ) ; } else { if ( await fs . existsAsync ( path . join ( process . cwd ( ) , "Manifest.json" ) ) ) { data . libraries = [ { path : "." } ] ; } if ( await fs . existsAsync ( path . join ( process . cwd ( ) , "compile.json" ) ) ) { data . applications = [ { path : "." } ] ; } else if ( await fs . existsAsync ( path . join ( process . cwd ( ) , "demo/default/compile.json" ) ) ) { data . applications = [ { path : "demo/default" } ] ; } } return data ; }