Skip to content

malrondon/react-ssr-csr

Repository files navigation

React SSR and CSR

licence mit GitHub issues GitHub package.json version GitHub Release Date GitHub top language GitHub repo size GitHub All Releases

Prerequisites

.gitconfig

Git's merge commit message

[alias]
    mergelogmsg = "!f() { var=$(git symbolic-ref --short HEAD) && printf 'Merge branch %s into %s\n\n::SUMMARY::\nBranch %s commits:\n' $1 $var $1 > temp_merge_msg && git log --format=format:'%s' $var..$1 >> temp_merge_msg && printf '\n\nBranch %s commits:\n' $var >> temp_merge_msg && git log --format=format:'%s' $1..$var >> temp_merge_msg && printf '\n\n* * * * * * * * * * * * * * * * * * * * * * * * *\n::DETAILS::\n' >> temp_merge_msg && git log --left-right $var...$1 >> temp_merge_msg && git merge --no-ff --no-commit $1 && git commit -eF temp_merge_msg; rm -f temp_merge_msg;}; f"

Environment Variables

// ./internals/webpack/config.js
// values ​​configured for development
PUBLIC_URL=http://localhost:8000
BFF=http://localhost:8000
NODE_ENV=development

Install

yarn

Commands

  • yarn start:development: start server in development mode http://localhost:8000

  • yarn build: to build files

  • yarn start: start server in production mode

  • yarn lint:sass: to run linter (scss)

  • yarn lint:js: to run linter (js)

  • yarn lint: to run lint:sass and lint:js

  • yarn release: to create tag

Create Tag

Current tag example: 1.0.0-beta.4

Command:

yarn release 1.0.0-beta.5

Questions and answers:

- ? Show updated files? `Yes`
- M  package.json

- ? Commit (Release 1.0.0-beta.5)? `Yes`
- ? Tag (1.0.0-beta.5)? `Yes`
- ? Push? `Yes`
- ? Publish "salles" to npm? `No`

Summary

  1. GIT Flow
  2. Commits
  3. Architecture
  4. Technologies
  5. Lint
  6. Patterns

⬆ back to top

Log

Check Releases for detailed changelog.

License

MIT license © Hemerson Vianna