0.1.1 • Published 10 years ago

grunt-clinch v0.1.1

Weekly downloads
-
License
-
Repository
github
Last release
10 years ago

grunt-clinch

Build Status Code Climate

Compile common.js for browser by clinch with grunt.js

Getting Started

This plugin requires Grunt ~0.4.2

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-clinch --save-dev

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

grunt.loadNpmTasks('grunt-clinch');

The "clinch" task

Overview

In your project's Gruntfile, add a section named clinch to the data object passed into grunt.initConfig().

grunt.initConfig({
  clinch: {
    clinch: {
      options: {
          // Default options
          // This options used as clinck package config
          // https://github.com/Meettya/clinch#package_config
      },
      app: {
        files: {
          'assets/app.js': ['src/chat.js', 'src/mail.js']
        }
      },
      otherapp: {
        options: {
          // This options used as clinck package config
          // https://github.com/Meettya/clinch#package_config
          package_name: 'myApp',
          bundle: {
            app: 'src/app.js',
            chat: 'src/chat.js',
            mail: 'src/mail.js'
          },
          strict : 'on',
          inject : 'on',
          cache_modules: 'on',
          replacement: {}
        },
        dest: 'tmp/compiled-otherapp.js'
      }
    }
  }
});

Bitdeli Badge

0.1.1

10 years ago

0.1.0

10 years ago