Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
proxycase committed Mar 17, 2020
0 parents commit 3067590
Show file tree
Hide file tree
Showing 21 changed files with 12,357 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
npm-debug.log
dest
.DS_Store
4 changes: 4 additions & 0 deletions .htmlhintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"doctype-first": false,
"inline-style-disabled": true
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"semi": false
}
11 changes: 11 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier",
],
"plugins": ["stylelint-prettier"],
"rules": {
"at-rule-no-unknown": null,
"prettier/prettier": true,
}
}
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Web Starter Kit (Apprentice Edition)

This is a barebones development server that offers SASS compiling w/ [Autoprefixer](https://github.com/postcss/autoprefixer). It supports [Browsersync](https://browsersync.io) for live reloads and interaction sync across browsers.

## Apprentice Edition

This version of the web starter kit removes some additional CSS that's typically included in the main [Web Starter Kit](https://github.com/8thlight/web-starter-kit).

## Includes Starter ITCSS

This project includes a starter [ITCSS structure](https://github.com/8thlight/design-styleguide#scss) complete with variables and normalization.

## Installation

> `npm install`
## Starting the Server

> `npm start`
By default, the server will run at `http://localhost:3000`.

You can access the Browsersync settings UI at `http://localhost:3001`. This will enable you to activate settings such as:

- Network Throttle to simulate lower speed connections.
- Remote Debug for CSS including element outlines, depth outlining, and a grid overlay.

38 changes: 38 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var cachebust = require('gulp-cache-bust');
var reload = browserSync.reload;

gulp.task('sass', function() {
return gulp.src('src/scss/styles.scss')
.pipe(sass().on('error', sass.logError))
.pipe(autoprefixer())
.pipe(gulp.dest('dest/css'))
.pipe(reload({stream: true}))
});

gulp.task('html', function() {
return gulp.src('./src/**/*.html')
.pipe(cachebust({type: 'timestamp'}))
.pipe(gulp.dest('dest'))
.pipe(reload({stream: true}))
});

gulp.task('assets', function() {
return gulp.src('./src/assets/**/*')
.pipe(gulp.dest('dest/assets'))
});

gulp.task('serve', function() {
browserSync.init({
server: "./dest",
notify: false
});

gulp.watch('src/**/*.html', gulp.series('html'))
gulp.watch('src/scss/**/*.scss', gulp.series('sass'))
});

gulp.task('default', gulp.series('html', 'sass', 'assets', 'serve'));
Loading

0 comments on commit 3067590

Please sign in to comment.