@simple-reporting/base 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dev/package.json +1 -1
- package/package.json +1 -1
- package/scripts/components.js +19 -22
package/README.md
CHANGED
|
@@ -21,3 +21,17 @@ Run dev server:
|
|
|
21
21
|
Build all required files.
|
|
22
22
|
|
|
23
23
|
> npm run build
|
|
24
|
+
|
|
25
|
+
## Important CLI commands
|
|
26
|
+
|
|
27
|
+
| Command | Description |
|
|
28
|
+
|----------------------------------------------------------|--------------------------------------------------------------------------------|
|
|
29
|
+
| `npm install` | Installs all packages listed in `package.json` |
|
|
30
|
+
| `npm run dev` | Starts the development environment including SCSS and JS watcher (Live Reload) |
|
|
31
|
+
| `npm run build` | Generates all CSS and JS files and ZIP packages in `.output` |
|
|
32
|
+
| `npx @simple-reporting/base create component` | Creates a component |
|
|
33
|
+
| `npx @simple-reporting/base add components` | Adds predefined components |
|
|
34
|
+
| `npx @simple-reporting/base remove components` | Removes one or more components |
|
|
35
|
+
| `npx @simple-reporting/base add groups` | Adds predefined groups and their components |
|
|
36
|
+
| `npx @simple-reporting/base remove groups` | Removes one or more groups |
|
|
37
|
+
|
package/dev/package.json
CHANGED
package/package.json
CHANGED
package/scripts/components.js
CHANGED
|
@@ -354,8 +354,8 @@ async function writeComponent(group, name) {
|
|
|
354
354
|
await mkdirSync(join(folders.ld, group, name, 'scss'));
|
|
355
355
|
await writeFileSync(
|
|
356
356
|
join(folders.ld, group, name, `${name}.html`),
|
|
357
|
-
`<p class="srl-${name} srl-
|
|
358
|
-
<span class="srl-
|
|
357
|
+
`<p class="srl-grid srl-${name} srl-linkable">
|
|
358
|
+
<span class="srl-grid__inner srl-${name}__text" doc-editable="paragraph">
|
|
359
359
|
Editable Text
|
|
360
360
|
</span>
|
|
361
361
|
</p>
|
|
@@ -369,40 +369,37 @@ async function writeComponent(group, name) {
|
|
|
369
369
|
}`,
|
|
370
370
|
);
|
|
371
371
|
await writeFileSync(
|
|
372
|
-
join(folders.ld, group, name, 'scss', `
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
.srl-${name} {
|
|
376
|
-
|
|
377
|
-
}`,
|
|
378
|
-
);
|
|
379
|
-
await writeFileSync(
|
|
380
|
-
join(folders.ld, group, name, 'scss', `_web.scss`),
|
|
381
|
-
'@use "srl";',
|
|
372
|
+
join(folders.ld, group, name, 'scss', `app.scss`),
|
|
373
|
+
'@use "web";',
|
|
382
374
|
);
|
|
383
375
|
await writeFileSync(
|
|
384
|
-
join(folders.ld, group, name, 'scss', `
|
|
385
|
-
'@use "
|
|
376
|
+
join(folders.ld, group, name, 'scss', `editor.scss`),
|
|
377
|
+
'@use "web";',
|
|
386
378
|
);
|
|
387
379
|
await writeFileSync(
|
|
388
|
-
join(folders.ld, group, name, 'scss', `
|
|
389
|
-
|
|
380
|
+
join(folders.ld, group, name, 'scss', `general.scss`),
|
|
381
|
+
`@use "srl";
|
|
382
|
+
.srl-${name} {
|
|
383
|
+
|
|
384
|
+
}`,
|
|
390
385
|
);
|
|
391
386
|
await writeFileSync(
|
|
392
|
-
join(folders.ld, group, name, 'scss', `
|
|
393
|
-
'@use "
|
|
387
|
+
join(folders.ld, group, name, 'scss', `pdf.scss`),
|
|
388
|
+
'@use "srl";',
|
|
394
389
|
);
|
|
395
390
|
await writeFileSync(
|
|
396
|
-
join(folders.ld, group, name, 'scss', `
|
|
397
|
-
'@use "
|
|
391
|
+
join(folders.ld, group, name, 'scss', `web.scss`),
|
|
392
|
+
'@use "srl";',
|
|
398
393
|
);
|
|
399
394
|
await writeFileSync(
|
|
400
395
|
join(folders.ld, group, name, 'scss', `word.scss`),
|
|
401
|
-
'@use "
|
|
396
|
+
'@use "pdf";',
|
|
402
397
|
);
|
|
403
398
|
await writeFileSync(
|
|
404
399
|
join(folders.ld, group, name, 'scss', `xbrl.scss`),
|
|
405
|
-
|
|
400
|
+
`@use "srl";
|
|
401
|
+
@use "general";
|
|
402
|
+
`,
|
|
406
403
|
);
|
|
407
404
|
await writeFileSync(join(folders.ld, group, name, `properties.json`), '{}');
|
|
408
405
|
await map();
|