https://github.com/quickheaven/react-app-template
https://github.com/quickheaven/react-app-template
javascript live-server parcel parcel-bundler react reactdom reactjs webdevelopment
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/quickheaven/react-app-template
- Owner: quickheaven
- License: mit
- Created: 2020-01-03T16:46:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-26T01:12:20.000Z (about 1 year ago)
- Last Synced: 2025-02-26T01:33:43.667Z (about 1 year ago)
- Topics: javascript, live-server, parcel, parcel-bundler, react, reactdom, reactjs, webdevelopment
- Language: CSS
- Size: 1.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ReactJS App Template
## Deploying a subfolder to GitHub Pages
### Step 1
Remove the dist directory from the project's .gitignore file.
### Step 2
Make sure git knows about your subtree (the subfolder with your site).
```
git add dist && git commit -m "Initial dist subtree commit"
```
### Step 3
Use subtree push to send it to the gh-pages branch on GitHub.
```
git subtree push --prefix dist origin gh-pages
```
## package.json - Scripts
```
{
"homepage": "https://quickheaven.github.io/react-app-template",
"name": "react",
"version": "1.0.0",
"scripts": {
"start": "parcel ./src/index.html",
"prebuild-dev": "shx rm -rf dist/*",
"build-dev": "parcel ./src/index.html --no-optimize --public-url ./",
"prebuild": "shx rm -rf dist/*",
"build": "parcel ./src/index.html --public-url ./",
"push-gh-pages": "push-dir --dir=dist --branch=gh-pages --cleanup --verbose"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs",
"description": "",
"dependencies": {
"live-server": "^1.2.2",
"parcel": "^2.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.26.9",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"gh-pages": "^6.3.0",
"process": "^0.11.10",
"push-dir": "^0.4.1",
"shx": "^0.3.3"
}
}
```