UNPKG

1.07 kBTypeScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @format
8 */
9declare type Options = {
10 upgrade?: boolean;
11 force?: boolean;
12 displayName?: string;
13 ignorePaths?: string[];
14};
15/**
16 * Util for creating a new React Native project.
17 * Copy the project from a template and use the correct project name in
18 * all files.
19 * @param srcPath e.g. '/Users/martin/AwesomeApp/node_modules/react-native/template'
20 * @param destPath e.g. '/Users/martin/AwesomeApp'
21 * @param newProjectName e.g. 'AwesomeApp'
22 * @param options e.g. {
23 * upgrade: true,
24 * force: false,
25 * displayName: 'Hello World',
26 * ignorePaths: ['template/file/to/ignore.md'],
27 * }
28 */
29declare function copyProjectTemplateAndReplace(srcPath: string, destPath: string, newProjectName: string, options?: Options): void;
30export default copyProjectTemplateAndReplace;
31//# sourceMappingURL=copyProjectTemplateAndReplace.d.ts.map
\No newline at end of file