Skip to content

Commit fdf1e68

Browse files
committed
Initial commit
0 parents  commit fdf1e68

File tree

9 files changed

+109
-0
lines changed

9 files changed

+109
-0
lines changed

.babelrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["es2015"],
3+
"retainLines": true
4+
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

app/css/styles.scss

Whitespace-only changes.

app/favicon.ico

Whitespace-only changes.

app/index.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!doctype html>
2+
<html class="no-js" lang="">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="x-ua-compatible" content="ie=edge">
6+
<title></title>
7+
<meta name="description" content="">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
10+
<link rel="apple-touch-icon" href="apple-touch-icon.png">
11+
<!-- Place favicon.ico in the root directory -->
12+
13+
<link rel="stylesheet" href="css/normalize.css">
14+
<link rel="stylesheet" href="css/styles.css">
15+
</head>
16+
<body>
17+
18+
<!-- Add your site or application content here -->
19+
<p>Hello world! This is HTML5 Boilerplate.</p>
20+
21+
<script src="js/main.js"></script>
22+
</body>
23+
</html>

app/js/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

app/robots.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# www.robotstxt.org/
2+
3+
# Allow crawling of all content
4+
User-agent: *
5+
Disallow:

gulpfile.babel.js

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import gulp from 'gulp';
2+
import babel from 'gulp-babel';
3+
import concat from 'gulp-concat';
4+
import eslint from 'gulp-eslint';
5+
import sass from 'gulp-sass';
6+
import sourcemaps from 'gulp-sourcemaps';
7+
8+
// Copy all static files to dist/
9+
gulp.task('copy', () => (
10+
gulp.src(['app/**/*', '!app/**/*.js', '!app/**/*.scss'])
11+
.pipe(gulp.dest('dist'))
12+
));
13+
14+
// Use babel to compile ES2015 JS files
15+
gulp.task('js', () => (
16+
gulp.src('app/**/*.js')
17+
.pipe(sourcemaps.init())
18+
.pipe(babel())
19+
.pipe(concat('main.js'))
20+
.pipe(sourcemaps.write())
21+
.pipe(gulp.dest('dist/js'))
22+
));
23+
24+
// Run linting on all JS files
25+
gulp.task('lint', () => (
26+
gulp.src(['**/*.js', '!node_modules/**', '!dist/**'])
27+
.pipe(eslint())
28+
.pipe(eslint.format())
29+
.pipe(eslint.failAfterError())
30+
));
31+
32+
// Compile Sass stylesheets in app/css/
33+
gulp.task('sass', () => (
34+
gulp.src(['app/css/**/*.scss'])
35+
.pipe(sourcemaps.init())
36+
.pipe(sass().on('error', sass.logError))
37+
.pipe(sourcemaps.write())
38+
.pipe(gulp.dest('dist/css'))
39+
));
40+
41+
gulp.task('default', ['lint', 'sass', 'js', 'copy'], () => {
42+
43+
});

package.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "hwa-starter",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC",
12+
"devDependencies": {
13+
"babel-core": "^6.9.0",
14+
"babel-preset-es2015": "^6.9.0",
15+
"eslint-config-airbnb": "^9.0.1",
16+
"eslint-plugin-import": "^1.8.0",
17+
"eslint-plugin-jsx-a11y": "^1.2.2",
18+
"eslint-plugin-react": "^5.1.1",
19+
"gulp": "^3.9.1",
20+
"gulp-babel": "^6.1.2",
21+
"gulp-concat": "^2.6.0",
22+
"gulp-eslint": "^2.0.0",
23+
"gulp-sass": "^2.3.1"
24+
},
25+
"eslintConfig": {
26+
"extends": "airbnb"
27+
},
28+
"dependencies": {
29+
"gulp-sourcemaps": "^1.6.0"
30+
}
31+
}

0 commit comments

Comments
 (0)