Skip to content

Javascript development toolkit for power users [ ES6, React, node-sass ]

Notifications You must be signed in to change notification settings

lorenzosjb/dev-toolkit

 
 

Repository files navigation

universal-dev-toolkit-logov5.2.6

Jump-start your react-powered Web App.
dynamic pages   sass & css-modules   server-rendering   hot-reload

Create a new project

# install & initialize new app
npm install -g dev-toolkit
dev-toolkit --init my_app
cd my_app

# run it via npm scripts
npm run dev
# or run it directly (-w or --watch)
dev-toolkit --watch

This will give you the following structure to work with:

src
├── client
│   ├── app.js
│   └── ...
└── server
    └── ...

Generate a static build

# Create `build`-folder with compiled files (-b or --build)
dev-toolkit --build
  • removes previous build-folder
  • generates static markup for React (coming soon)
  • automatically uses production-builds of React and Redux
  • allows for a custom vendor-bundle
  • extracts css from individual modules
  • hashes assets, including jpg, png, gif & svg-files

Generate a static build with dynamic pages

(coming soon)
To make use of dynamic pages and components for making your app load faster, follow the instructions and use the extended build command:

# This will create an index-file for each dynamic route (-d --dynamic or --build --dynamic)
dev-toolkit --build --dynamic
  • creates multiple js-bundles, one for each dynamic page
  • each index.html contains a script-link to the app bundle and the page-bundle
  • scripts use async and defer-attributes as appropriate

Use server with server-side rendering

(experimental, coming soon)
You can use your project as an universal/isomorphic server-side-rendered app. For advanced users only.

# Compile and run `src/server/app` (-s or --serve)
dev-toolkit --serve

Misc

Check version
# Check Version (-v or --version)
dev-toolkit -v
Define what modules are bundled into vendor.js
// in your package.json, add `toolkitSettings` section
"toolkitSettings": {
  "vendor": [
    "react",
    "react-dom",
    "react-router"
  ]
},

Features

Javascript Basics
Developer Convenience
Powerful CSS Tools
Server-tools for Universal Apps

Codewake Join the chat at https://gitter.im/stoikerty/dev-toolkit

Fancy working on the toolkit itself? This wiki could be useful to you.


kindly supported by BrowserStack.

About

Javascript development toolkit for power users [ ES6, React, node-sass ]

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 66.5%
  • JavaScript 32.1%
  • HTML 1.4%