BLUE
PHP 7.4.33
Path:
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/@react-native/codegen/lib/cli/generators
Run
Logout
Edit File
Size: 1.42 KB
Close
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/@react-native/codegen/lib/cli/generators/generate-all.js
Text
Base64
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @format */ /** * This generates all possible outputs by executing all available generators. */ 'use strict'; const RNCodegen = require('../../generators/RNCodegen.js'); const fs = require('fs'); const args = process.argv.slice(2); if (args.length < 3) { throw new Error( `Expected to receive path to schema, library name, output directory and module spec name. Received ${args.join( ', ', )}`, ); } const schemaPath = args[0]; const libraryName = args[1]; const outputDirectory = args[2]; const packageName = args[3]; const assumeNonnull = args[4] === 'true' || args[4] === 'True'; const schemaText = fs.readFileSync(schemaPath, 'utf-8'); if (schemaText == null) { throw new Error(`Can't find schema at ${schemaPath}`); } fs.mkdirSync(outputDirectory, { recursive: true, }); let schema; try { schema = JSON.parse(schemaText); } catch (err) { throw new Error(`Can't parse schema to JSON. ${schemaPath}`); } RNCodegen.generate( { libraryName, schema, outputDirectory, packageName, assumeNonnull, }, { generators: [ 'descriptors', 'events', 'props', 'states', 'tests', 'shadow-nodes', 'modulesAndroid', 'modulesCxx', 'modulesIOS', ], }, );
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
generate-all.js
1.42 KB
lrw-r--r--
2025-03-28 11:04:37
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
generate-all.js.flow
1.40 KB
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).