File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Contributing
2
+
3
+ Cool, I'm glad you decided to contribute to React Native Template TypeScript.
4
+
5
+ Don't worry, I won't bother you with thousands of rules. I want to make contributing to this project as easy and transparent as possible.
6
+
7
+ ## Workflow
8
+
9
+ We use [ GitHub Flow] ( https://guides.github.com/introduction/flow/ ) , so all code changes happen through pull requests.
10
+
11
+ 1 . Fork the repository and create your branch from ` master ` .
12
+ 2 . If you've changed the functionality, update the documentation.
13
+ 3 . Issue that pull request! :tada :
14
+
15
+ ## License
16
+
17
+ By contributing, you agree that your contributions will be licensed under the [ MIT License] ( https://choosealicense.com/licenses/mit/ ) .
18
+
19
+ ## Code style
20
+
21
+ Currently there is no lint configuration, but you should try to stay consistent with the existing code.
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ const isYarnAvailable = () => {
20
20
const packageManager = isYarnAvailable ( ) ? 'yarn' : 'npm' ;
21
21
const execOptions = { stdio : 'inherit' } ;
22
22
23
- console . log ( '\n 🔄 Please wait...\n' ) ;
23
+ console . log ( '🔄 Please wait...\n' ) ;
24
24
25
25
packageJson . scripts . start = `${ packageJson . scripts . start } --config ../../../../rn-cli.config.js` ;
26
26
packageJson . jest = Object . assign ( packageJson . jest , jestConfig ) ;
27
27
writeFile ( 'package.json' , JSON . stringify ( packageJson , null , 2 ) ) ;
28
28
29
- console . log ( `\n 📦 Installing dependencies with ${ packageManager } ...\n` ) ;
29
+ console . log ( `📦 Installing dependencies with ${ packageManager } ...\n` ) ;
30
30
31
31
switch ( packageManager ) {
32
32
case 'yarn' :
@@ -43,6 +43,8 @@ deleteFile('devDependencies.json');
43
43
deleteFile ( 'jest.json' ) ;
44
44
deleteFile ( 'README.md' ) ;
45
45
deleteFile ( 'LICENSE' ) ;
46
+ deleteFile ( 'CODE_OF_CONDUCT.md' ) ;
47
+ deleteFile ( 'CONTRIBUTING.md' ) ;
46
48
deleteFile ( 'setup.js' ) ;
47
49
48
50
console . log ( `\n✅ Setup completed! You can now start with: ${ packageManager } start\n` ) ;
You can’t perform that action at this time.
0 commit comments