Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
grunt-amxmodx
Advanced tools
AMX mod X compiler task
This plugin requires Grunt ~0.4.5
and works only on linux and windows.
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-amxmodx --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-amxmodx');
In your project's Gruntfile, add a section named amxmodx
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
amxmodx: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
});
####Manual Use command line util to install compiler version before run task.
./node_modules/.bin/amxx-install <version>
####From package.json You can use your package.json to specify versions you want to use and install them all with just one command. You need to add amxmodx_versions key like following:
"amxmodx_versions": [ "version1", "version2" ]
and then use command
./node_modules/.bin/amxx-install
####On demand If compiler is triggered with not installed version, installation will be done automatically just before compilation.
####Integration with travis
Its required to install package libc6-i386
in order to run 32bit amxx compiler on 64bit travis environment.
Add following lines to your before_scripts
- sudo apt-get update
- sudo apt-get install libc6-i386
Final .travis.yml may looks like:
before_install: npm install -g grunt-cli
install: npm install
before_script:
- sudo apt-get update
- sudo apt-get install libc6-i386
script:
- grunt
Type: Array
Default value: [ '1.8.2' ]
Array of strings with version of AMX mod X to compile with.
Type: string
Default value: 'tmp/'
Compilation output folder.
Type: string
Default value: null
Custom include path.
In this example, compilation will be done with 1.8.1 and 1.8.2 version with the default output folder.
package.json
{
"name": "amxmodx-test",
"version": "0.0.1",
"description": "",
"amxmodx_versions": [
"1.8.1",
"1.8.2"
]
}
Gruntfile.js
grunt.initConfig({
amxmodx: {
options:{
versions: "<%= pkg.amxmodx_versions %>"
},
dist: {
nonull: true,
src: ['src/test.sma']
}
}
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
FAQs
AMX mod X compiler task
The npm package grunt-amxmodx receives a total of 0 weekly downloads. As such, grunt-amxmodx popularity was classified as not popular.
We found that grunt-amxmodx 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.