Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-amxmodx

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-amxmodx

AMX mod X compiler task

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

grunt-amxmodx Build Status

AMX mod X compiler task

Getting Started

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');

The "amxmodx" task

Overview

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.
    },
  },
});

Installing compilers

####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

Options

options.versions

Type: Array Default value: [ '1.8.2' ]

Array of strings with version of AMX mod X to compile with.

options.output

Type: string Default value: 'tmp/'

Compilation output folder.

options.includePath

Type: string Default value: null

Custom include path.

Usage Examples

Custom versions Options

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']
    }
  }
});

Contributing

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.

Release History

  • 2014-09-14   v0.1.2   Added windows support
  • 2014-08-24   v0.1.1   Added custom include path
  • 2014-08-23   v0.1.0   Initial release

Keywords

FAQs

Package last updated on 29 Feb 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc