Modules all the way

This commit is contained in:
Tim Schaub
2020-02-20 18:30:09 -07:00
parent ae70a1fb9d
commit c301d2413b
29 changed files with 316 additions and 173 deletions

View File

@@ -14,12 +14,12 @@
]
},
"plugins": [
"config/jsdoc/api/plugins/markdown",
"config/jsdoc/api/plugins/markdown.cjs",
"jsdoc-plugin-typescript",
"config/jsdoc/api/plugins/inline-options",
"config/jsdoc/api/plugins/events",
"config/jsdoc/api/plugins/observable",
"config/jsdoc/api/plugins/api"
"config/jsdoc/api/plugins/inline-options.cjs",
"config/jsdoc/api/plugins/events.cjs",
"config/jsdoc/api/plugins/observable.cjs",
"config/jsdoc/api/plugins/api.cjs"
],
"typescript": {
"moduleRoot": "src"

View File

@@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
/**
* Define an @api tag
* @param {Object} dictionary The tag dictionary.

View File

@@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
const events = {};
exports.handlers = {

View File

@@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
/**
* @fileoverview
* Inlines option params from typedefs

View File

@@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
/**
* Modified from JSDoc's plugins/markdown and lib/jsdoc/util/markdown modules
* (see https://github.com/jsdoc3/jsdoc/), which are licensed under the Apache 2

View File

@@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
const classes = {};
const observables = {};

View File

@@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
/*global env: true */
const hasOwnProp = Object.prototype.hasOwnProperty;

View File

@@ -11,8 +11,8 @@
},
"plugins": [
"jsdoc-plugin-typescript",
"config/jsdoc/info/define-plugin",
"config/jsdoc/info/virtual-plugin"
"config/jsdoc/info/define-plugin.cjs",
"config/jsdoc/info/virtual-plugin.cjs"
],
"typescript": {
"moduleRoot": "src"

View File

@@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
/**
* @fileoverview This plugin extracts info from boolean defines. This only
* handles boolean defines with the default value in the description. Default

View File

@@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
/**
* @fileoverview Generates JSON output based on exportable symbols.
*/

View File

@@ -1,3 +1,5 @@
/* eslint-disable import/no-commonjs */
/**
* Handle the interface and abstract annotations.
* @param {Object} dictionary The tag dictionary.

View File

@@ -0,0 +1,4 @@
{
"description": "JSDoc loads publish.js files with require(), so we need to configure everything under this path as a CommonJS module.",
"type": "commonjs"
}