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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

typhonjs-core-parse-init

Code Style License

Build Status Dependency Status

Provides a minimal module for JSPM / SystemJS to initialize the Parse JS API from a user mapped object parseconfig. Due to ES6 hoisting imports and SystemJS Builder static bundling it is necessary to import parseinit which is mapped to this module to ensure that the Parse API has been initialized before usage for modules which might access the Parse API during initialization of TyphonJS and other projects depending on backbone-parse-es6.

For a demo of usage of typhonjs-core-parse-init please see backbone-parse-es6-todos.

For configuration please supply a user mapped path in a JSPM configuration file such as the following:

System.config(
{
   map:
   {
      'parseconfig': 'config/parse-config.js'
   }
});

parse-config.js should export an object literal with the Parse API and app keys necessary to initialize the Parse API.

/**
 * parse-config.js -- Defines the production keys for Parse.
 */
'use strict';

export default {
   parseAppID: '<APP ID>',
   parseAPIKey: '<API KEY>'
};

Include typhonjs-core-parse-init as a dependency in the jspm entry in package.json:

  "jspm": {
    "dependencies": {
      "parse": "npm:parse@^1.6.14",
      "typhonjs-core-parse-init": "github:typhonjs/typhonjs-core-parse-init@master"
    },
    "devDependencies": {
      ...    
    }
  },

Then in the main app entry point and any other modules which may use the Parse API during import resolution simply include:

import 'typhonjs-core-parse-init'

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published