-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/rollup'
- Loading branch information
Showing
7 changed files
with
142 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,3 @@ | ||
### JetBrains template | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
node_modules/ | ||
.idea/ | ||
|
||
## File-based project format: | ||
*.iws | ||
*.iml | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
/out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
### Node template | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# 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 directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const rollup = require('rollup') | ||
const commonjs = require('rollup-plugin-commonjs') | ||
const babel = require('rollup-plugin-babel') | ||
|
||
rollup.rollup({ | ||
entry: 'src/index.js', | ||
external: [ | ||
'sinon', | ||
'fluent-arguments', | ||
'ramda/src/compose', | ||
'ramda/src/curry', | ||
'ramda/src/filter', | ||
'ramda/src/forEach' | ||
], | ||
plugins: [ | ||
commonjs(), | ||
babel({ | ||
presets: [ | ||
['env', { | ||
modules: false, | ||
targets: {node: 4} | ||
}] | ||
], | ||
plugins: [ | ||
'ramda', | ||
'external-helpers' | ||
] | ||
}) | ||
] | ||
}).then(bundle => { | ||
bundle.write({ | ||
dest: 'dist/index.js', | ||
format: 'cjs' | ||
}) | ||
bundle.write({ | ||
dest: 'dist/index.mjs', | ||
format: 'es' | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,12 @@ | |
"description": "Create easily configurable sinon stubs that mimic constructors and keep track of their instances", | ||
"author": "Lukas Taegert <[email protected]>", | ||
"license": "MIT", | ||
"main": "src/index.js", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"jsnext:main": "dist/index.mjs", | ||
"files": [ | ||
"dist" | ||
], | ||
"config": { | ||
"validate-commit-msg": { | ||
"types": [ | ||
|
@@ -36,25 +41,32 @@ | |
"sinon": ">=1.15.0" | ||
}, | ||
"dependencies": { | ||
"fluent-arguments": ">= 1.0.6", | ||
"ramda": ">= 0.23.0" | ||
"fluent-arguments": "^1.0.7", | ||
"ramda": "^0.23.0" | ||
}, | ||
"devDependencies": { | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-plugin-ramda": "^1.2.0", | ||
"babel-preset-env": "^1.5.1", | ||
"chai": "^4.0.0", | ||
"codecov": "^2.2.0", | ||
"husky": "^0.13.3", | ||
"istanbul": "^0.4.5", | ||
"lint-staged": "^3.5.0", | ||
"mocha": "^3.4.2", | ||
"rollup": "^0.41.6", | ||
"rollup-plugin-babel": "^2.7.1", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"semantic-release": "^6.3.6", | ||
"standard": "^10.0.2", | ||
"sinon": "^2.3.2", | ||
"standard": "^10.0.2", | ||
"validate-commit-msg": "^2.12.1" | ||
}, | ||
"scripts": { | ||
"test": "mocha", | ||
"test": "node build && mocha", | ||
"lint": "standard", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post", | ||
"semantic-release": "npm install && node build && semantic-release pre && npm publish && semantic-release post", | ||
"precommit": "lint-staged", | ||
"commitmsg": "validate-commit-msg", | ||
"prepush": "npm test", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.