7.0.1 • Published 6 years ago

grunt-copy-browser-modules v7.0.1

Weekly downloads
205
License
Apache-2.0
Repository
github
Last release
6 years ago

Collects browser modules from node_modules and dumps them somewhere as commonjs Packages/A style packages (note that this is similar to but not the same as node modules), ready to use with requirejs or other systems.

First, it scans the tree of node_modules, detecting and erroring if browser modules overlap. There is no support for node style nesting dependencies and search path from each module.

Then it takes that list of modules and copies them to the target directory.

This wraps the copy-browser-modules package into a grunt shaped fun time.

An example task:

module.exports = function copyto(grunt) {
    // Load task
    grunt.loadNpmTasks('grunt-copy-browser-modules');

    // Options
    return {
        build: {
            options: {
                root: path.resolve(__dirname, '..'),
                dest: path.resolve(__dirname, '..', 'public', 'components'),
                basePath: path.resolve(__dirname, '..', 'public')
            }
        }
    };
};
7.0.1

6 years ago

7.0.0

6 years ago

6.0.0

8 years ago

5.0.1

9 years ago

5.0.0

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.1.0

9 years ago

3.0.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

1.0.0-1

9 years ago

1.0.0-0

9 years ago