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
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @build-in-blocks/dev.resources

![Latest Version](https://img.shields.io/npm/v/@build-in-blocks/dev.resources.svg?label=latest&color=brightgreen&style=flat-square) [![Npm package total downloads](https://flat.badgen.net/npm/dt/@build-in-blocks/dev.resources?color=blue)](https://npmjs.com/package/@build-in-blocks/dev.resources) ![build passing](https://img.shields.io/badge/build-passing-brightgreen?style=flat-square)
![Latest Version](https://img.shields.io/npm/v/@build-in-blocks/dev.resources.svg?label=latest&color=brightgreen&style=flat-square) ![NPM Downloads](https://img.shields.io/npm/d18m/%40build-in-blocks%2Fdev.resources?label=downloads%20(last%2018%20months)) ![build passing](https://img.shields.io/badge/build-passing-brightgreen?style=flat-square)

[![License: AGPL v3.0](https://img.shields.io/badge/license-AGPL%20v3.0-blue.svg?style=flat-square)](https://www.gnu.org/licenses/agpl-3.0) [![All Contributors](https://img.shields.io/github/all-contributors/build-in-blocks/dev.resources?color=ee8449&style=flat-square)](#contributors) [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat-square)](https://github.com/build-in-blocks/dev.resources/blob/develop/docs.contributors/README.md)

Expand Down Expand Up @@ -44,7 +44,13 @@ Install the package as a `devDependency` in your project:
npm install -D @build-in-blocks/dev.resources
````

#### 2. Import needed resources
#### 2. When to install `typescript`

If you are using both this library and [@build-in-blocks/dev.build](https://www.npmjs.com/package/@build-in-blocks/dev.build) together in your project, then you don't need to install `typescript` in your project (the **@build-in-blocks/dev.build** library already does that internally, relative to your project).

Otherwise, you'll need to manually install `typescript` in your project. See `typescript` table in the general guide for more information: [Typescript compatibility and usage](https://github.com/build-in-blocks/.github/wiki/Repo-User-Guide-Extension#table-typescript-compatibility-and-usage).

#### 3. Import needed resources

Import and use what you need from the library in your `.ts` or `.js` file, for example:

Expand Down
2 changes: 1 addition & 1 deletion docs.contributors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Follow the instructions to fork and clone this repository locally unto your comp
npm link ../dev.resources
```

- **Step 3:** Follow the usage instructions in the [root README.md](https://github.com/build-in-blocks/dev.resources), not from the beginning though; start from the **2. Import needed resources** section (and continue till the end).
- **Step 3:** Follow the usage instructions in the [root README.md](https://github.com/build-in-blocks/dev.resources), not from the beginning though; start from the **2. When to install typescript** section (and continue till the end).

#

Expand Down
2 changes: 2 additions & 0 deletions docs.release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

- **Ensure related-code works:** Check that all features to be released in the new version are working as expected, and are complete as shown on our project board.

- **General user guide update:** Check that the wiki for the general user guide has been updated when e.g. typescript version and compatibility has changed in the library's code, or a new **@build-in-blocks** library has been published etc.

- **Confirm package.json & docs content:** Always confirm that the content of the `package.json` (`scripts`, the `keywords` array etc.), as well as the **root README**, **user docs**, **contributor docs** and **release docs** content are in good/acceptable shape for the release.

- **Version bumping:** Pending the time when we will automate the version bumping process, always remember to update the version number to a new one in the `package.json` file.
Expand Down
4 changes: 2 additions & 2 deletions docs.users/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ User installation and setup instructions can in the [root README.md](https://git

#

### Dependency Information
### User guide extension

`@build-in-blocks` framework libraries that have `dev.` in their name are only useful for local development, and should only be installed as a `devDependency` in your **web app**. If you are using a particular `dev.` package to build a **library** you wish to publish, and your library's end users will need to access that `dev.` packages' functionality or interface, in this case you will need to install it as a `dependency` instead.
More info on **@build-in-blocks** framework libraries in general can be found at: https://github.com/build-in-blocks/.github/wiki/Repo-User-Guide-Extension

#

Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@build-in-blocks/dev.resources",
"version": "1.0.2",
"version": "1.0.3",
"description": "Shared @build-in-blocks framework Typescript code development library.",
"main": "./build/index.js",
"module": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/shared/node.blocks-terminal-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
messageList.forEach((message, index) => {
const isLastMessage = index === messageList.length - 1;
const isAppendNewLineRequested = isLastMessage && !noNewLineAtEnd;
console.error(`${message}${isAppendNewLineRequested ? '\n' : ''}`);

Check warning on line 13 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 13 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 13 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 13 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 13 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
});
};
//-
Expand All @@ -20,27 +20,27 @@
const isSuggestionRequested = suggestion?.messageList?.length;
//-
const internalPackageNameText = `${internalPackage?.fullName} (internal)`;
const suggestionSectionTitle = `Suggestion${suggestion?.blocksConfig?.showCurrentState ? ' (based on current state)' : ''}:`;
const suggestionSectionTitle = `Suggestion${suggestion?.blocksConfig?.showCurrentState ? ' (based on current blocks config state)' : ''}:`;
//-
if (isInternalPackageErrorRequested) {
console.error('--------------------------');

Check warning on line 26 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 26 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 26 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 26 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 26 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
console.error('ERROR |', `${internalPackageNameText}:`);

Check warning on line 27 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 27 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 27 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 27 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 27 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
console.error('Type generation failed.');

Check warning on line 28 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 28 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 28 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 28 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 28 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
}
//-
if (isUserAppErrorRequested) {
console.error('--------------------------');

Check warning on line 32 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 32 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 32 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 32 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 32 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
console.error('ERROR |', `${userApp?.fullName} (your app):`);

Check warning on line 33 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 33 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 33 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 33 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 33 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
console.error(userApp.errorMessage);

Check warning on line 34 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 34 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 34 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 34 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 34 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
}
//-
if (errorSource) {
console.error('--------------------------');

Check warning on line 38 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 38 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 38 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 38 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 38 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
console.error(`ERROR SOURCE => ${internalPackageNameText}`);

Check warning on line 39 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 39 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 39 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 39 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 39 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
}
//-
if (isSuggestionRequested && !suggestion?.blocksConfig?.showCurrentState) {
console.error('--------------------------');

Check warning on line 43 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (20.x)

Unexpected console statement

Check warning on line 43 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (24.x)

Unexpected console statement

Check warning on line 43 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (23.x)

Unexpected console statement

Check warning on line 43 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (25.x)

Unexpected console statement

Check warning on line 43 in src/shared/node.blocks-terminal-logger.ts

View workflow job for this annotation

GitHub Actions / call-shared-logic / validate (22.x)

Unexpected console statement
console.error(suggestionSectionTitle);
messageListDisplay({});
}
Expand Down
Loading