Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
asset-database_utils
Advanced tools
Readme
This repository contains some tools for the Consilio platform, to help with the calculation and conversion of field values.
The different tools can be found in the packages
directory.
Each package is a separate distributable set of tools with individual version and dependencies.
To add a new package, simply create a new root-level folder in the packages directory and add a package.json
and README.md
. Source files should be stored in the lib
folder, the index.ts
file will be automatically generated on build.
The root package.json
exposes 3 scripts:
Name | CMD | Description |
---|---|---|
lint | yarn lint <package> | Lint a package with eslint |
test | yarn test <package> | Test a package with jest |
build | yarn build <package> | Build a package |
You can find the eslint configuration in the .eslintrc.js
file in the root of the repository.
You can lint a specific package by providing its name:
yarn lint field-services
If you want to lint all packages, you can omit the package argument:
yarn lint
You can find the jest configuration in the jest.config.js
file in the root of the repository.
You can test a specific package by providing its name:
yarn test field-services
If you want to test all packages, you can omit the package argument:
yarn test
If you want to watch the tests, add the --watchAll
flag:
yarn test field-services --watchAll
yarn test --watchAll
The build script executes several steps:
index.ts
file (using named-exports
).umd
and commonjs
targets).package.json
file (from the root as well as the package package.json
files).README.md
to the dist folder.The build command takes 4 arguments:
yarn build <package> --cwd path/to/src --dist path/to/output --types
package
: name of the package you want to build, can passed as the first argument or by using the --package
flag (shorthand -p
).cwd
: src folder to build (when using package
this is set automatically to packages/<package>
).dist
: output folder for builds (when omitted defaults to dist
)types
: copy type declaration files to the dist folder (webpack already outputs declaration files to the dist folder so in most cases this is no longer needed).To publish a new version, make sure you follow these steps:
package.json
of the package you updated
patch
for fixes, minor
for features, major
for breaking changesbuild
prefix
build(<package>): <version>
, e.g. build(field-services): v2.1.1
git tag -a <package>@<version> -m "<package>@<version>"
, e.g. git tag -a field-services@v2.1.1 -m "field-services@v2.1.1"
yarn build <package>
, e.g. yarn build field-services
cd dist/<package> && yarn publish
, e.g. cd dist/field-services && yarn publish
FAQs
This repository contains some tools for the Consilio platform, to help with the calculation and conversion of field values.
We found that asset-database_utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).