@simple-reporting/base 1.0.1 → 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 +2 -2
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>
|