在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):wbkd/react-starterkit开源软件地址(OpenSource Url):https://github.com/wbkd/react-starterkit开源编程语言(OpenSource Language):JavaScript 88.1%开源软件介绍(OpenSource Introduction):React StarterkitThis repository is unmaintained. Please check out our new React Starter This react starterkit provides a prepared development environment based on gulp, stylus and webpack. The internal data flow is handled with Reflux and the routing is managed with the React-Router. DemoThis starterkit does not include some fancy UI stuff but is a lightweight starting point for your next react app. Get the kit
InstallationInstall all dependencies.
DevelopmentBuilds the application and starts a webserver with livereload. By default the webserver starts at port 1337.
You can define a port with
BuildBuilds a minified version of the application in the dist folder.
TestingWe use jest to test our application.
JavascriptJavascript entry file: Reflux We are using Reflux, which is an implemantion of the Flux Architecture. If you want to read more about Reflux, check out the readme of the reflux git repo. React-Router The routing is done with the react-router. It's especially great for SPA's. We would recommend to read the guide to get an overview of the router features. ES6 with babel We are working with the webpack babel loader in order to load our .js/.jsx files. Babel allows you to use ES6 features like class, arrow functions and much more. CSSCSS entry file: Stylus As you can see we are using stylus to preprocess our .styl files. If you didn't work with a css preprocessor before the stylus page is a good starting point to get to know what stylus can do for you. Webpack HintsYou can find the webpack configuration in the webpack.config.js file. We use the babel-loader in order to load .jsx and .js files via webpack. If it's possible install all your dependencies with NPM. Packages installed with NPM can be used like this:
You can find all loaders in this list. ###Requirements
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论