<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gulp.js &#8211; İNTERNET ALEMİ</title>
	<atom:link href="https://www.internetalemi.net/tag/gulp-js-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.internetalemi.net</link>
	<description>İnternet, Bilişim, Yazılım Haber ve Günlüğü</description>
	<lastBuildDate>Mon, 10 Jan 2022 16:16:06 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.internetalemi.net/wp-content/uploads/2017/01/cropped-internet-alemi-logo-32x32.png</url>
	<title>gulp.js &#8211; İNTERNET ALEMİ</title>
	<link>https://www.internetalemi.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Gulpjs Kullanımı ve gulpfile.js ile sass render etme</title>
		<link>https://www.internetalemi.net/gulpjs-kullanimi/</link>
					<comments>https://www.internetalemi.net/gulpjs-kullanimi/#respond</comments>
		
		<dc:creator><![CDATA[Dev KARINCA]]></dc:creator>
		<pubDate>Mon, 10 Jan 2022 13:02:53 +0000</pubDate>
				<category><![CDATA[Programlama]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[gulp js]]></category>
		<category><![CDATA[gulp.js]]></category>
		<category><![CDATA[gulpfile.js]]></category>
		<category><![CDATA[scss]]></category>
		<guid isPermaLink="false">https://www.internetalemi.net/?p=4692</guid>

					<description><![CDATA[<p>SASS ön işlemcilerinin derlenmesi için bu blog yazımızda Gulpjs kullanacağız. Peki sass veya scss nedir. Eğer programlamanın nimetlerinden css kullanarak yararlanmak istiyorsanız sass kullanabilirsiniz. Yani sitede kullanılan ana rengi bir değişkene atayarak , ilerleyen tarihlerde bu rengi değiştirmek istediğinizde sadece değişkenin değerini kullanarak tüm sitenizin rengini değiştirebilirsiniz. Şimdi gelelim nasıl kullanacağımıza: Node js bilgisayarınızda kurulumu [&#8230;]</p>
<p><a rel="nofollow" href="https://www.internetalemi.net/gulpjs-kullanimi/">Gulpjs Kullanımı ve gulpfile.js ile sass render etme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></description>
										<content:encoded><![CDATA[
<p><strong>SASS </strong>ön işlemcilerinin derlenmesi için bu blog yazımızda <strong>Gulpjs </strong>kullanacağız. Peki <strong>sass </strong>veya <strong>scss </strong>nedir. Eğer programlamanın nimetlerinden css kullanarak yararlanmak istiyorsanız sass kullanabilirsiniz. Yani sitede kullanılan ana rengi bir değişkene atayarak , ilerleyen tarihlerde bu rengi değiştirmek istediğinizde sadece değişkenin değerini kullanarak tüm sitenizin rengini değiştirebilirsiniz.</p>



<p>Şimdi gelelim nasıl kullanacağımıza:</p>



<ul class="wp-block-list"><li><strong>Node js </strong>bilgisayarınızda kurulumu ? Kurulu olup olmadığı öğrenmek için <strong>node &#8211;version</strong> komutunu terminalde kullanarak öğrenebilirsiniz. Eğer kurulu değilse <a href="https://nodejs.org/en/" target="_blank" rel="noreferrer noopener">https://nodejs.org/en/</a> linkinden kurma işlemini yapabilirsiniz</li><li>npm install &#8211;global gulp-cli   //Terminale yazın</li><li>Hangi dizine kurmak istiyorsanız işlemi onun içine geçin ve npm init &#8211; -y yazin. Bu komut dizininizde package.json dosyasi oluşturacaktır. </li><li>npm install &#8211;save-dev gulp //Terminale yazın  Developer olarak package.json dosyasına bağımlılık ekleyecek. </li></ul>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="459" height="512" src="https://www.internetalemi.net/wp-content/uploads/2022/01/packagejson.jpg" alt="" class="wp-image-4694" srcset="https://www.internetalemi.net/wp-content/uploads/2022/01/packagejson.jpg 459w, https://www.internetalemi.net/wp-content/uploads/2022/01/packagejson-269x300.jpg 269w, https://www.internetalemi.net/wp-content/uploads/2022/01/packagejson-377x420.jpg 377w" sizes="(max-width: 459px) 100vw, 459px" /></figure>



<ul class="wp-block-list"><li>Terminale <strong>gulp &#8211;version</strong> yazarak aşağıdaki sonucu görün. </li></ul>



<figure class="wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img decoding="async" width="453" height="87" src="https://www.internetalemi.net/wp-content/uploads/2022/01/gulpjs.jpg" alt="" data-id="4695" data-full-url="https://www.internetalemi.net/wp-content/uploads/2022/01/gulpjs.jpg" data-link="https://www.internetalemi.net/?attachment_id=4695" class="wp-image-4695" srcset="https://www.internetalemi.net/wp-content/uploads/2022/01/gulpjs.jpg 453w, https://www.internetalemi.net/wp-content/uploads/2022/01/gulpjs-300x58.jpg 300w" sizes="(max-width: 453px) 100vw, 453px" /></figure></li></ul></figure>



<p>Aşağıdaki gibi <strong>Gulpfile.js</strong> isminde içi boş bir dosya oluşturun. <strong>Sass </strong>isminde bir klasor ve içine iki tane boş <strong>scss </strong>uzantılı dosya oluşturun (<strong>index.scss ve main.scss</strong>)</p>



<figure class="wp-block-image size-full"><img decoding="async" width="221" height="280" src="https://www.internetalemi.net/wp-content/uploads/2022/01/gulpfilejs.jpg" alt="" class="wp-image-4696"/></figure>



<p>Gulpfile.js isminde  içi boş bir dosya oluşturun. Bu dosyanın içine aşağıdaki kod satırlarını yapıştırın.</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="https://www.internetalemi.net/wp-content/uploads/2022/01/gulpfilejsfile.jpg" alt="" class="wp-image-4705" width="893" height="520" srcset="https://www.internetalemi.net/wp-content/uploads/2022/01/gulpfilejsfile.jpg 893w, https://www.internetalemi.net/wp-content/uploads/2022/01/gulpfilejsfile-300x175.jpg 300w, https://www.internetalemi.net/wp-content/uploads/2022/01/gulpfilejsfile-768x447.jpg 768w, https://www.internetalemi.net/wp-content/uploads/2022/01/gulpfilejsfile-721x420.jpg 721w, https://www.internetalemi.net/wp-content/uploads/2022/01/gulpfilejsfile-640x373.jpg 640w, https://www.internetalemi.net/wp-content/uploads/2022/01/gulpfilejsfile-681x397.jpg 681w" sizes="auto, (max-width: 893px) 100vw, 893px" /></figure>



<p>7.satırda anlatılan <strong>sass </strong>klasörünüzün altındaki bütün <strong>scss </strong>uzantılı dosyaları 9. satırda <strong>css </strong>klasörünüzün altına <strong>css </strong>uzantılı olarak <strong>render </strong>eder. Sizin ekstradan <strong>css </strong>klasörü oluşturmanıza gerek kalmaz. İlk render ettiğinizde otomatik olarak oluşturur. Render etmek için<strong> gulp buildStyles </strong>komutunu terminale yazmanız lazım. </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="545" height="107" src="https://www.internetalemi.net/wp-content/uploads/2022/01/rendergulpfile.jpg" alt="" class="wp-image-4706" srcset="https://www.internetalemi.net/wp-content/uploads/2022/01/rendergulpfile.jpg 545w, https://www.internetalemi.net/wp-content/uploads/2022/01/rendergulpfile-300x59.jpg 300w" sizes="auto, (max-width: 545px) 100vw, 545px" /></figure>



<h2 class="wp-block-heading">Gulp Watch Nedir</h2>



<p>14. satırda gulp.watch komutuyla da sass klasorunuzun altındaki scss uzantılı dosyaları her kaydettiğinizde otomatık render işlemi yapmak içindir. Böylece sass dosyasındaki css kodu değişikliğinde tekrar tekrar render render etmek zorunda kalmazsınız. CAlıstırmak için terminalde <strong>gulp watch</strong> yazın.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="610" height="90" src="https://www.internetalemi.net/wp-content/uploads/2022/01/gulpwatch.jpg" alt="" class="wp-image-4709" srcset="https://www.internetalemi.net/wp-content/uploads/2022/01/gulpwatch.jpg 610w, https://www.internetalemi.net/wp-content/uploads/2022/01/gulpwatch-300x44.jpg 300w" sizes="auto, (max-width: 610px) 100vw, 610px" /></figure>



<p>Aşağıda <strong>index.scss</strong> dosyasını değiştirdiğimizde sağdaki <strong>render </strong>edilen <strong>index.css</strong> otomatik değişir. <strong>Gulp wacht</strong> işlemi aktif olduğu için sadece kaydetmemiz yeterlidir.</p>



<figure class="wp-block-image size-large is-resized td-caption-align-https://www.internetalemi.net/wp-content/uploads/2022/01/render.jpg"><img loading="lazy" decoding="async" src="https://www.internetalemi.net/wp-content/uploads/2022/01/render-1024x679.jpg" alt="" class="wp-image-4710" width="1022" height="677" srcset="https://www.internetalemi.net/wp-content/uploads/2022/01/render-1024x679.jpg 1024w, https://www.internetalemi.net/wp-content/uploads/2022/01/render-300x199.jpg 300w, https://www.internetalemi.net/wp-content/uploads/2022/01/render-768x509.jpg 768w, https://www.internetalemi.net/wp-content/uploads/2022/01/render-633x420.jpg 633w, https://www.internetalemi.net/wp-content/uploads/2022/01/render-640x424.jpg 640w, https://www.internetalemi.net/wp-content/uploads/2022/01/render-681x452.jpg 681w, https://www.internetalemi.net/wp-content/uploads/2022/01/render.jpg 1437w" sizes="auto, (max-width: 1022px) 100vw, 1022px" /></figure>



<p>Umarım faydalı olmuştur. </p>
<p><a rel="nofollow" href="https://www.internetalemi.net/gulpjs-kullanimi/">Gulpjs Kullanımı ve gulpfile.js ile sass render etme</a> yazısı ilk önce <a rel="nofollow" href="https://www.internetalemi.net">İNTERNET ALEMİ</a> üzerinde ortaya çıktı.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.internetalemi.net/gulpjs-kullanimi/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
