From 83f341f3ba5d2c09b4d78c03b737e9fbf44eef5c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 24 Apr 2016 21:28:03 +0100 Subject: [PATCH] Added spell check to content --- .spelling | 38 ++++++++++++++++++++++++++++++++++++++ package.json | 4 +++- runtests | 5 +++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .spelling diff --git a/.spelling b/.spelling new file mode 100644 index 0000000..30b8942 --- /dev/null +++ b/.spelling @@ -0,0 +1,38 @@ +# markdown-spellcheck spelling configuration file +# Format - lines beginning # are comments +# global dictionary is at the start, file overrides afterwards +# one word per line, to define a file override use ' - filename' +# where filename is relative to this configuration file +Django +SQLite +eg +MyWindowsHosting +nginx +backends +PyGame +easter +_Enabler +Hipchat +DabApps +JakeSidSmith +facepalm +notsureif +wat +premis +hipchat +plugin +firefox +Jetpack +Javascript +facebook +github +morse +wikipedia +iframe +querystring +javascript +jQuery +gists +Lenovo +Collyer's +til diff --git a/package.json b/package.json index f418c4f..6580b23 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "watch-less": "watch 'npm run build-less' static/src/less/", "watch": "npm run watch-less", "clean": "./scripts/clean.js", - "test": "npm run lint" + "test": "npm run lint", + "spellcheck": "mdspell --en-gb -ranx \"templates/**/*.*\"" }, "repository": { "type": "git", @@ -40,6 +41,7 @@ "eslint-plugin-react": "=3.4.2", "less": "=2.5.1", "less-mixins": "git://github.com/RealOrangeOne/less-mixins.git", + "markdown-spellcheck": "=0.10.0", "postcss-cli": "=2.5.1", "react-tools": "=0.13.2", "uglify-js": "=2.4.24", diff --git a/runtests b/runtests index c71b2b9..ac34df1 100755 --- a/runtests +++ b/runtests @@ -59,4 +59,9 @@ print("{}All Python tests passed! {}Testing Static Files...".format(Fore.GREEN, EXIT_CODE = os.system('npm test') check_if_exit_code() +print("{}All static tests passed! {}Running spell check...".format(Fore.GREEN, Fore.YELLOW)) + +EXIT_CODE = os.system('') +check_if_exit_code() + print("{}All Tests Passed!".format(Fore.GREEN))