1.0.8 • Published 5 years ago

create-lit-redux-saga v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Lit Redux Saga

This package will allow you to quickly setup a template for your next project. It comes with a prebuilt system using Redux-Saga in Lit-Element and it has a connect.js that works exactly as it works on React so for example in your component you will have:

mapStateToProps = state => {
  return {
    init: selectors.getInit(state)
  }
}

mapDispatchToProps = dispatch => {
  return {
    init: () => dispatch(actions.Init())
  }
}

Quickstart

npm install --global create-lit-redux-saga
create-lit-redux-saga my-app

cd my-app
npm i
npm start

npm start

Start webpack-dev-server on localhost http://127.0.0.1:3000:

npm run start

npm build

Run the production build:

npm run build
node server.js

As easy as that! Your app is ready to be deployed.

Folder Structure

After creation, your project should look like this:

my-app/
  node_modules
  src
    assets
    components
    store
    styles
    app.js
    index.html
  package.json
  package-lock.json
  README.md
  server.js
  webpack.config.js
  dist
1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago