Skip to content

Task "sectv-prepare:sectv-orsay" not found. #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
navratill opened this issue Sep 4, 2018 · 3 comments
Open

Task "sectv-prepare:sectv-orsay" not found. #87

navratill opened this issue Sep 4, 2018 · 3 comments

Comments

@navratill
Copy link

Hi,

after setting up the project with your shell script, all prepare and build methods are failing,

for example "grunt sectv-prepare:sectv-orsay" returns:

Warning: Task "sectv-prepare:sectv-orsay" not found. Use --force to continue.

Aborted due to warnings.

All another methods returns the same. Application is possible to build and run only for web browser emulator.

@navratill
Copy link
Author

navratill commented Sep 4, 2018

here is output of the same task with --verbose

Initializing
Command-line options: --verbose, --gruntfile=/Users/ladislav.navratil/Git/nangu/samsung-test/TestApp/node_modules/grunt-cordova-sectv/Gruntfile.js

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Reading package.json...OK
Parsing package.json...OK
Initializing config...OK

Registering "grunt-contrib-jshint" local Npm module tasks.
Reading /Users/ladislav.navratil/Git/nangu/samsung-test/TestApp/node_modules/grunt-cordova-sectv/node_modules/grunt-contrib-jshint/package.json...OK
Parsing /Users/ladislav.navratil/Git/nangu/samsung-test/TestApp/node_modules/grunt-cordova-sectv/node_modules/grunt-contrib-jshint/package.json...OK
Loading "jshint.js" tasks...OK
+ jshint
Loading "Gruntfile.js" tasks...OK
+ default, precommit

Running tasks: sectv-prepare:sectv-orsay
Warning: Task "sectv-prepare:sectv-orsay" not found. Use --force to continue.

Aborted due to warnings.

@navratill
Copy link
Author

Gruntfile.js looks like that:

'use strict';

module.exports = function(grunt) {
    grunt.initConfig({
        jshint: {
            options: {
                jshintrc: '.jshintrc',
            },
            src: ['www/**/*.js']
        },
        clean: ['platforms/sectv-orsay/www/**/*' , 'platforms/sectv-orsay/build/*' , 'platforms/sectv-tizen/www/**/*' , 'platforms/sectv-tizen/build/*', 'platforms/tv-webos/www/**/*' , 'platforms/tv-webos/build/*'],
        'sectv-prepare': {
            'sectv-orsay': {
                dest: 'platforms/sectv-orsay/www',
                platformRepos: '../cordova-sectv-orsay',
                scripts: {
                    'cordova.js': '../cordova-js/pkg/cordova.sectv-orsay.js',
                    'toast.js': '../cordova-plugin-toast/platform_www/sectv-orsay/toast.js'
                }
            },
            'sectv-tizen': {
                dest: 'platforms/sectv-tizen/www',
                platformRepos: '../cordova-sectv-tizen',
                scripts: {
                    'cordova.js': '../cordova-js/pkg/cordova.sectv-tizen.js',
                    'toast.js': '../cordova-plugin-toast/platform_www/sectv-tizen/toast.js'
                }
            },
            'tv-webos': {
                dest: 'platforms/tv-webos/www',
                platformRepos: '../cordova-tv-webos',
                scripts: {
                    'cordova.js': '../cordova-js/pkg/cordova.tv-webos.js',
                    'toast.js': '../cordova-plugin-toast/platform_www/tv-webos/toast.js'
                }
            }
        },
        'sectv-build': {
            'sectv-orsay': {
                www: 'platforms/sectv-orsay/www',
                dest: 'platforms/sectv-orsay/build'
            },
            'sectv-tizen': {
                profilePath: '/home/TizenSDK/.metadata/.plugins/org.tizen.common.sign/profiles.xml',
                profileName: 'myprofile',
                www: 'platforms/sectv-tizen/www',
                dest: 'platforms/sectv-tizen/build'
            },
            'tv-webos': {
                www: 'platforms/tv-webos/www',
                dest: 'platforms/tv-webos/build'
            }
        }
    });

    // external tasks
    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-clean');

    // custom tasks
    grunt.loadNpmTasks('grunt-cordova-sectv');

    // defaults
    grunt.registerTask('default', ['jshint', 'clean', 'sectv-prepare', 'sectv-build']);

@Francogo
Copy link

Hi,
I run in the same trouble using one of the sample provided, it was using the grunt-cordova-sectv from npm and not the one downloaded from github. It looks the one on NPM doesn't have a prepare but a package method.
Try replacing in your package.json the version of this component with
"grunt-cordova-sectv": "file:../grunt-cordova-sectv",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants