Skip to content

Commit

Permalink
Add configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Apr 1, 2017
0 parents commit c3680f1
Show file tree
Hide file tree
Showing 7 changed files with 4,593 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ackrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--ignore-file=match:/^yarn\.lock/
--ignore-file=match:/\.bundle\.js/
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"presets": [
[
"env",
{
"targets": {
"node": "current"
}
}
]
]
}
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
indent_size = 4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
*.bundle.js
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "markdown-it-mermaid",
"version": "0.1.0",
"description": "Mermaid plugin for markdown-it.",
"main": "src/index.bundle.js",
"scripts": {
"build": "node -r babel-register node_modules/.bin/webpack --progress --colors --watch",
"test": "node test/index.bundle.js",
"upgrade": "ncu -ua && yarn upgrade"
},
"repository": "[email protected]:tylingsoft/markdown-it-mermaid.git",
"author": "Tyler Long <[email protected]>",
"license": "MIT",
"devDependencies": {
"babel-core": "^6.24.0",
"babel-loader": "^6.4.1",
"babel-preset-env": "^1.2.2",
"markdown-it": "^8.3.1",
"npm-check-updates": "^2.10.4",
"standard": "^9.0.2",
"webpack": "^2.3.2",
"webpack-node-externals": "^1.5.4"
}
}
34 changes: 34 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import nodeExternals from 'webpack-node-externals'

const config = {
target: 'node',
externals: [nodeExternals()],
entry: {
'src/index': './src/index.js',
'test/index': './test/index.js'
},
output: {
path: __dirname,
filename: '[name].bundle.js',
libraryTarget: 'commonjs2'
},
module: {
rules: [{
test: /\.js$/,
use: {
loader: 'babel-loader',
options: {
presets: [
['env', {
'targets': {
'node': 'current'
}
}]
]
}
}
}]
}
}

export default [config]
Loading

0 comments on commit c3680f1

Please sign in to comment.