mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-12 13:41:40 +00:00
update
This commit is contained in:
38
node_modules/bs-recipes/recipes/grunt.sass/Gruntfile.js
generated
vendored
Normal file
38
node_modules/bs-recipes/recipes/grunt.sass/Gruntfile.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
// This shows a full config file!
|
||||
module.exports = function (grunt) {
|
||||
grunt.initConfig({
|
||||
watch: {
|
||||
files: 'app/scss/**/*.scss',
|
||||
tasks: ['sass']
|
||||
},
|
||||
sass: {
|
||||
dev: {
|
||||
files: {
|
||||
'app/css/main.css': 'app/scss/main.scss'
|
||||
}
|
||||
}
|
||||
},
|
||||
browserSync: {
|
||||
dev: {
|
||||
bsFiles: {
|
||||
src : [
|
||||
'app/css/*.css',
|
||||
'app/*.html'
|
||||
]
|
||||
},
|
||||
options: {
|
||||
watchTask: true,
|
||||
server: './app'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// load npm tasks
|
||||
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-browser-sync');
|
||||
|
||||
// define default task
|
||||
grunt.registerTask('default', ['browserSync', 'watch']);
|
||||
};
|
4
node_modules/bs-recipes/recipes/grunt.sass/app/css/main.css
generated
vendored
Normal file
4
node_modules/bs-recipes/recipes/grunt.sass/app/css/main.css
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
body {
|
||||
background: orange; }
|
||||
|
||||
/*# sourceMappingURL=main.css.map */
|
11
node_modules/bs-recipes/recipes/grunt.sass/app/index.html
generated
vendored
Normal file
11
node_modules/bs-recipes/recipes/grunt.sass/app/index.html
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<!doctype html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Browsersync, Grunt + SASS Example</title>
|
||||
<link rel='stylesheet' href='css/main.css'>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Browsersync, Grunt + SASS Example</h1>
|
||||
</body>
|
||||
</html>
|
3
node_modules/bs-recipes/recipes/grunt.sass/app/scss/main.scss
generated
vendored
Normal file
3
node_modules/bs-recipes/recipes/grunt.sass/app/scss/main.scss
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
body {
|
||||
background: orange;
|
||||
}
|
0
node_modules/bs-recipes/recipes/grunt.sass/desc.md
generated
vendored
Normal file
0
node_modules/bs-recipes/recipes/grunt.sass/desc.md
generated
vendored
Normal file
17
node_modules/bs-recipes/recipes/grunt.sass/package.json
generated
vendored
Normal file
17
node_modules/bs-recipes/recipes/grunt.sass/package.json
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "grunt.sass",
|
||||
"version": "1.0.0",
|
||||
"description": "Grunt & SASS",
|
||||
"main": "Gruntfile.js",
|
||||
"scripts": {
|
||||
"start": "grunt"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-browser-sync": "^2.0.0",
|
||||
"grunt-contrib-sass": "^0.9.2",
|
||||
"grunt-contrib-watch": "^0.6.1"
|
||||
}
|
||||
}
|
72
node_modules/bs-recipes/recipes/grunt.sass/readme.md
generated
vendored
Normal file
72
node_modules/bs-recipes/recipes/grunt.sass/readme.md
generated
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
#Browsersync - Grunt & SASS
|
||||
|
||||
## 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/grunt.sass
|
||||
```
|
||||
|
||||
**Step 3**: Install dependencies
|
||||
```bash
|
||||
$ npm install
|
||||
```
|
||||
|
||||
**Step 4**: Run the example
|
||||
```bash
|
||||
$ npm start
|
||||
```
|
||||
|
||||
### Additional Info:
|
||||
|
||||
|
||||
|
||||
### Preview of `Gruntfile.js`:
|
||||
```js
|
||||
// This shows a full config file!
|
||||
module.exports = function (grunt) {
|
||||
grunt.initConfig({
|
||||
watch: {
|
||||
files: 'app/scss/**/*.scss',
|
||||
tasks: ['sass']
|
||||
},
|
||||
sass: {
|
||||
dev: {
|
||||
files: {
|
||||
'app/css/main.css': 'app/scss/main.scss'
|
||||
}
|
||||
}
|
||||
},
|
||||
browserSync: {
|
||||
dev: {
|
||||
bsFiles: {
|
||||
src : [
|
||||
'app/css/*.css',
|
||||
'app/*.html'
|
||||
]
|
||||
},
|
||||
options: {
|
||||
watchTask: true,
|
||||
server: './app'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// load npm tasks
|
||||
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-browser-sync');
|
||||
|
||||
// define default task
|
||||
grunt.registerTask('default', ['browserSync', 'watch']);
|
||||
};
|
||||
```
|
||||
|
Reference in New Issue
Block a user