Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@bentley/build-tools
Advanced tools
Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.
The @bentley/build-tools is a package for developers to consolidate the steps for building TypeScript-based packages. The tools contained in this package are written in either Typescript or Javascript within the src/ directory, and compiled for use into the lib/ directory. As a developer package, this package has only dependencies, no devDependencies.
Location: tsconfig-base.json
Requires build: no
This file contains common tsconfig settings across all iTwin.js packages. Packages should extend this file in their own tsconfig.json file, and then overwrite and set new properties as needed. Note that this file is different from the tsconfig.json file for this package, as that contains different settings for bentleyjs-tools only.
WARNING: TSLint support will be dropped in the next major release, 3.0. Please switch to ESLint, using
@bentley/eslint-plugin
.
Location: tslint.json
Requires build: yes
This file contains common tslint settings across all iTwin.js packages. Packages should extend this file in their own tslint.json file, and then overwrite and set new properties as needed.
WARNING: TSLint support will be dropped in the next major release, 3.0. Please switch to ESLint, using
@bentley/eslint-plugin
.
Location: tslint-rules
Requires build: yes
This directory contains several developer-defined TSLint rules that may be imported into tslint.json files. The rules are written in Typescript and compiled. These rules are imported into the tslint.json file for this package (which other imodeljs packages inherit from), however, the rules may also be imported individually from the generated tslint-rules directory after compilation.
The following are several guidelines to follow when creating new TSLint rules:
After compiling each rule, they may be used inside a tslint.json file by setting the "rulesDirectory" property to the path of the directory containing the rule. The rule may be accessed and set just as any other.
Location: scripts/
Requires build: no
The following node scripts are delivered in this package's scripts folder in order to ease development of iTwin.js packages with npm scripts. These scripts may require that additional packages be installed as dependencies of your package.
The default behaviors of the scripts (without parameters) assume that the directory structure of your package mirrors the following:
The following is a list of some of the most commonly used scripts within this package:
This script runs a TypeDoc command, with specific parameters, to generate html TypeScript documentation as well as a json representation of the documentation to be consumed for other purposes. It includes the following parameters:
,
as a separator--excludes=test,docs/*.md
will translate to **/{test,docs/*.md}/**/*
This is a script designed to extract sample code from test.ts files in a specific directory. The sample code should be surrounded by comments containing "__PUBLISH_EXTRACT_START__" and "__PUBLISH_EXTRACT_END__" directives.
This script runs the javascript output of Mocha tests with a few standard parameters. The output (success/failure) of the tests will be written to the console.
WARNING: The tsnode script will be dropped. Please switch to using
test.js
or directly using mocha.
This script is similar to the test.js command, but looks for the TypeScript test source in order to run it using ts-node. The arguments for this command are similar to the test command, with the following differences:
This script handles translating an English localization JSON file into a pseudoLocalization file.
FAQs
Bentley build tools
The npm package @bentley/build-tools receives a total of 10 weekly downloads. As such, @bentley/build-tools popularity was classified as not popular.
We found that @bentley/build-tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.