# grunt-module-traversal

> It's a tool for traverse all the dependencies of js modules, and write the imported css or js files to the html files!

Latest version **0.0.2** (published 2013-11-25) · 0 weekly downloads

## Install

```sh
npm install grunt-module-traversal
pnpm add grunt-module-traversal
yarn add grunt-module-traversal
bun add grunt-module-traversal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2013-11-25 |
| First published | 2013-11-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ginano |
| Maintainers | ginano |
| Keywords | gruntplugin, html, min, module, amd, traversal |

## Links

- npm: https://www.npmjs.com/package/grunt-module-traversal
- Repository: https://github.com/ginano/grunt-module-traversal
- Issues: https://github.com/ginano/grunt-module-traversal/issues
- npm.io page: https://npm.io/package/grunt-module-traversal

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2013-11-25
- 0.0.1 — 2013-11-01

## README

# grunt-module-traversal

> It's a tool for dolphinjs to traverse the modules of one html file.

## Getting Started
This plugin requires Grunt `~0.4.1`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-module-traversal --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-module-traversal');
```

You can run the testcase. change you path to ./node_modeules/grunt-module-traversal/, and run grunt. You could see the result file ./test/test_new.html was created! The ./Gruntfile.js has the base function of this task, so you could use it as that. If you have any question, you can contact me at sina weibo: http://weibo.com/ginano
## The "moduleTraversal" task

### Overview
In your project's Gruntfile, add a section named `moduleTraversal` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  moduleTraversal: {
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
})
```

```change logs

2013-11-25 add some comments in the sourcecode, and add the function of setting shared rate for common modules, which could compress these files to one common file.

---
_Source: https://npm.io/package/grunt-module-traversal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
