Skip to content

Commit

Permalink
Modernize all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
singingwolfboy committed Oct 12, 2019
1 parent 49ff799 commit ebdefed
Show file tree
Hide file tree
Showing 14 changed files with 4,500 additions and 278 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

31 changes: 2 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,2 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

lib/
node_modules/
dist/
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tsconfig.json
src
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
language: node_jsnode_js: - "0.12" - "4.1" - "4.2" - "5.0"
language: node_js
node_js:
- node
- lts/*
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,9 @@ module.exports = {
Do I have to enable es6 support?
---

Nope, ES6 support is on by default. You can configure babel in your `.markdown-doctest-setup.js`

<!-- skip-example -->
```js
//.markdown-doctest-setup.js
module.exports = {
babel: {
stage: 0
}
}
```

You can also disable `babel` support. This will speed things up drastically:
Nope, ES6 support is on by default. You can disable `babel` support
in your `.markdown-doctest-setup.js` file.
This will speed things up drastically:

<!-- skip-example -->
```js
Expand Down
4 changes: 0 additions & 4 deletions bin/cmd-cover

This file was deleted.

43 changes: 23 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
{
"name": "markdown-doctest",
"version": "0.9.1",
"version": "1.0.0",
"description": "Test all the code in your markdown docs!",
"main": "lib/doctest.js",
"main": "dist/doctest.js",
"files": [
"lib",
"src",
"dist",
"bin"
],
"bin": {
"markdown-doctest": "bin/cmd.js",
"markdown-coverage": "bin/cmd-cover"
"markdown-doctest": "bin/cmd.js"
},
"scripts": {
"precompile-lib": "rm -rf lib/ && mkdir -p lib",
"compile-lib": "babel src -d lib",
"test": "mocha --compilers js:babel-core/register",
"autotest": "mocha --watch -R min",
"prepublish": "npm run compile-lib"
"build": "tsc",
"format": "prettier --write \"**/*.ts\"",
"test": "jest",
"prepublish": "yarn build"
},
"repository": {
"type": "git",
Expand All @@ -35,16 +32,22 @@
},
"homepage": "https://github.com/Widdershin/markdown-doctest",
"devDependencies": {
"babel-cli": "^6.4.0",
"babel-plugin-transform-object-assign": "^6.3.13",
"mocha": "^3.4.1"
"@babel/preset-typescript": "^7.6.0",
"@types/node": "^12.7.12",
"jest": "^24.9.0",
"prettier": "1.18.2",
"typescript": "^3.6.4"
},
"dependencies": {
"babel-core": "^6.4.0",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.5.0",
"chalk": "^1.1.1",
"glob": "^7.0.5",
"istanbul": "^0.4.3"
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"chalk": "^2.4.2",
"glob": "^7.1.4"
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-typescript"
]
}
}
Loading

0 comments on commit ebdefed

Please sign in to comment.