jelly-scripts v1.0.0
jelly-scripts
This is a fork of the react-scripts package from the facebook/create-react-app monorepo. You can refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.
This package is published as jelly-scripts in NPM.
See the description
field in package.json to see which
version of react-scripts
this fork is built from.
Differences to react-scripts
- Use CSS Modules on every css file
- Use postcss-preset-env
- Use postcss-import
- Use postcss-apply
- Build an UMD module in production mode to support server side rendering
Development
Setup
To update the fork to use a new version of the upstream repository:
If you haven't already, configure the upstream repository as a remote:
git remote add upstream https://github.com/facebookincubator/create-react-app
Sync the fork to a branch, making sure you merge from a specific version/tag that you want to base your changes on
git fetch upstream git checkout master git checkout -b update-from-upstream git merge <tag_to_be_merged_here_eg_v1.1.2>
Make your changes, test them (see below), make a PR, release
Making changes and testing
To test your local changes, link the local repository to the application:
In the
create-react-app/packages/react-scripts
directory, install dependencies and make a link of the package:yarn install # ignore the yarn.lock file yarn link
NOTE: if other packages have changed too, you might need to run
yarn install # ignore the yarn.lock file
on the root folder too.In the application remove the old
jelly-scripts
package and use the linked version (read more):yarn remove jelly-scripts yarn link jelly-scripts
Now you changes to the fork are usable as a symlicked dependency in the application
Publishing
Make sure you have updated the version also in the
description
field in package.json. Try to sync the package version with the original package, if possible.Publish to NPM:
npm login # Check credentials from password manager npm publish
Tag the commit with released version:
jelly-scripts@x.x
4 years ago