Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

Respresso Web client Tweet

Respresso is a centralized resource manager for shared Android, iOS and Web frontend projects. It allows you to simply import the latest assets into your workspace. You may store several versions of the same resource in the cloud and pick the ones you need to import. Respresso currently supports five types of resources:

  • Images
  • Localization
  • Fonts
  • Colors
  • Raw

Usage

Using Respresso should be intuitive to anyone who has used npm before. Configurations are stored in the respresso.json, while your current assets’ metadata are stored in respresso.lock.

⚠️ You'll need java installed on your machine.

Configuration

In respresso.json you can customize:

  • projectToken: received during initialization of your project in the Respresso web interface
  • 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

The currently accepted resource names are:

  • image
  • color
  • localization
  • font
  • raw

Accepted version formats are:

  • [major].[minor].[patch] eg. 1.2.0
  • [major].[minor].[patch]+ eg. 1.2.0+ (not available in strict mode)
  • [major].[minor]+ eg. 1.2+ (not available in strict mode)

Include resources into your web application

To start using Respresso in your app takes almost zero time and effort.

  1. Add to your dev devendencies:
npm install respresso --dev
  1. Add a sync script into your package.json:
"scripts": {
	"sync": "respresso sync",
        ...
        }
  1. After configuring your Respresso project, just issue npm run sync and you can start using the resources.

Respresso Vue demo.

Try it

  1. Install any packages that it depends on
    npm install
  2. Sync resource files
    npm run sync
  3. Start running the server
    npm run serve

Localization

This demo uses vue-i18n, so you can find all relevant info there. Respresso files are imported in src/i18n.js.

SASS

This demo uses style-resources-loader so you can access the color definitions in every scss files. You can find a demo in src/App.vue.

Images

Find a sample use of svg in src/App.vue.

Fonts

Find a sample use of fonts in src/App.vue.

Available Scripts

Synchronize from Respresso server

npm run sync

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •