1.0.3 • Published 5 years ago
nw-parcel-hmr-boilerplate v1.0.3
Nwjs Parcel HMR boilerPlate (StarterKit)
BoilerPlate start fast application with pixijs,react,nwjs
Features
- React FrontEnd (Framework HTML)
- PixiJS BackEnd (Library bridge between WebGL and GPU)
- Parcel Bundlers (almost no config)
- RES (react-easy-state) stores (instead of Redux)
- UI toolkit AntDesign MaterialUI, BluePrintJS (treeShaking)
- WebXR backend API (browser and nwjs) with fallback polyfill
- Builds for all majors Browsers (Chrome,Edge,FireFox...)
- Builds for all majors Desktops achhitectures (x86,x64,Win,Osx,Linux...)
- HotReload browser and desktop (nwjs)
- NodeJS (Native with nwjs)
- Include Plugins inspector config: PIXIDEVTOOL, REACTDEVTOOL, SPECTORJS
- PreConfig for Babel, esLint, Less, Prettier
- PreConfig for VsCode live debbugger (remote,hotreload,nwjs)
PREVIEW
Quicks starts
Download || fork || open in Desktop
NPM
npm i nw-parcel-hmr-boilerplateCMD
# clone the repo.
git clone --depth 1 https://github.com/djmisterjon/nw-parcel-hmr-boilerplate.git
# set change directory to repo
cd nw-parcel-hmr-boilerplate
# install the dependencies via npm
npm iDEVELOPPEMENT
- developpement will bundle app in
distfolder. - production will bundle app in
buildfolder.
Browser
developpement
- Start dev servor for browser dev
npm startproduction
- Build final app for browser
npm run buildDesktop
developpement
- Start dev servor for desktop (nwjs)
npm run start-nwproduction
- Build final app for desktop (x64,x86,Win,Osx,Linux)
npm run build-nwNOTE
srcfolder is where code your app.- NwJS is install locally in
node_modules, but your can install globally. package.nwjs.jsonis where setup the desktop developpement and build.index.lessis parent for import all css.resfolder is where put images,files....index.store.jsxIs the Parent global stores for React.backendfolder is where pixijs,webxr,... run.