Socket
Socket
Sign inDemoInstall

anvil.buildr

Package Overview
Dependencies
101
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    anvil.buildr

Parses through script tags, pulls out the references and replaces them with concating files.


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
10.0 MB
Created
Weekly downloads
 

Readme

Source

anvil.buildr

anvil.buildr aims to remove the complexities of dealing with concating and minifying script tags. The idea behind the plugin is to take an html file such as...

<!DOCTYPE html>
<html>
<head>
	<script data-build="vendor" src="js/vendor/jquery.js"></script>
	<script data-build="vendor" src="js/vendor/modernizr.js"></script>
	<script data-build="vendor" src="js/vendor/underscore.js"></script>
	
	<script data-build="app" src="js/app.js"></script>
	<script data-build="app" src="js/views/home.js"></script>
	<script data-build="app" src="js/routers/index.js"></script>
</head>
<body>
</body>
</html>

It will read all the script tags, pull all of the references out grouped by the data-build attribute. Then it will concat all of the files specified in the data-build, and run any kind of minification plugins on them. Next, it will output a js file with a default location of js/vendor.build.js or js/app.build.js. And finally, the index.html will be modified to look like...

<!DOCTYPE html>
<html>
<head>
	<script src="js/vendor.build.js"></script>
	<script src="js/app.build.js"></script>
</head>
<body>
</body>
</html>

###COMING SOON Some features in the works are the ability to customize the build.json file as such...

{
	"anvil.buildr": {
		"vendor": {
			"minify": true,
			"output": "js/build/vendor.js"
		},
		"app": {
			"minify": false,
			"output": "js/build/app.js"
		}
	}
}

Keywords

FAQs

Last updated on 09 Nov 2012

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc