Git Product home page Git Product logo

6f7aaabe19ccddd002d37c9e's Introduction

Install

nvm install v4.2.1 echo 'nvm use 4.2.1' > ~/.nvmrc npm install -g yo npm install generator-react-webpack npm install generator-react-webpack-alt mkdir my-new-project && cd my-new-project yo react-webpack-alt

TODO 1:

port some stuff from https://github.com/rubyconvict/webpack-flightjs-demo/blob/master/webpack.config.js to this project, bit by bit, only if needed

TODO 2:

make components like here:

npm install --save bootstrap npm install --save react-bootstrap npm install --save node-uuid npm install --save immutable

TODO 3:

alt es6 + rails example

Create a new component

yo react-webpack:component my_namespace/my_component

Create a new store, as well as a dedicated action for it

yo react-webpack-alt:all my_namespace/my_function

or separately

yo react-webpack-alt:action my_namespace/my_action yo react-webpack-alt:store my_namespace/my_store

create an empty source, see http://alt.js.org/docs/async/

yo react-webpack-alt:source my_namespace/my_source

You will then be able to include it in your stores via

import MySource from 'my_namespace/my_source'; MySource.remoteAction();

Start for development

npm start # or npm run serve

Watch the src directory for changes and run the tests

npm install --save-dev watch

npm run test:ci

Start the dev-server with the dist version

npm run serve:dist

Just build the dist version and copy static files

npm run dist

Run unit tests

npm test

Lint all files in src (also automatically done AFTER tests are run)

npm run lint

Clean up the dist directory

npm run clean

Just copy the static assets

npm run copy

6f7aaabe19ccddd002d37c9e's People

Contributors

rubyconvict avatar

Watchers

 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.