A template for developing React application in Visualforce.
This template automates the following things:
- Build JavaScript & CSS using webpack
- Compress all bundled files and create StaticResource (
.resource
) - Deploy StaticResource and all other metadata to your Salesforce org
- Watch file changes and run re-build & deploy
- React
- react-lightning-design-system
- gulp
- Babel
- webpack
$ npm install -g gulp
$ npm install
First you need to rename .env.sample
to .env
and input your Salesforce org credentials.
Then run following command.
# Build JS/CSS & Create StaticResource & Deploy
$ gulp
# Deploy only
$ gulp deploy
# watch changes in src/ and pkg/ directory, and deploy when updated
$ gulp watch
MIT