0.2.2 • Published 4 months ago

@gradebook/core-developer-tools v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@gradebook/core-developer-tools

Usage

// gradebook/server developer.js
module.exports.developerLogic = app => {
	const coreDeveloperTools = require('@gradebook/core-developer-tools');
	coreDeveloperTools.load(__dirname, app);

	// Add your own logic here
};

Why does this package exist?

To aid in development, we have several in-house developer tools. This includes basic things like:

  • asset routing with a local front-end
  • live reloading
  • request delays

We also have more complex use-cases such as bypassing login screens or overriding existing settings.

These complex use cases have security implications, which is why this package exists.

In the server:

  1. Developer Tools are not loaded unless the enableDeveloperExperiments flag is enabled

  2. Developer Tools fail to load in production environments

  3. The more complex tools are bundled in this module

    1. It's a development dependency, which means it won't be installed in production

    2. This module does another production check before bootstrapping

  4. Developers have to create a developer.js file in the server project which loads this module

As you can see, there are several safe-guards in place to make sure these features are not exposed in a production environment.

0.2.2

4 months ago

0.2.1

9 months ago

0.2.0

2 years ago

0.1.3

3 years ago

0.1.2

3 years ago