Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Updating dependencies and adding support for esdoc #31

Merged
merged 3 commits into from
Jan 10, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Updating dependencies and adding support for esdoc
  • Loading branch information
mrsteele committed Jan 10, 2017
commit 36806bee3e154083c2fd4b224efb2c116634dc1e
23 changes: 2 additions & 21 deletions config/doc.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
{
"tags": {
"allowUnknownTags": true
},
"source": {
"include": [
"./src/"
],
"excludePattern": "(^|\\/|\\\\)_"
},
"opts": {
"encoding": "utf8",
"recurse": true,
"private": false,
"destination": "./docs",
"readme": "./README.md",
"package": "./package.json",
"tutorials": "./tutorials"
},
"plugins": [
"plugins/markdown"
]
"source": "./src",
"destination": "./docs"
}
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"lint": "standard",
"validate-commit": "validate-commit-msg",
"predoc": "rimraf docs",
"doc": "jsdoc -c config/doc.json",
"doc": "esdoc -c config/doc.json",
"pretest": "npm run build",
"test": "nyc _mocha --compilers js:babel-register",
"posttest": "nyc report --reporter=lcov",
Expand Down Expand Up @@ -40,26 +40,27 @@
},
"homepage": "https://github.com/mrsteele/dotenv-webpack#readme",
"dependencies": {
"dotenv": "^2.0.0",
"webpack": "^1.13.0"
"dotenv": "^4.0.0",
"webpack": "^1.14.0"
},
"devDependencies": {
"babel-cli": "^6.10.1",
"babel-eslint": "^7.0.0",
"babel-cli": "^6.18.0",
"babel-eslint": "^7.1.1",
"babel-plugin-transform-object-assign": "^6.8.0",
"babel-preset-es2015": "^6.9.0",
"babel-register": "^6.9.0",
"babel-preset-es2015": "^6.18.0",
"babel-register": "^6.18.0",
"chai": "^3.5.0",
"coveralls": "^2.11.9",
"ghooks": "^1.3.2",
"coveralls": "^2.11.15",
"esdoc": "^0.5.2",
"ghooks": "^2.0.0",
"jsdoc": "^3.4.0",
"mocha": "^3.1.0",
"mocha": "^3.2.0",
"mocha-lcov-reporter": "^1.2.0",
"nyc": "^8.3.0",
"nyc": "^10.0.0",
"rimraf": "^2.5.2",
"semantic-release": "^4.3.5",
"standard": "^8.2.0",
"validate-commit-msg": "^2.8.0"
"semantic-release": "^6.3.2",
"standard": "^8.6.0",
"validate-commit-msg": "^2.8.2"
},
"files": [
"dist",
Expand Down
17 changes: 9 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ import dotenv from 'dotenv'
import fs from 'fs'
import { DefinePlugin } from 'webpack'

/**
* The dotenv-webpack plugin.
* @param {Object} options - The parameters.
* @param {String} [path=./.env] - The location of the environment variable.
* @param {Bool|String} [safe=false] - If false ignore safe-mode, if true load `'./.env.example'`, if a string load that file as the sample.
* @param {Bool} [systemvars=false] - If true, load system environment variables.
* @returns {webpack.DefinePlugin}
*/
class Dotenv {

/**
* The dotenv-webpack plugin.
* @param {Object} options - The parameters.
* @param {String} [options.path=./.env] - The location of the environment variable.
* @param {Bool|String} [options.safe=false] - If false ignore safe-mode, if true load `'./.env.example'`, if a string load that file as the sample.
* @param {Bool} [options.systemvars=false] - If true, load system environment variables.
* @returns {webpack.DefinePlugin}
*/
constructor (options) {
options = Object.assign({
path: './.env',
Expand Down