Skip to content

tuchk4/craft-redux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App and CRAFT.


If you are interested in this template - let me know - tweet me @tuchk4 or file an issue here.

I will add more features and tests.


npm i -g craftool
craft MyAppRedux https://github.com/tuchk4/craft-redux/archive/master.zip

General Resources

Please read official Create React App guide and don't try to customize configs because I am sure that all your requirements are reachable in 100% without config customizing or ejecting.

Why I love Create React App and don't want to eject

Redux

Displaying Map in state #124

Import set.prototype.tojson and map.prototype.tojson for correct view of Map and Set structures at Redux Chrome extension.


App Redux Chrome dev tools
CRAFT Redux Screenshot Alt text

npm start

Runs the app in development mode.
Open https://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will see the build errors and lint warnings in the console.

Build errors

npm test

Runs the test watcher in an interactive mode.
By default, runs tests related to files changes since the last commit.

Read more about testing.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!


Troubleshooting

scripts/*-env.js

We need this script because we can not run this

{
  "scripts": {
    "test": "node -r dotenv/config ./node_modules/.bin/react-scripts test dotenv_config_path=development.env",    
  }
}

Because jest will accept dotenv_config_path=development.env as regex for test files.