1.1.8 • Published 3 years ago

@pointpack/react-scripts v1.1.8

Weekly downloads
18
License
MIT
Repository
gitlab
Last release
3 years ago

React scripts

Install

npm install @pointpack/react-scripts

Usage

In addition to standard react-scripts usage it supports following flags:

  • --port sets desired port,
  • --theme changes following things:
    • build/ directory changes to build/THEME/,
    • public/ directory changes to public/THEME/,
    • importing index.js imports index.THEME.js or index.js.
npx react-scripts start --port PORT --theme THEME

Contribute

Before any chnages it's good to update to newest version from Facebook's repository. All current changes can be found in config/paths.js and scripts/test.js.

Update react-scripts

git pull https://github.com/facebook/create-react-app.git

Publish

cd packages/react-scripts

npm version patch --no-git-tag-version

cd ../..

git add .
git commit -m "New version"
git push

cd packages/react-scripts

npm publish