This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community.
Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it.
https://www.freifunk-altdorf.de
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.8 KiB
75 lines
1.8 KiB
/** |
|
* Copyright (c) 2015-present, Facebook, Inc. |
|
* |
|
* This source code is licensed under the MIT license found in the |
|
* LICENSE file in the root directory of this source tree. |
|
* |
|
* @flow |
|
*/ |
|
'use strict'; |
|
|
|
const { getProjectCommands } = require('./core'); |
|
|
|
import type { RNConfig } from './core'; |
|
|
|
export type CommandT = { |
|
name: string, |
|
description?: string, |
|
usage?: string, |
|
func: (argv: Array<string>, config: RNConfig, args: Object) => ?Promise<void>, |
|
options?: Array<{ |
|
command: string, |
|
description?: string, |
|
parse?: (val: string) => any, |
|
default?: ((config: RNConfig) => mixed) | mixed, |
|
}>, |
|
examples?: Array<{ |
|
desc: string, |
|
cmd: string, |
|
}>, |
|
pkg?: { |
|
version: string, |
|
name: string, |
|
}, |
|
}; |
|
|
|
const documentedCommands = [ |
|
require('./server/server'), |
|
require('./runIOS/runIOS'), |
|
require('./runAndroid/runAndroid'), |
|
require('./library/library'), |
|
require('./bundle/bundle'), |
|
require('./bundle/unbundle'), |
|
require('./eject/eject'), |
|
require('./link/link'), |
|
require('./link/unlink'), |
|
require('./install/install'), |
|
require('./install/uninstall'), |
|
require('./upgrade/upgrade'), |
|
require('./logAndroid/logAndroid'), |
|
require('./logIOS/logIOS'), |
|
require('./dependencies/dependencies'), |
|
require('./info/info'), |
|
]; |
|
|
|
// The user should never get here because projects are inited by |
|
// using `react-native-cli` from outside a project directory. |
|
const undocumentedCommands = [ |
|
{ |
|
name: 'init', |
|
func: () => { |
|
console.log([ |
|
'Looks like React Native project already exists in the current', |
|
'folder. Run this command from a different folder or remove node_modules/react-native', |
|
].join('\n')); |
|
}, |
|
}, |
|
]; |
|
|
|
const commands: Array<CommandT> = [ |
|
...documentedCommands, |
|
...undocumentedCommands, |
|
...getProjectCommands(), |
|
]; |
|
|
|
module.exports = commands;
|
|
|