Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@hdsydsvenskan/asset-versions
Advanced tools
CLI and helper methods for asset versioning. Includes support for Webpack chunking.
npm install --save-dev @hdsydsvenskan/asset-versions
Follow Semantic Versioning and use np and a version like patch | minor | major | prepatch | preminor | premajor | prerelease | 1.2.3
np patch
See a full example, including Webpack support, in example/ folder and/or run the start
npm script (run yarn start
/ npm start
).
assets.json
asset-versions
assets-versioned.json
fileconst AssetVersions = require('@hdsydsvenskan/asset-versions');
const assets = new AssetVersions({
assetDefinitions: __dirname + '/assets.json'
});
// Returns something like 'assets/rev/main-e508b3af03.css'
assets.getAssetPath('assets/main.css');
Or, in case of code splitted javascript (likely through the use of Webpack):
// Returns something like ['assets/rev/main-e508b3af03.js', 'assets/rev/vendor-abc123.js']
assets.getAssetPathWithDependencies('assets/main.js');
Create a assets.json
file:
{
"sourceDir": "assets",
"targetDir": "assets/rev/",
"files": [
"main.css",
"main-dev.css",
"main.js"
]
}
--output
/ -o
flag) and the module (through the versionsFileName
option) can be tweaked to use another versions file than the default asset-versions.json
@hdsydsvenskan/base-web-app
generate
method for use with webpack-manifest-plugin to generate manifest with dependenciesFAQs
CLI and helper methods for our asset versions
The npm package @hdsydsvenskan/asset-versions receives a total of 0 weekly downloads. As such, @hdsydsvenskan/asset-versions popularity was classified as not popular.
We found that @hdsydsvenskan/asset-versions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.