Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module.exports = {
"ecmaVersion": 8
},
"extends": ["eslint:recommended", "google"],
"plugins": [
"jsdoc"
],
"rules": {
"indent": [
"error",
Expand Down Expand Up @@ -36,15 +39,32 @@ module.exports = {
"comma-dangle": "off",
"no-tabs": "off",
"no-console": "off", // sometimes needed by CLI
'valid-jsdoc': [
2,
{
requireParamDescription: false,
requireReturnDescription: false,
requireReturn: false,
prefer: {return: 'returns'},
"valid-jsdoc": 0,
"jsdoc/check-examples": 2,
"jsdoc/check-param-names": 2,
"jsdoc/check-tag-names": 2,
"jsdoc/check-types": 2,
"jsdoc/newline-after-description": 2,
"jsdoc/no-undefined-types": 0,
"jsdoc/require-description": 0,
"jsdoc/require-description-complete-sentence": 0,
"jsdoc/require-example": 0,
"jsdoc/require-hyphen-before-param-description": 0,
"jsdoc/require-param": 2,
"jsdoc/require-param-description": 0,
"jsdoc/require-param-name": 2,
"jsdoc/require-param-type": 2,
"jsdoc/require-returns": 0,
"jsdoc/require-returns-description": 0,
"jsdoc/require-returns-type": 2,
"jsdoc/valid-types": 0
},
"settings": {
"jsdoc": {
"tagNamePreference": {
"return": "returns"
}
],
}
},
"root": true
};
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const ui5Cli = {
/**
* @module @ui5/cli
* @private
*/
module.exports = {
init: require("./lib/init/init").init
};

module.exports = ui5Cli;
46 changes: 42 additions & 4 deletions jsdoc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"tags": {
"allowUnknownTags": true
"allowUnknownTags": false
},
"source": {
"include": ["README.md"],
"include": ["README.md", "index.js"],
"includePattern": ".+\\.js$",
"excludePattern": "(node_modules(\\\\|/))"
},
Expand All @@ -13,10 +13,48 @@
"encoding": "utf8",
"destination": "jsdocs/",
"recurse": true,
"verbose": true
"verbose": true,
"access": "public"
},
"templates": {
"cleverLinks": false,
"monospaceLinks": false
"monospaceLinks": false,
"default": {
"useLongnameInNav": true
}
},
"openGraph": {
"title": "UI5 Build and Development Tooling - API Reference",
"type": "website",
"image": "https://sap.github.io/ui5-tooling/docs/images/UI5_logo_wide.png",
"site_name": "UI5 Build and Development Tooling - API Reference",
"url": "https://sap.github.io/ui5-tooling/"
},
"docdash": {
"sectionOrder": [
"Modules",
"Namespaces",
"Classes",
"Externals",
"Events",
"Mixins",
"Tutorials",
"Interfaces"
],
"meta": {
"title": "UI5 Build and Development Tooling - API Reference - UI5 CLI",
"description": "UI5 Build and Development Tooling - API Reference - UI5 CLI",
"keyword": "openui5 sapui5 ui5 build development tool api reference"
},
"search": true,
"wrap": true,
"menu": {
"GitHub": {
"href": "https://github.com/SAP/ui5-cli",
"target": "_blank",
"class": "menu-item",
"id": "github_link"
}
}
}
}
1 change: 1 addition & 0 deletions lib/cli/middlewares/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const logger = require("./logger");
* Base middleware for CLI commands.
*
* This middleware should be executed for every CLI command to enable basic features (e.g. logging).
*
* @param {Object} argv The CLI arguments
* @returns {Object}
*/
Expand Down
3 changes: 1 addition & 2 deletions lib/cli/middlewares/logger.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/**
* Logger middleware
*
* Logger middleware used as one of default middlewares by tooling
*
* @param {Object} argv logger arguments
* @returns {Object} logger instance or null
*/
Expand Down
3 changes: 2 additions & 1 deletion lib/init/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function getProjectType(hasWebapp, hasSrc, hasTest) {
*
* Checks the package.json and tries to determine the project type. If the <b>ui5.yaml</b> file does not exist,
* it is created with the basic project configuration.
* @module init/init
*
* @module @ui5/cli/init
* @param {string} cwd Current working directory
* @returns {Promise} Promise resolving with the project configuration object
*/
Expand Down
Loading