-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix underline in arrow & add source files
- Loading branch information
Showing
31 changed files
with
2,173 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']); | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
Oops, something went wrong.