Template Upload

This commit is contained in:
SOUTHERNCO\x2mjbyrn
2017-05-17 13:45:25 -04:00
parent 415b9c25f3
commit 7efe7605b8
11476 changed files with 2170865 additions and 34 deletions

12
node_modules/bs-recipes/recipes/server/app.js generated vendored Normal file
View File

@ -0,0 +1,12 @@
/**
* Require Browsersync
*/
var browserSync = require('browser-sync');
/**
* Run Browsersync with server config
*/
browserSync({
server: "app",
files: ["app/*.html", "app/css/*.css"]
});

View File

@ -0,0 +1,4 @@
body {
background: white;
color: pink;
}

11
node_modules/bs-recipes/recipes/server/app/index.html generated vendored Normal file
View File

@ -0,0 +1,11 @@
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Browsersync Server Example</title>
<link rel='stylesheet' href='css/main.css'>
</head>
<body>
<h1>Browsersync Server Example</h1>
</body>
</html>

2
node_modules/bs-recipes/recipes/server/desc.md generated vendored Normal file
View File

@ -0,0 +1,2 @@
To see the live-updating and CSS injecting, simply perform changes to either `index.html` or `css/main.css`

13
node_modules/bs-recipes/recipes/server/package.json generated vendored Normal file
View File

@ -0,0 +1,13 @@
{
"name": "bs-recipes-server",
"version": "1.0.0",
"description": "Server example",
"main": "app.js",
"scripts": {
"start": "node app.js"
},
"license": "MIT",
"dependencies": {
"browser-sync": "^2.1.6"
}
}

48
node_modules/bs-recipes/recipes/server/readme.md generated vendored Normal file
View File

@ -0,0 +1,48 @@
#Browsersync - Server example
## Installation/Usage:
To try this example, follow these 4 simple steps.
**Step 1**: Clone this entire repo
```bash
$ git clone https://github.com/Browsersync/recipes.git bs-recipes
```
**Step 2**: Move into the directory containing this example
```bash
$ cd bs-recipes/recipes/server
```
**Step 3**: Install dependencies
```bash
$ npm install
```
**Step 4**: Run the example
```bash
$ npm start
```
### Additional Info:
To see the live-updating and CSS injecting, simply perform changes to either `index.html` or `css/main.css`
### Preview of `app.js`:
```js
/**
* Require Browsersync
*/
var browserSync = require('browser-sync');
/**
* Run Browsersync with server config
*/
browserSync({
server: "app",
files: ["app/*.html", "app/css/*.css"]
});
```