@mocoding/react-app
Bootstrap and Build System for React Web Application. Batteries included.
Last updated 13 days ago by mocoding.npm.admin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mocoding/react-app 
SYNC missed versions from official npm registry.

@mocoding/react-app

Bootstrap and Build System for React Web Application. Batteries included.

Getting started

Create package.json with the following content:

{
  "name": "example",  
  "devDependencies": {
    "@mocoding/react-app": "*",    
  },  
  "scripts": {
    "start": "moapp serve",    
    "build": "moapp build -p"
  },
  "eslintConfig": {
    "extends": "@mocoding/eslint-config"
  },
  "prettier": "@mocoding/eslint-config/prettier"
}

Add index.tsx to the root.

import * as React from "react";

export class App extends React.Component {
  public render(): JSX.Element {
    return <div>Hello World</div>;
  }
}

Add tsconfig.json

{
  "extends": "@mocoding/react-app-common/tsconfig.base.json",
  "compilerOptions": {
    "baseUrl": "."
  }
}

Test the code:

# Restore dependencies
> yarn
# Test application in development with HMR
> yarn start
# Build application for production
> yarn build

Details

Check project github for more documentation about this module.

Current Tags

  • 1.0.1                                ...           latest (13 days ago)

3 Versions

  • 1.0.1                                ...           13 days ago
  • 1.0.0                                ...           21 days ago
  • 1.0.0-rc                                ...           21 days ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 32
Last Day 0
Last Week 0
Last Month 0
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |