Giter Site home page Giter Site logo

Comments (6)

ctalkington avatar ctalkington commented on September 16, 2024

im noticing this though i'm a bit more specific in my watch config and don't change the base anymore.

shopify: {
  files: [
    'assets/*.*',
    'config/*.*',
    'layout/*.*',
    'locales/*.*',
    'snippets/*.*',
    'templates/{,customers/}*.*'
  ],
  tasks: [
    'shopify'
  ]
}

from grunt-shopify.

ctalkington avatar ctalkington commented on September 16, 2024

in my initial tests, it would appear the watch event is never caught.

running node 0.12.6, grunt 0.4.5, contrib-watch 0.6.1, shopify 0.6.0 on windows.
tried shopify 0.5.4 too with same results.

from grunt-shopify.

ctalkington avatar ctalkington commented on September 16, 2024

ok so not sure how i missed this before but it was the just-in-time task loader in my case.

make sure you have grunt.loadNpmTasks('grunt-shopify'); loaded as early as possible to catch these events.

from grunt-shopify.

bradhaas1 avatar bradhaas1 commented on September 16, 2024

Does this plugin even attempt to push? grunt.loadNpmTasks('grunt-shopify'); loads first, i receive the "Done without out errors message." But nothing is ever updated.

Grunt file watch is setup correctly, I see file changed notification messages every time I save on my local, but updates are never made to my remote files.

I even disabled my laptops wireless and I still get "Done without errors. Completed on..."

???

    module.exports = function(grunt) {

        grunt.loadNpmTasks('grunt-shopify');
        grunt.loadNpmTasks('grunt-contrib-watch') 

        grunt.initConfig({
        shopify: {
            options: {
            //You can find these in your Shopify Admin under Apps then look at the bottom for Create a private API Key
                api_key: "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
                password: "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
                url: "STORE-NAME.myshopify.com",
                base: 'shop/'
            }
        },
        watch: {
            shopify: {
                files: ['shop/**'],
                tasks: ["shopify"],
                theme: ["Shopify-Birthday-Suit-Master"]
            }
        }
        });
        grunt.registerTask('default', ['shopify', 'watch']);
    };

from grunt-shopify.

MelchnerRoman avatar MelchnerRoman commented on September 16, 2024

@bradhaas1

"theme" must be in task "shopify"
shopify: { options: { api_key: "xxxxx", password: "xxxxxx", url: "name.myshopify.com", theme: '1234567', //number of theme (get it with grunt shopify:themes) } },
and then watch task:
watch: { shopify: { files: ["assets/**", "layout/**", "snippets/**", "templates/**"], tasks: ["shopify"], options: { spawn: false, }, } },

from grunt-shopify.

wilr avatar wilr commented on September 16, 2024

Closing as it sounds like resolved. If not, try 1.0.0 and let me know if you need clarification.

from grunt-shopify.

Related Issues (20)

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.