How to use the nw/package.json.version function in nw

To help you get started, we’ve selected a few nw examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Dineshs91 / devlog / Gruntfile.js View on Github external
'use strict';

var pkg = require("./package.json");

var NW_VERSION = require('nw/package.json').version;

module.exports = function(grunt) {
    if (grunt.file.exists('tasks')) {
        grunt.loadTasks('tasks');
    }
    
    grunt.loadNpmTasks('grunt-contrib-clean');
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-exec');
    grunt.loadNpmTasks('grunt-github-releaser');
    grunt.loadNpmTasks('grunt-nw-builder');

    grunt.initConfig({
        pkg: pkg,
        jshint: {
            all: [