Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-domman

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-domman

Grunt plugin for DOM manipulation

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

grunt-domman

Grunt plugin for DOM manipulation

Getting Started

安装插件:

npm install grunt-domman --save-dev

加载 grunt 任务:

grunt.loadNpmTasks('grunt-domman');

The "domman" task

Overview

在 Gruntfile.js 的 grunt.initConfig 中增加一个命名为 domman 的配置项:

grunt.initConfig({
  domman: {
    options: {
      plugins: ['tms', 'offline'],		// 要启用的插件
      prior: ['offline']				// 优先调用的插件按序排列
    },
    files: [
      {...}
    ]
  },
})

配置项

options.plugins

Type: Array Default value: ['tms', 'offline', '...']

要调用的 dom 操作插件,在 grunt-domman 模块的 plugins 目录下,默认值为 plugins 目录下的所有插件。

options.prior

Type: Array Default value: []

插件调用的优先级顺序,只写需要优先调用的 plugins 即可。

Release History

0.1.0

  • [!] 初始版本,支持 tmsoffline 插件

License

Copyright (c) 2014 弘树. Licensed under the MIT license.

Keywords

FAQs

Package last updated on 07 Nov 2014

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc