alexmattson / eos-redux Goto Github PK
View Code? Open in Web Editor NEWRedux CLI and Framework
Home Page: https://www.npmjs.com/package/eos-redux
Redux CLI and Framework
Home Page: https://www.npmjs.com/package/eos-redux
Generated a cycle just now and here is what I got in root reducer and master middleware.
import { combineReducers } from 'redux';
import CarsReducer from './cars_reducer';
const RootReducer = combineReducers({
$ cars: CarsReducer
});
export default RootReducer;
import { applyMiddleware } from 'redux';
import CarsMiddleware from './cars_middleware';
const masterMiddleware = applyMiddleware(
$ CarsMiddleware
);
export default masterMiddleware;
Could be an easy fix? @JescaLyn
Also just noticed that eos g cycle cars
did not create files for actions, middleware, reducer, api util, components, etc.
This was using a fresh install from npm
When the command eos start [project]
is run, the dependencies are not installed in the project directory and must run npm install
before ready to use.
import { applyMiddleware } from 'redux';
import CarsMiddleware from './cars_middleware';
const masterMiddleware = applyMiddleware(
CarsMiddleware
);
export default masterMiddleware;
import { combineReducers } from 'redux';
import CarsReducer from './cars_reducer';
const RootReducer = combineReducers({
cars: CarsReducer
});
export default RootReducer;
I assume these cars
are for testing purposes but were accidentally left in? They are causing webpack to fail with a new app.
D:\>npm ls eos -g
C:\Users\kgrube\AppData\Roaming\npm
`-- [email protected]
D:\>npm --version
3.10.5
D:\>node --version
v6.3.0
D:\>eos start test_eos
created test_eos/
created test_eos/frontend/
created test_eos/frontendindex/index.html
created test_eos/frontend/actions/
created test_eos/frontend/components/
created test_eos/frontend/components/root.jsx
created test_eos/frontend/components/app.jsx
created test_eos/frontend/components/router.jsx
created test_eos/frontend/middleware/
created test_eos/frontend/middleware/master_middleware.js
created test_eos/frontend/reducers/
created test_eos/frontend/reducers/root_reducer.js
created test_eos/frontend/store/
created test_eos/frontend/store/store.js
created test_eos/frontend/util/
created test_eos/frontend/index.jsx
Installing front end dependencies. This could take a few minutes...
Done
IF YOU USE NVM RUN THE FOLLOWING COMMANDS:
cd test_eos
npm install
Created Express Server
Installing server dependencies. This could take a few minutes...
D:\>dir test_eos
Volume in drive D is DATA
Volume Serial Number is 2ECC-2F76
Directory of D:\test_eos
09/29/2016 08:33 <DIR> .
09/29/2016 08:33 <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 394,897,055,744 bytes free
D:\>cd test_eos
D:\test_eos>npm install
npm WARN enoent ENOENT: no such file or directory, open 'D:\test_eos\package.jso
n'
npm WARN test_eos No description
npm WARN test_eos No repository field.
npm WARN test_eos No README data
npm WARN test_eos No license field.
.gitignore
file contents same but being installed in global node_modules as .npmignore
. This causes project setup to fail because the script is looking specifically for a .gitignore
file to load.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.