Giter Site home page Giter Site logo

progressive-amber / react-amber-cli Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

A development tool for the Reactive Amber recipe.

Home Page: https://www.npmjs.com/package/@progressive-amber/react-amber-cli

License: MIT License

JavaScript 100.00%
amber amber-framework react reactjs

react-amber-cli's Introduction

reactive-amber

Reactive Amber CLI

This is a development tool for quickly scaffolding Amber apps using the Reactive Amber recipe for the framework.

Installation

To run the Reactive Amber CLI, you will need to have first created and Amber project using the Reactive Amber recipe.

amber new <project-name> -r seanwatters/reactive-amber

cd <project-name>

From here, you will need to install the dependencies, including the Reactive Amber CLI:

npm install

You can now use the tool. A script has been written into your projects, package.json file that will run the node frontend-react/dev/react-tools.js command for you.

npm run react-tools

// alternatively
node react-frontend/dev/react-tools.js

Usage

Now that the tool is installed, when you run npm num react-tools, you will be prompted with the following:

? Select Generator
> componenet
> scaffold
> api

Selecting component will prompt you to enter the component name, props and state. (state and props are not currently functional, but will be soon):

? Select Generator component
? Component Name: NewComponent
? Component State: <component-state>
? Component Props: <component-props>

This will generate a file in the frontend-react/src/components/:

|- frontent-react
    |- dev
    |- src
       |- components
           |- NewComponent   // generated component
               |- index.css
               |- index.js
    |- index.css
    |- index.js

keep in mind that this is not a substitution for React devtools, but is a suplimental tool for development with Reactive Amber.

License

This project is licensed under the MIT License - see the LICENSE file for details

react-amber-cli's People

Contributors

seanwatters 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.