Giter Club home page Giter Club logo

create-react-babel's Introduction

create-react-babel

A fork of npm/init-package-json

Initialize an NPM project with Babel set up to build React files

  1. ๐Ÿ’ป CLI Command
npm init react-babel # npm 6 and up
npx create-react-babel # npm 5 and up
npm install --global create-react-babel # npm 4
  1. โ†ณ Follow prompts

  2. ๐ŸŽฌ package.json is created

Is this OK? (yes)
{
  "name": "test-babel-react",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "scripts": {
    "build": "babel $npm_package_buildSrcDir -d $npm_package_buildOutDir --presets=react-app/prod",
    "dev": "babel $npm_package_buildSrcDir -d $npm_package_buildOutDir --watch --presets=react-app/dev"
  },
  "author": "",
  "buildSrcDir": "src",
  "buildOutDir": "lib",
  "devDependencies": {
    "babel-cli": "^6",
    "babel-preset-react-app": "^3"
  },
  "dependencies": {},
  "description": ""
}


Your React build system is ready to go!

Now run:

  โšก๏ธ Install dependencies:
     npm install

  ๐Ÿšฆ Production build:
     npm run build

  ๐Ÿšง Development build (watcher):
     npm run dev

Options

--help, -h  print help
--yes, -y   don't prompt for anything, use defaults
--all, -a   show prompts for non-React/Babel things like "entry point"

create-react-babel's People

Contributors

ad-si avatar addaleax avatar alexkrolick avatar apaleslimghost avatar bertday avatar danmactough avatar davidjb avatar eush77 avatar gustavnikolaj avatar iarna avatar isaacs avatar kemitchell avatar legodude17 avatar lewiscowper avatar lucthev avatar luk- avatar mfncooper avatar michaelnisi avatar mikolalysenko avatar misumirize avatar othiym23 avatar rlidwka avatar rvagg avatar timoxley avatar watilde avatar zearin avatar zkat avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.