GithubHelp home page GithubHelp logo

gulp-yarn-demo's Introduction

README

What is this repository for?

This repository contains the demo files created in tutorial: A Guide to Automating Sitecore Development Tasks With Gulp This tutorial is aimed at Sitecore/.NET developers who are new to the node universe. We will automate the tasks of bundling JavaScript modules and publishing to the Sitecore instance using the following frameworks:

How do I get set up?

  • Clone repo as a sibling of Sitecore's /Website folders
  • Use npm to install yarn globally
$ npm install --global yarn
  • Use yarn to install required node dependencies
$ yarn install

This installs gulp and plugins necessary for running rollup in gulp.

Use gulp tasks

There are several gulp tasks defined in gulpfile.js. Run them using

$ gulp task-name
  • rollup: task for compiling/bundling all js modules and their 3rd party dependencies from /src into a single file (dist/bundle.js)
  • publish-js: task for publishing rollup bundle to Sitecore instance
  • watch-js: task for making gulp watch JavaScript files for changes and automatically publishing to Sitecore instance when changes are detected
  • before-build: task that runs when Build task is called in Visual Studio
  • clean: task that runs when Clean task is called in Visual Studio

gulp-yarn-demo's People

Contributors

anastasiya29 avatar

Watchers

 avatar

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.