Comments (6)
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.
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.
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.
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.
"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.
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)
- Livereload is trigger prematurely HOT 4
- Watch doesn't detect addition / deletion of files HOT 2
- Task doesn't do anything... HOT 2
- I keep getting this error: Loading "shopify.js" tasks...ERROR
- shopify watch errors HOT 2
- Shopify:Download grunt task not working HOT 1
- Updating just changed files? HOT 1
- Gulp equivalent of grunt-shopify HOT 2
- Download is throttled HOT 2
- not in base path HOT 2
- watch stopped working shopify:upload still works HOT 2
- Deploy without images
- New 'Sections' feature in themes HOT 2
- Suggestion: Ignore settings_data.json setting HOT 1
- "Loading "shopify.js" tasks...ERROR" after updating to 1.0.1 from 1.0.0 HOT 1
- Cannot find module growl HOT 2
- Getting upload errors for the "assets" folder
- Not allowed by Shopify whitelist HOT 1
- Request limit exceeded for the Shopify API Use HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-shopify.