All Projects → insin → Nwb

insin / Nwb

Licence: other
A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nwb

Preact Minimal
🚀 Minimal preact structure
Stars: ✭ 136 (-97.49%)
Mutual labels:  webpack, babel, preact
Sku
Front-end development toolkit
Stars: ✭ 403 (-92.58%)
Mutual labels:  webpack, babel, toolkit
Cookiecutter Webpack
Boilerplate for webpack 2, babel, react + redux + hmr, and karma. Can be inserted into existing django projects.
Stars: ✭ 87 (-98.4%)
Mutual labels:  webpack, babel, karma
Poi
⚡A zero-config bundler for JavaScript applications.
Stars: ✭ 5,291 (-2.54%)
Mutual labels:  webpack, babel, preact
React Redux Universal Boilerplate
An Universal ReactJS/Redux Boilerplate
Stars: ✭ 165 (-96.96%)
Mutual labels:  webpack, babel, karma
Instapy Gui
gui for instapy automation
Stars: ✭ 313 (-94.23%)
Mutual labels:  webpack, babel, preact
React Tradingview Widget
React component for rendering the TradingView Advanced Real-Time Chart Widget.
Stars: ✭ 170 (-96.87%)
Mutual labels:  webpack, babel, react-component
React Hint
Tooltip component for React, Preact, Inferno
Stars: ✭ 338 (-93.77%)
Mutual labels:  react-component, preact, inferno
Create React Library
⚡CLI for creating reusable react libraries.
Stars: ✭ 4,554 (-16.12%)
Mutual labels:  babel, preact
React Router Server
Server Side Rendering library for React Router v4.
Stars: ✭ 443 (-91.84%)
Mutual labels:  webpack, react-component
Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (-91.55%)
Mutual labels:  webpack, babel
React
React+webpack+redux+ant design+axios+less全家桶后台管理框架
Stars: ✭ 4,414 (-18.7%)
Mutual labels:  webpack, babel
Webpack Boilerplate
A minimal webpack 5 boilerplate with only Babel, SASS and lodash (optional) on board
Stars: ✭ 404 (-92.56%)
Mutual labels:  webpack, babel
React Starter Kit
React Starter Kit — front-end starter kit using React, Relay, GraphQL, and JAM stack architecture
Stars: ✭ 21,060 (+287.92%)
Mutual labels:  webpack, babel
Angular2 Babel Esnext Starter
Angular development and testing examples with Babel in Javascript (ES6/ES7).
Stars: ✭ 497 (-90.85%)
Mutual labels:  webpack, babel
Babel Loader
📦 Babel loader for webpack
Stars: ✭ 4,570 (-15.82%)
Mutual labels:  webpack, babel
Esri Loader
A tiny library to help load ArcGIS API for JavaScript modules in non-Dojo applications
Stars: ✭ 400 (-92.63%)
Mutual labels:  webpack, preact
Backpack
🎒 Backpack is a minimalistic build system for Node.js projects.
Stars: ✭ 4,466 (-17.74%)
Mutual labels:  webpack, babel
Babel Minify Webpack Plugin
[DEPRECATED] Babel Minify Webpack Plugin
Stars: ✭ 502 (-90.75%)
Mutual labels:  webpack, babel
Nyancss
🌈 Write plain CSS while reaping benefits of CSS-in-JS
Stars: ✭ 544 (-89.98%)
Mutual labels:  webpack, preact

nwb

Linux Travis Windows Appveyor npm package Coveralls

nwb

nwb is a toolkit for:

A zero-config development setup is provided, but nwb also supports configuration and plugin modules which add extra functionality (e.g. Sass support), should you need them

Install

Installing globally provides an nwb command for quick development and working with projects.

npm install -g nwb

Note: if you're using npm 5 and getting an EACCES: permission denied error from nwb's PhantomJS dependency while installing globally, try passing an --unsafe-perm flag:

npm install -g --unsafe-perm nwb

To use nwb's tooling in a project, install it as a devDependency and use nwb commands in package.json "scripts":

npm install --save-dev nwb
{
  "scripts": {
    "start": "nwb serve-react-app",
    "build": "nwb build-react-app"
  }
}

Quick Development

For quick development with React, Inferno, Preact or vanilla JavaScript, use the nwb react, nwb inferno, nwb preact or nwb webcommands.

import React, {Component} from 'react'

export default class App extends Component {
  render() {
    return <h1>Hello world!</h1>
  }
}
$ nwb react run app.js
✔ Installing react and react-dom
Starting Webpack compilation...
Compiled successfully in 5033 ms.

The app is running at http://localhost:3000/
$ nwb react build app.js
✔ Building React app

File size after gzip:

  dist\app.cff417a3.js  46.72 KB

See Quick Development with nwb for a more detailed guide.

React Apps

Use nwb new react-app to create a React app skeleton, preconfigured with npm scripts which use nwb for development:

nwb new react-app my-app
cd my-app/
npm start

Open localhost:3000, start editing the code and changes will be hot-reloaded into the running app.

npm test will run the app's tests and npm run build will create a production build.

See Developing React Apps with nwb for a more detailed guide.

Preact Apps

Use nwb new preact-app to create a Preact app skeleton:

nwb new preact-app my-app

Inferno Apps

Use nwb new inferno-app to create an Inferno app skeleton:

nwb new inferno-app my-app

Vanilla JavaScript Apps

Use nwb new web-app to create a vanilla JavaScript app skeleton:

nwb new web-app my-app

React Components and Libraries

nwb new react-component my-component

cd my-component/

npm start will run a demo app you can use to develop your component or library against.

npm test will run the project's tests and npm run build will create ES5, ES modules and UMD builds for publishing to npm.

See Developing React Components and Libraries with nwb for a more detailed guide.

npm Modules for the Web

nwb new web-module my-module

cd my-module/

npm test will run the project's tests and npm run build will create ES5, ES modules and UMD builds for publishing to npm.

Guides

Documentation

Why use nwb?

Get started quickly. Start developing from a single .js file or generate a project skeleton.

Covers the whole development cycle. Development tools, testing and production builds for projects work out of the box, no configuration required.

Flexible. While everything works out of the box, you can also use an optional configuration file to tweak things to your liking.

Manages key development dependencies and configuration for you. Check out an example of the effect using nwb had on the amount of devDependencies and configuration to be managed in a real project it was dropped into.

MIT Licensed

Cover image created by GeorgioWan

Operating system icons created with Icons8

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].