Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
README.md

README.md

Amber Skeleton packages directory

This is where you save your source in Cypress package format.

Export

To export Amber source for a new project as a Cypress package:

AmberProjectExporter 
        registerPackage: 'MyPackageName' 
        type: 'cypress' 
        prefix: 'packages/'

Once the package is registered with the AmberProjectExporter, subsequent Commits of the package will be written as a Cypress package in the packages/ directory.

Import

To import Amber source saved as a Cypress package:

CypressAmberImporter
        importCypressPackages: #('MyPackageName')
        prefix:'packages/'

You can include the above expression in the ready: option of the loadAmber() function in your index.html file:

  smalltalk.CypressAmberImporter._importCypressPackages_prefix_(
              [ 
                'MyPackageName',
              ],
              'packages/');

The CypressAmberImporter automatically registers the package MyPackageName with the AmberProjectExporter.

Something went wrong with that request. Please try again.