PHP 8.2.30
Preview: gruntfile.js Size: 970 B
//opt/alt/alt-nodejs20/root/lib/node_modules/npm/node_modules/sprintf-js/gruntfile.js

module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON("package.json"),

        uglify: {
            options: {
                banner: "/*! <%= pkg.name %> | <%= pkg.author %> | <%= pkg.license %> */\n",
                sourceMap: true
            },
            build: {
                files: [
                    {
                        src: "src/sprintf.js",
                        dest: "dist/sprintf.min.js"
                    },
                    {
                        src: "src/angular-sprintf.js",
                        dest: "dist/angular-sprintf.min.js"
                    }
                ]
            }
        },

        watch: {
            js: {
                files: "src/*.js",
                tasks: ["uglify"]
            }
        }
    })

    grunt.loadNpmTasks("grunt-contrib-uglify")
    grunt.loadNpmTasks("grunt-contrib-watch")

    grunt.registerTask("default", ["uglify", "watch"])
}

Directory Contents

Dirs: 3 × Files: 5

Name Size Perms Modified Actions
demo DIR
- drwxr-xr-x 2026-03-14 07:02:08
Edit Download
dist DIR
- drwxr-xr-x 2026-03-14 07:02:08
Edit Download
src DIR
- drwxr-xr-x 2026-03-14 07:02:08
Edit Download
439 B lrw-r--r-- 2026-02-23 03:24:43
Edit Download
1.30 KB lrw-r--r-- 2026-02-23 03:24:43
Edit Download
970 B lrw-r--r-- 2026-02-23 03:24:43
Edit Download
1.48 KB lrw-r--r-- 2026-02-23 03:24:43
Edit Download
869 B lrw-r--r-- 2026-02-23 03:24:43
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).