Bunu yapmanın homurdandığından emin değilim. Çalışmak istediğim iki görevim var. İlk görev bir alay sonrası oluşturmak ve ikinci satır içi css penthouse
görev çalıştırmaktır. Herhangi bir hacky yolu açığız.Grunt görevinin besleme çıktısı başka bir aldatmaca göre nasıl yapılır?
Bu, WordPress'de bir blog yayını oluşturmak için çalıştırmam gereken exec
görevidir.
exec: {
create_mock: {
cmd: 'cd ~/MyProjects/project/vip-quickstart && vagrant ssh -c \'sh /srv/www/wp-content/themes/vip/the-theme/bin/mock-post.sh\'',
callback: function(err, stdout, stderr) {
grunt.log.write('stdout: ' + stdout); // This is the url of the created post.
}
}
},
çıkış Blog yazısı oluşturuldu url ve ben bu görevi tüm ekranın üst kısmındaki css almak görüneceğini url beslemek için gereken çalıştırmak için bu penthouse
görev var. Aklıma
penthouse: {
singular: {
outfile: 'assets/css/inline/_singular.css',
css: 'assets/css/theme.css',
minify: true,
url: $URL, // << I want to feed in the url from the previous task to here.
width: 1300,
height: 900
}
},
hacky yolu bir dosyaya out kaydetmek ve penthouse
görev okumak için ama bunu yapmak için daha iyi bir yolu olmalı var.
Çok teşekkürler.