Socket
Socket
Sign inDemoInstall

grunt-task-symlink

Package Overview
Dependencies
100
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-task-symlink

Grunt task for generating symlinks on Mac and Linux


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
7.92 kB
Created
Weekly downloads
 

Readme

Source

Create symbolic links files and directory using node fs.

Getting Started

This plugin requires Grunt ~0.4.1

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-task-symlink --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-task-symlink');

Why??

I build this grunt task cause i need some simple grunt task that can generate symlink

How to use?

  • Run the grunt task
  • set Object in the links array
  • when linking directory set type: dir
  • when linking files set type: file
  • src is your directory/file
  • dst is your symlink directory/file
  • IMPORTANT:: symlink will always will overwrite your symlink!

Run this task with the grunt symlink command.

Usage Examples

symlink: {
    symlink_options: {
      links: [
        {
          src: 'test/src_dir/app',
          dst: 'test/src_dir/node_modules/app',
          type: 'dir'
        },
        {
          src: 'test/src_dir/app/index.js',
          dst: 'test/src_dir/node_modules/app.js',
          type: 'file'}
      ]
    }
  },

Release History

  • 2014-03-17   v0.1.1   Working release.
  • 2014-03-17   v0.1.0   Unofficial release.

Task submitted by "doron2402" Doron Segal

Keywords

FAQs

Last updated on 26 Feb 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc