@sap-ux/ui5-library-reference-writer v0.1.31
@sap-ux/ui5-library-reference-writer
Easy to use Reuse Library reference writer for use within Yeoman generator and other prompting libraries.
Installation
Npm
npm install --save @sap-ux/ui5-library-reference-writer
Yarn
yarn add @sap-ux/ui5-library-reference-writer
Pnpm
pnpm add @sap-ux/ui5-library-reference-writer
Usage
Calling the generate
function
import { generate, ReuseLibConfig } from '@sap-ux/ui5-library-reference-writer'
import { join } from 'path';
const exampleWriter = async () => {
const reuseLibConfig: ReuseLibConfig[] = [{
name: 'my.namespace.reuse';
path: 'sample/libs/my.namespace.reuse';
type: 'library';
uri: '/sap/ui5/reuse';
}];
const projectDir = join(__dirname, 'testapp');
const fs = await generate(projectDir, reuseLibConfig);
return new Promise((resolve) => {
fs.commit(resolve); // When using with Yeoman it handle the fs commit.
});
}
// Calling the function
await exampleWriter();
Keywords
SAP Reuse Library
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
1 year ago
11 months ago
12 months ago
11 months ago
12 months ago
12 months ago
11 months ago
12 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
11 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago