GitXplorerGitXplorer
d

symlinks-task

public
1 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
a109855f8ee5ca552679804aa6205e7bf246675d

Merge pull request #1 from gruntjs-updater/peerDep

ddoron2402 committed 9 years ago
Unverified
bbe043c7211c5ff07bf2371ae49c2e5180b20a69

Update peerDependencies to support Grunt 1.0

committed 9 years ago
Unverified
534157ce8e864a364da98dcc9a38c8a0825b20b3

new working version 0.1.1

ddoron2402 committed 10 years ago
Unverified
540c0e2e62f5f677459303c4d9366e5e62ff702d

ready to publish

ddoron2402 committed 10 years ago
Unverified
e99cb1658d4a6a6c3058bc8ed44e26f768074d40

starting

ddoron2402 committed 10 years ago
Unverified
2c12090eaf0b66c95a01db6b986ac54eba22ddca

first commit

ddoron2402 committed 10 years ago

README

The README file for this repository.

grunt-task-symlink v0.1.1

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!

Symlink task

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