Giter Club home page Giter Club logo

stapp's People

Contributors

hellpirat avatar theaidem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stapp's Issues

kudos

Hey,
I like your semantic integration into the webpack, nicely done.

Doesn't work on windows

C:\Users\home\www\stapp>npm start

[email protected] start C:\Users\home\www\stapp
node -r babel-register ./node_modules/.bin/webpack-dev-server --config webpack
.config.dev.js

C:\Users\home\www\stapp\node_modules.bin\webpack-dev-server:2
basedir=$(dirname "$(echo "$0" | sed -e 's,,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
at Object.exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:513:28)
at Module._extensions..js (module.js:550:10)
at Object.require.extensions.(anonymous function) [as .js](C:Usershomeww
wstappnode_modulesbabel-registerlibnode.js:166:7)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.runMain (module.js:575:10)
at run (node.js:348:7)
at startup (node.js:140:9)

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node -r babel-register ./node_modules/.bin/webpack- dev-server --config webpack.config.dev.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node -r babel-register ./node_m
odules/.bin/webpack-dev-server --config webpack.config.dev.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the stapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node -r babel-register ./node_modules/.bin/webpack-dev-server --con
fig webpack.config.dev.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs stapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls stapp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\home\www\stapp\npm-debug.log

C:\Users\home\www\stapp>

Excessive generation

I did choose generation Actions and Reducer for View

? What's entity name? (user, article): charity
? What do you want to generate? Actions, Reducer, View

And I expect that I will have generated actions only for View but Generator creates next actions:

export const CHARITY_LOAD_REQUEST = 'CHARITY_LOAD_REQUEST'
export const CHARITY_LOAD_SUCCESS = 'CHARITY_LOAD_SUCCESS'
export const CHARITY_LOAD_FAILURE = 'CHARITY_LOAD_FAILURE'

export const CHARITIES_LOAD_REQUEST = 'CHARITIES_LOAD_REQUEST'
export const CHARITIES_LOAD_SUCCESS = 'CHARITIES_LOAD_SUCCESS'
export const CHARITIES_LOAD_FAILURE = 'CHARITIES_LOAD_FAILURE'

export const CHARITY_CREATE_REQUEST = 'CHARITY_CREATE_REQUEST'
export const CHARITY_CREATE_SUCCESS = 'CHARITY_CREATE_SUCCESS'
export const CHARITY_CREATE_FAILURE = 'CHARITY_CREATE_FAILURE'

export const CHARITY_UPDATE_REQUEST = 'CHARITY_UPDATE_REQUEST'
export const CHARITY_UPDATE_SUCCESS = 'CHARITY_UPDATE_SUCCESS'
export const CHARITY_UPDATE_FAILURE = 'CHARITY_UPDATE_FAILURE'

export const CHARITY_DELETE_REQUEST = 'CHARITY_DELETE_REQUEST'
export const CHARITY_DELETE_SUCCESS = 'CHARITY_DELETE_SUCCESS'
export const CHARITY_DELETE_FAILURE = 'CHARITY_DELETE_FAILURE'

Maybe there should be a choice actions from a list?

For example:

? What's entity name? (user, article): super
? What do you want to generate? (Press <space> to select, <a> to toggle all, <i> to inverse selection)
  = Redux stuff (CRUD flow) =
❯◉ Actions
 ◉ Reducer
  = Actions
 ◉ doLoadSuper
 ◯ doCreateSuper
 ◯ doUpdateSuper
 ◯ doDeleteSuper
  = React stuff (Components) =
 ◉ View
 ◯ List
 ◯ Create
(Move up and down to reveal more choices)

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.