Skip to content

Commit 43c0cb5

Browse files
committed
💥 Initialize NPM / Ignore / Textlint / EditorConfig
1 parent f2926a3 commit 43c0cb5

4 files changed

Lines changed: 87 additions & 1 deletion

File tree

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
insert_final_newline = true
9+
10+
[*.{md,markdown}]
11+
trim_trailing_whitespace = true

.gitignore

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
1-
_book/
1+
# Built files
2+
_book/
3+
4+
# Node-related ignoring, copied from https://github.com/github/gitignore/blob/master/Node.gitignore
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
15+
# Directory for instrumented libs generated by jscoverage/JSCover
16+
lib-cov
17+
18+
# Coverage directory used by tools like istanbul
19+
coverage
20+
21+
# nyc test coverage
22+
.nyc_output
23+
24+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
25+
.grunt
26+
27+
# node-waf configuration
28+
.lock-wscript
29+
30+
# Compiled binary addons (http://nodejs.org/api/addons.html)
31+
build/Release
32+
33+
# Dependency directories
34+
node_modules
35+
jspm_packages
36+
37+
# Optional npm cache directory
38+
.npm
39+
40+
# Optional REPL history
41+
.node_repl_history

.textlintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"editorconfig": true
4+
}
5+
}

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "rust-primer",
3+
"version": "1.1.0",
4+
"description": "The Rust primer for beginners.",
5+
"scripts": {
6+
"test": "textlint $(ls --ignore='node_modules')",
7+
"test:fix": "npm test -- --fix",
8+
"serve": "gitbook serve",
9+
"build": "gitbook build"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/rustcc/RustPrimer.git"
14+
},
15+
"keywords": [
16+
"Rust",
17+
"Book",
18+
"Beginner"
19+
],
20+
"license": "CC-BY-SA-3.0",
21+
"bugs": {
22+
"url": "https://github.com/rustcc/RustPrimer/issues"
23+
},
24+
"homepage": "https://github.com/rustcc/RustPrimer#readme",
25+
"devDependencies": {
26+
"gitbook-cli": "^2.1.3",
27+
"textlint": "6.5.0",
28+
"textlint-rule-editorconfig": "1.0.2"
29+
}
30+
}

0 commit comments

Comments
 (0)