You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **You should login to the Microsoft Corp with your MSFT acount in your PC. When use the Default Template**
4
6
5
7
-[Creating an App](#creating-an-app) – How to create a new app.
6
8
-[User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.
7
9
8
-
Create React App works on macOS, Windows, and Linux.
10
+
Create DG React App works on macOS, Windows, and Linux.
9
11
10
12
## Quick Overview
11
13
12
14
```sh
13
-
npm create dg-react my-app
14
-
cdmy-app
15
+
npm create dg-react dg-app
16
+
cddg-app
15
17
npm start
16
18
```
17
19
@@ -36,32 +38,34 @@ To create a new app, you may choose one of the following methods:
36
38
### npx
37
39
38
40
```sh
39
-
npx create-react-app my-app
41
+
npx create-dg-react dg-app
40
42
```
41
43
42
44
_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) is a package runner tool that comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_
43
45
44
46
### npm
45
47
46
48
```sh
47
-
npm init dg-react my-app
49
+
npm create dg-react dg-app
48
50
```
49
51
50
-
_`npm init <initializer>` is available in npm 6+_
52
+
_`npm create <initializer>` is available in npm 6+_
51
53
52
54
### Yarn
53
55
54
56
```sh
55
-
yarn create dg-react my-app
57
+
yarn create dg-react dg-app
56
58
```
57
59
58
60
_`yarn create` is available in Yarn 0.25+_
59
61
60
-
It will create a directory called `my-app` inside the current folder.<br>
62
+
### Default template
63
+
64
+
It will create a directory called `dg-app` inside the current folder.<br>
61
65
Inside that directory, it will generate the initial project structure and install the transitive dependencies:
62
66
63
67
```
64
-
my-app
68
+
dg-app
65
69
├── README.md
66
70
├── node_modules
67
71
├── package.json
@@ -74,7 +78,7 @@ my-app
74
78
├── App.scss
75
79
├── App.tsx
76
80
├── App.test.tsx
77
-
├── index.css
81
+
├── index.scss
78
82
├── index.tsx
79
83
├── logo.svg
80
84
└── serviceWorker.ts
@@ -84,31 +88,33 @@ No configuration or complicated folder structures, only the files you need to bu
84
88
Once the installation is done, you can open your project folder:
85
89
86
90
```sh
87
-
cdmy-app
91
+
cddg-app
88
92
```
89
93
90
94
Inside the newly created project, you can run some built-in commands:
91
95
92
-
### `npm start` or `yarn start`
96
+
#### `npm start` or `yarn start`
97
+
98
+
Runs the app in development mode.
93
99
94
-
Runs the app in development mode.<br>
95
100
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
96
101
97
-
The page will automatically reload if you make changes to the code.<br>
102
+
The page will automatically reload if you make changes to the code.
103
+
98
104
You will see the build errors and lint warnings in the console.
By default, runs tests related to files changed since the last commit.
108
114
109
115
[Read more about testing.](https://facebook.github.io/create-react-app/docs/running-tests)
110
116
111
-
### `npm run build` or `yarn build`
117
+
####`npm run build` or `yarn build`
112
118
113
119
Builds the app for production to the `build` folder.<br>
114
120
It correctly bundles React in production mode and optimizes the build for the best performance.
@@ -119,24 +125,31 @@ Your app is ready to be deployed.
119
125
120
126
## User Guide
121
127
122
-
You can find detailed instructions on using Create React App and many tips in [its documentation](https://facebook.github.io/create-react-app/).
128
+
You can find detailed instructions on using Create DG App and many tips in [Create React App documentation (almost the same behaviors)](https://facebook.github.io/create-react-app/).
129
+
130
+
### How to Update to New Versions?
131
+
132
+
#### if you want to update current project (already exists)
123
133
124
-
## How to Update to New Versions?
134
+
just update the dependency `@dragongate/react-scripts`.
125
135
126
-
Please refer to the [User Guide](https://facebook.github.io/create-react-app/docs/updating-to-new-releases) for this and other information.
136
+
#### if you want to create a new project
137
+
138
+
just [create a app](#creating-an-app) without global install.
127
139
128
140
## Philosophy
129
141
130
142
-**One Dependency:** There is only one build dependency. It uses Webpack, Babel, ESLint, and other amazing projects, but provides a cohesive curated experience on top of them.
131
143
132
-
-**No Configuration Required:** You don't need to configure anything. A reasonably good configuration of both development and production builds is handled for you so you can focus on writing code.
133
-
134
-
-**No Lock-In:** You can “eject” to a custom setup at any time. Run a single command, and all the configuration and build dependencies will be moved directly into your project, so you can pick up right where you left off.
144
+
-**No Configuration:** You don't need to configure anything. A reasonably good configuration of both development and production builds is handled for you so you can focus on writing code.
135
145
136
146
## What’s Included?
137
147
138
148
Your environment will have everything you need to build a modern single-page React app:
139
149
150
+
- Integrated with Azure pipelines
151
+
- Shared vscode (IDE) config and plugins
152
+
- Force formatting
140
153
- React, JSX, ES6, TypeScript and Flow syntax support.
141
154
- Language extras beyond ES6 like the object spread operator.
142
155
- Autoprefixed CSS, so you don’t need `-webkit-` or other prefixes.
@@ -146,44 +159,8 @@ Your environment will have everything you need to build a modern single-page Rea
146
159
- An offline-first [service worker](https://developers.google.com/web/fundamentals/getting-started/primers/service-workers) and a [web app manifest](https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/), meeting all the [Progressive Web App](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) criteria. (_Note: Using the service worker is opt-in as of `react-scripts@2.0.0` and higher_)
147
160
- Hassle-free updates for the above tools with a single dependency.
148
161
149
-
Check out [this guide](https://github.com/nitishdayal/cra_closer_look) for an overview of how these tools fit together.
150
-
151
162
The tradeoff is that **these tools are preconfigured to work in a specific way**. If your project needs more customization, you can ["eject"](https://facebook.github.io/create-react-app/docs/available-scripts#npm-run-eject) and customize it, but then you will need to maintain this configuration.
152
163
153
-
## Popular Alternatives
154
-
155
-
Create React App is a great fit for:
156
-
157
-
-**Learning React** in a comfortable and feature-rich development environment.
158
-
-**Starting new single-page React applications.**
159
-
-**Creating examples** with React for your libraries and components.
160
-
161
-
Here are a few common cases where you might want to try something else:
162
-
163
-
- If you want to **try React** without hundreds of transitive build tool dependencies, consider [using a single HTML file or an online sandbox instead](https://reactjs.org/docs/try-react.html).
164
-
165
-
- If you need to **integrate React code with a server-side template framework** like Rails, Django or Symfony, or if you’re **not building a single-page app**, consider using [nwb](https://github.com/insin/nwb), or [Neutrino](https://neutrino.js.org/) which are more flexible. For Rails specifically, you can use [Rails Webpacker](https://github.com/rails/webpacker). For Symfony, try [Symfony's Webpack Encore](https://symfony.com/doc/current/frontend/encore/reactjs.html).
166
-
167
-
- If you need to **publish a React component**, [nwb](https://github.com/insin/nwb) can [also do this](https://github.com/insin/nwb#react-components-and-libraries), as well as [Neutrino's react-components preset](https://neutrino.js.org/packages/react-components/).
168
-
169
-
- If you want to do **server rendering** with React and Node.js, check out [Next.js](https://github.com/zeit/next.js/) or [Razzle](https://github.com/jaredpalmer/razzle). Create React App is agnostic of the backend, and only produces static HTML/JS/CSS bundles.
170
-
171
-
- If your website is **mostly static** (for example, a portfolio or a blog), consider using [Gatsby](https://www.gatsbyjs.org/) instead. Unlike Create React App, it pre-renders the website into HTML at the build time.
172
-
173
-
- Finally, if you need **more customization**, check out [Neutrino](https://neutrino.js.org/) and its [React preset](https://neutrino.js.org/packages/react/).
174
-
175
-
All of the above tools can work with little to no configuration.
176
-
177
-
If you prefer configuring the build yourself, [follow this guide](https://reactjs.org/docs/add-react-to-an-existing-app.html).
178
-
179
-
## Acknowledgements
180
-
181
-
We are grateful to the authors of existing related projects for their ideas and collaboration:
182
-
183
-
-[@eanplatter](https://github.com/eanplatter)
184
-
-[@insin](https://github.com/insin)
185
-
-[@mxstbr](https://github.com/mxstbr)
186
-
187
164
## License
188
165
189
-
Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/master/LICENSE).
0 commit comments