Giter Site home page Giter Site logo

grunt-spreadsheet-to-json's People

Contributors

amitit avatar schepp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

grunt-spreadsheet-to-json's Issues

Warning: Cannot read property 'filter' of undefined Use --force to continue.

Trying to use with the following config similar to the docs:

module.exports = function(grunt) {
  grunt.initConfig({
    spreadsheet_to_json: {
      options: {
          keyfile: 'MY-APP-KEY-d2400e48869d.json',
          spreadsheetId: '1eCvbblOwZ---MYSPREADSHEET----rl0KP4xc89I'
      },
      content: {
        dest: 'translations/'
      }
    }
  });
  grunt.loadNpmTasks('grunt-spreadsheet-to-json');
};

Then the following code of this extensions throws an error:

            var src = f.src.filter(function (filepath) {
                // Warn on and remove invalid source files (if nonull was set).
                if (!grunt.file.exists(filepath)) {
                    grunt.log.warn('Source file "' + filepath + '" not found.');
                    return false;
                } else {
                    return true;
                }
            }).map(function (filepath) {
                // Read file source.
                return grunt.file.read(filepath);
            }).join(grunt.util.normalizelf(options.separator));

Since f.src is undefined we get the following error:

Warning: Cannot read property 'filter' of undefined Use --force to continue.

What kind of source files are expected exactly? As far as I understand the source is the spreadsheet and we just have a target file?

Thanks

source to keyfile

I had a problem with linking to the keyfile because I thought it was relative to the module instead of grunt root.

Thanks to @LaurentGoderre for the help on that.

Thanks

No being able to use it

Hi,

I've spent a time trying to use the grunt-spreadsheet-to-json but I'm not sure if I'm doing something wrong, even had reviewed sometimes.. maybe I'm missing something..

#Confirm that it's installed#
screen shot 2018-05-17 at 4 01 19 pm

#Gruntfile#
screen shot 2018-05-17 at 4 01 40 pm

screen shot 2018-05-17 at 4 05 34 pm

#Key file and grunt file are on the same level#
screen shot 2018-05-17 at 4 07 35 pm

#Running grunt#
screen shot 2018-05-17 at 4 02 40 pm

Any help, tip is welcome.

thanks

Warning: Cannot find module 'config/auth.json' Use --force to continue.

I'm continually getting this error โ€“ the script can't seem to pick up my json keyfile from Google. Relevant section of my Gruntfile is below, any suggestions would be awesome. Thanks!

grunt.initConfig({
        spreadsheet_to_json: {
            options: {
                keyfile: 'config/auth.json'
            },
            translations: {
                options: {
                    spreadsheetId: 'MY_SPREADSHEET_ID',
                    ignoreColumns: ['annotations']
                },
                dest: 'assets/json'
            },
        },
    });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.