Skip to content
ZahgonPublic
forked from gruntjs/grunt

About

Grunt: The JavaScript Task Runner

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1,552 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grunt: The JavaScript Task Runner

Built with Grunt Tested with QUnit FOSSA Status

Documentation

Visit the gruntjs.com website for all the things.

Go

This repository is grunt 1.6.3 for gruntfiles written in Go: the module github.com/gruntjs/grunt-go (Go 1.27, standard library only). A gruntfile is a Go program that hands its body to grunt.Main, and behaves like grunt run by grunt-cli 1.5.0 next to a Gruntfile.js with the same body:

package main

import (
	"github.com/gruntjs/grunt-go"
	"github.com/gruntjs/grunt-go/js"
)

func main() {
	grunt.Main(func(g *grunt.Grunt) {
		g.InitConfig(grunt.O("pkg", grunt.O("name", "demo")))
		g.RegisterTask("default", "Say hello.", grunt.TaskFunc(func(t *grunt.Task) any {
			g.Log.Writeln("Hello from " + js.ToString(g.Config.Get("pkg.name")))
			return nil
		}))
	})
}

go run . build:dist --verbose takes the same options and task arguments as grunt. The API is in the package documentation (go doc github.com/gruntjs/grunt-go). Template code runs on the JavaScript subset in docs/template-js.md, with the helpers in docs/template-helpers.md. What differs from the JavaScript version is listed in MIGRATION.md.

Run the tests with go test ./....

Support

We support the latest version with security and bug fixes. The previous versions are all end-of-life and will not receive any security or bug fixes.

Our OpenJS Ecosystem Sustainability Program partner HeroDevs provides drop-in replacements for older versions of Grunt that are kept up-to-date for security and compliance issues. Learn More.

Version Support

Version Supported? Commercial Support
1.6 YES
1.5 NO Available Here
1.4 NO Available Here
1.3 NO Available Here
1.2 NO Available Here
1.1 NO Available Here
1.0 NO Available Here
0.4 NO Available Here

Contributing

Before you make an issue, please read our Contributing guide.

Release History

See the CHANGELOG.md.

License

MIT

About

Grunt: The JavaScript Task Runner

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages