Skip to content
No description, website, or topics provided.
Branch: cra-react-intl
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
.gitignore
README.md
package.json
respresso.json
yarn.lock

README.md

Respresso React demo.

You'll need java installed on your machine.

Configuration

In respresso.json you can customize:

  • projectToken: Change it to you project's token
  • targetDirectory: it should be under src as CRA does not import from elsewhere
  • resources: only import what you need and you can change the version number, too

Include resources into your web application

To start using Respresso in your app takes almost zero time and effort. After configuring your Respresso project, just issue npm run sync and you can start using the resources.

Localization

This demo uses react-intl from Yahoo, so you can find all relevant info there. Respresso files are imported in src/index.js.

SASS

Color definitions from Respresso are imported in src/App.scss.

Images

Just import your svg files as in src/App.js.

Fonts

TBD

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm run sync

Synchronizes data from Respresso server to src/respresso.

npm start

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

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

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!

You can’t perform that action at this time.