프로젝트
GitHub에서 보기
bonniee/react-starter
소개
React + Babel + Webpack starter kit, for building simple static sites with React. Deploys to surge.sh.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalReact starter kit
A quick starter repo for React projects.
- React
- Babel
- Webpack
- Jasmine + Karma + PhantomJS
Install
npm install
Build
webpack
Test
npm test
Preview
While developing, you'll likely want to preview your changes locally.
webpack --watch
python -m SimpleHTTPServer
open http://localhost:8000
Deploy
You can deploy with surge.sh, or with your favorite method of deploying static sites.
npm install -g surge
surge
Project structure
├── LICENSE
├── README.md
├── app.js
├── components
│ ├── Hello.js
│ └── tests
│ └── hello-test.js
├── index.html
├── karma.conf.js
├── package.json
├── static
│ └── bundle.js
├── tests.webpack.js
└── webpack.config.js
Configs:
package.jsoncontains your JavaScript dependencies and project config; most notably it sets upnpm testto triggerkarma startwebpack.config.js: webpack configurationtests.webpack.js: identifies all test fileskarma.conf.js: configures Karma, for running tests
The actual app:
index.htmlis the HTML page; it loads your bundled JavaScript fromstatic/bundle.js, which is produced by Webpackapp.jsis the JavaScript entry point; it renders the<Hello>React component into the pageHello.jscontains the<Hello>React componenthello-test.jscontains a simple test
관련 프로젝트 살펴보기
불러오는 중…