Skip to content

Commit

Permalink
Fix underline in arrow & add source files
Browse files Browse the repository at this point in the history
  • Loading branch information
ComMouse committed Oct 27, 2016
1 parent faf229e commit bbd0620
Show file tree
Hide file tree
Showing 31 changed files with 2,173 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
13 changes: 13 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"rules": {
"indent": [2, 2, {"SwitchCase": 1}],
"quotes": [2, "single"],
"semi": [2, "always"]
},
"env": {
"node": true,
"browser": true,
"jquery": true
},
"extends": "eslint:recommended"
}
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#### Generated files ####################
# Compiled files
#/dist/
#/index.html
/linked.json

# Log
*.log

# Node
node_modules
npm-debug.log.*

#### Env-related ########################
# Mac
.DS_Store

# PHPStorm
.idea
Empty file added .nojekyll
Empty file.
30 changes: 30 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Development
===

# Initialization

```sh
$ npm i
```

Make sure that global gulp exists.

# Build

```sh
$ npm run build
```

# Development

Run this to watch local changes.

```sh
$ npm run watch
```

# Publish to gh-pages

```sh
$ . ./update-gh-pages
```
32 changes: 32 additions & 0 deletions assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"src": "src",
"dist": "dist",
"www": "./",
"linked": "linked.json",
"option": {
// "mode": ["compress", 2],
"mode": ["copy", 1],
"hash": [8, 2]
},
"plugins": {
"tam-html": {
"src": ["./src/index.html"],
"dest": "./"
}
},
"packages": {
"jquery": {
"option": {"mode": ["copy", 100]},
"src": "../node_modules/jquery/dist",
"files": ["jquery.min.js"]
},
"index": {
"src": ".",
"dependencies": ["jquery"],
"files": [
"script/index.js",
"style/main.scss"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@ th {
left: 50%;
margin-left: -24px;
bottom: 24px;
text-decoration: none;
}

.jumbotron .arrow > span, .jumbotron .arrow:before, .jumbotron .arrow:after {
Expand Down
21 changes: 21 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var gulp = require('gulp');
var fs = require('fs-extra');

/* =======================
* tam
* ======================= */

var tam = require('tam');
var tamHTML = require('tam-html');
var assetsPath = './assets.json';

gulp.task('clean', function () { fs.removeSync(tam.read(assetsPath).dist); });

gulp.task('build', ['clean'], function () {
tam.run();
tamHTML(tam, assetsPath, gulp);
});

gulp.task('watch', ['build'], function () {
gulp.watch('src/**/*', ['build']);
});
2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "dy-home",
"version": "0.0.0",
"description": "Homepage for Dongyue.",
"main": "index.html",
"scripts": {
"test": "eslint .",
"build": "gulp build",
"watch": "gulp watch"
},
"repository": {
"type": "git",
"url": "https://github.com/arrowrowe/dy-home.git"
},
"keywords": [
"homepage",
"dongyue"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/arrowrowe/dy-home/issues"
},
"homepage": "https://arrowrowe.me/dy-home/",
"devDependencies": {
"eslint": "^1.3.1",
"fs-extra": "0.26.2",
"ghooks": "^0.3.2",
"gulp": "^3.9.0",
"gulp-sass": "^2.0.4",
"gulp-uglify": "^1.4.1",
"jquery": "2.1.4",
"tam": "0.4.2",
"tam-html": "0.2.0"
},
"config": {
"ghooks": {
"pre-commit": "npm test",
"post-merge": "npm run build"
}
}
}
Loading

0 comments on commit bbd0620

Please sign in to comment.