Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
This project simplifies and standardizes the main development tasks of node.js projects that are part of the azk project. Among them are:
azk
projects;.editorconfig
, .jshintrc
and .jscsrc
;spec-helper.js
with mocha
, chai
, chai-subset
and chai-promise
;npm-deploy
script that assists in releasing npm packages;Among the gulp tasks we have:
lint
and watch:lint
: for code standards testing, via jshint and jscs;babel[|:spec|:src]
and babel[|:spec|:src]
: transpile es6
code to es5
via babel;editor:config
: copy the dotfiles to the current project folder, allowing their use in the editor and not only in the lint process;babel:runtime:[install|version]
: to assist in the babel runtime installation process;Before adding azk-dev
to your project, be sure to remove babel
, babel-core
and babel-babel-runtime
if they're declared as dependencies. Now install azk-dev
:
$ npm install gulp azk-dev --save-dev
How to import commons azk-dev gulp tasks and extends:
// gulpfile.js
var azk_gulp = require('azk-dev/lib/gulp')({
cwd : __dirname,
sourcemaps_path: "/mytest", // Custom path to prefix transpiled files
lint: [ "bin/**/*.js" ], // Extra files for the lint analyzer
});
var gulp = azk_gulp.gulp;
gulp.task("show:args", "Help text", ["before:show"], function() {
console.log(azk_gulp.yargs.argv);
return null;
}, { aliases: ["sa", "s"] });
Check the tasks added to the running gulp (yes we have a gulp help
\o/):
$ gulp help
{ src: "src" , dest: "./lib/src" }
;{ src: "spec" , dest: "./lib/spec" }
;[]
;true
;[ "lint", "test" ]
;{
presets: ['es2015'],
plugins: ['add-module-exports'],
}
If you use "generators" in your code, you'll need to install babel-polyfill
:
$ gulp babel:polyfill:install
// spec/spec-help.js
var Helpers = {
expect : require('azk-dev/lib/chai').expect,
};
export default Helpers;
var BPromise = require('bluebird');
var enable_generators = require('azk-dev/lib/generators');
enable_generators((fn) => BPromise.coroutine(fn)());
Copy dotfiles .jscsrc
, .jshintrc
and .editorconfig
from shared
folder to current project. Use --force
to overwrite.
$ gulp editor:config
Adding this in package.json:
"deploy" : "./node_modules/.bin/npm-deploy"
Now you can deploy package with:
$ npm run deploy [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]
This should run the following steps:
npm test
package.json
, commit and add tag"Azuki", "Azk" and the Azuki logo are copyright (c) 2013-2015 Azuki Serviços de Internet LTDA.
Azk-dev source code is released under Apache 2 License.
Check LEGAL and LICENSE files for more information.
v0.2.0 - (2016-01-04)
Enhancements
AzkGulp
in more pieces;babel:polyfill:install
gulp task, to assist in the installation of the babel-polyfill
lib;babel:core:version
gulp task, it helps to find out the version of the babel azk-dev
this using;es2015
and plugin add-module-exports
by default;[module]-[version] [relative_path]
Deprecations
require('azk-dev/chai') => require('azk-dev/lib/chai')
;FAQs
Library which holds the basic tools for the development of azk projects
The npm package azk-dev receives a total of 5 weekly downloads. As such, azk-dev popularity was classified as not popular.
We found that azk-dev demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.