Coder Social home page Coder Social logo

isnan909 / recipes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from browsersync/recipes

0.0 1.0 0.0 151 KB

Fully working project examples showing how to use BrowserSync in various ways.

JavaScript 72.92% CSS 11.15% HTML 14.48% TypeScript 1.45%

recipes's Introduction

Browsersync recipes.

There are endless amounts of possible integrations and workflow scenarios when using Browsersync, so this project is an attempt to highlight as many of them as we can, whilst providing full, working examples.

Here's what we have currently...

... each one is a full, working example - just have a look at the readme.md in each one for installation instructions.

Contributions / Feedback

Spotted an error? Couldn't get one of the examples running? Have your own sweet setup that you want to show off to the world? We'd love to receive your feedback and contributions - so please get in touch! We aim to make this project the canonical source of example projects & code snippets related to running Browsersync.

How to contribute an example

First thing you should do, is take a look at our simplest example here - this will give you a great head-start on setting up your code.

Then, fork this repo and clone your fork down to your local machine. Now create a new folder inside recipes (note the naming structure). This is where you create your awesome example. You're free to do as you like, but there are a couple of rules you'll need to follow to ensure the project can build.

Required Files

  • package.json (see below for requirements)
  • app.js (or any JS file showing the example)
  • ./app directory. Always include the minimum HTML, JS & CSS needed to prove your example.

Do NOT include

  • readme.md (this is created dynamically for you)
  • any other files that are not related to your example.

package.json requirements

start command: For consistency, ensure your example can be run with the command npm start. To do this, you just need to provide something along these lines:

"scripts": {
    "start": "node app.js"
},

main file: We inline your main Javascript file into the readme.md, so don't miss this field.

"main": "app.js" // or gulpfile.js etc

description: We use this as the Title. So make it short and descriptive, such as

"description": "Server example"

Finally, build.

After you've added your example in the recipes folder, return to the root and run

npm install && npm run build

This will install Crossbow.js and compile the project. Commit everything that has changed and push it up to your fork. Send a Pull Request when you're ready, or if you'd like us to have a look over your code before that, just ping us twitter and we'll take a look!

recipes's People

Contributors

shakyshane avatar faergeek avatar maxikg avatar idgs avatar kartiklad avatar shinnn avatar svenschoenung avatar villelahdenvuo avatar nashwaan avatar filiptri avatar johnlindquist avatar laiso avatar troybetz avatar vonkanehoffen avatar

Watchers

James Cloos 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.