Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit bc5c373

Browse files
committed
chore(lint): add prettier-standard on git precommit
Add `git-exec-and-restage`, `husky`, `lint-staged` and `prettier-standard` devDependencies Add `standard-js` badge to README
1 parent a0e9cdd commit bc5c373

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Nuxtent
22

3+
[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](http://standardjs.com)
4+
35
The goal of Nuxtent is to make using Nuxt for content heavy sites as easy as using Jekyll, Hugo, or any other static site generator.
46

57
It does in two main ways:

package.json

+12
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"nuxtent": "bin/nuxtent"
2727
},
2828
"scripts": {
29+
"#<git hooks>": "handled by husky",
30+
"precommit": "lint-staged",
31+
"#</git hooks>": "handled by husky",
2932
"unit": "cross-env NODE_ENV=development karma start test/unit/karma.conf.js",
3033
"e2e": "cross-env NODE_ENV=test ava --verbose --serial test/e2e",
3134
"test": "npm run unit --single-run && npm run e2e",
@@ -63,13 +66,17 @@
6366
"chai": "^4.1.0",
6467
"cross-env": "^5.0.1",
6568
"express": "^4.15.3",
69+
"git-exec-and-restage": "^1.0.1",
70+
"husky": "^0.14.3",
6671
"jsdom": "^11.1.0",
6772
"karma": "^1.7.0",
6873
"karma-mocha": "^1.3.0",
6974
"karma-rollup-preprocessor": "^4.0.2",
7075
"karma-sinon-chai": "^1.3.1",
76+
"lint-staged": "^4.2.1",
7177
"mocha": "^3.5.0",
7278
"nuxt": "^1.0.0-rc11",
79+
"prettier-standard": "^6.0.0",
7380
"request-promise-native": "^1.0.4",
7481
"rollup": "^0.50.0",
7582
"rollup-plugin-babel": "^3.0.2",
@@ -84,6 +91,11 @@
8491
"sinon": "^3.0.0",
8592
"sinon-chai": "^2.12.0"
8693
},
94+
"lint-staged": {
95+
"[!template].js": [
96+
"git-exec-and-restage prettier-standard"
97+
]
98+
},
8799
"ava": {
88100
"require": [
89101
"babel-register"

0 commit comments

Comments
 (0)