-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25bbf7b
commit 7abc152
Showing
30 changed files
with
6,346 additions
and
6,421 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["env"] | ||
} |
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,10 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
end_of_line = lf | ||
max_line_length = null |
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,4 +1,10 @@ | ||
node_modules/ | ||
npm-debug.log | ||
.DS_Store | ||
test/lib | ||
package-lock.json | ||
|
||
# VIM Swap Files | ||
[._]*.s[a-v][a-z] | ||
[._]*.sw[a-p] | ||
[._]s[a-v][a-z] | ||
[._]sw[a-p] |
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 @@ | ||
package-lock=false |
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,25 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Run ES6 Tests", | ||
"type": "node", | ||
"request": "launch", | ||
"cwd": "${workspaceRoot}", | ||
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", | ||
"stopOnEntry": false, | ||
"args": [ | ||
"./src/*-unit.js", | ||
"--require", "babel-register", | ||
"--require", "babel-polyfill", | ||
"testutils.js", | ||
"--reporter", "spec", | ||
"--no-timeouts" | ||
], | ||
"runtimeArgs": [ | ||
"--nolazy" | ||
], | ||
"sourceMaps": true | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,6 +1,6 @@ | ||
{ | ||
"name": "emailjs-imap-client", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"homepage": "https://github.com/emailjs/emailjs-imap-client", | ||
"description": "JavaScript IMAP client", | ||
"author": "Andris Reinman <[email protected]>", | ||
|
@@ -9,30 +9,55 @@ | |
], | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "grunt" | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"build": "./scripts/build.sh", | ||
"release": "./scripts/release.sh", | ||
"lint": "$(npm bin)/standard", | ||
"test": "npm run lint && npm run unit", | ||
"unit": "$(npm bin)/mocha './src/*-unit.js' --reporter spec --require babel-register --require babel-polyfill testutils.js", | ||
"test-watch": "$(npm bin)/mocha './src/*-unit.js' --reporter spec --require babel-register --require babel-polyfill testutils.js --watch" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/emailjs/emailjs-imap-client.git" | ||
}, | ||
"main": "src/emailjs-imap-client", | ||
"main": "dist/client", | ||
"dependencies": { | ||
"emailjs-addressparser": "^1.0.1", | ||
"emailjs-imap-handler": "^2.1.0", | ||
"emailjs-mime-codec": "^1.0.1", | ||
"emailjs-tcp-socket": "^1.0.1", | ||
"emailjs-utf7": "^3.0.1" | ||
"emailjs-addressparser": "^2.0.2", | ||
"emailjs-base64": "^1.1.2", | ||
"emailjs-imap-handler": "^3.0.2", | ||
"emailjs-mime-codec": "^2.0.2", | ||
"emailjs-tcp-socket": "^1.0.2", | ||
"emailjs-utf7": "^4.0.1", | ||
"sinon": "^4.1.2" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.4.1", | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-jshint": "^0.11.3", | ||
"grunt-mocha-test": "^0.12.7", | ||
"hoodiecrow-imap": "^2.0.0", | ||
"mocha": "^2.3.4", | ||
"sinon": "^1.17.2" | ||
"babel-cli": "^6.26.0", | ||
"babel-polyfill": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-register": "^6.26.0", | ||
"chai": "^4.1.2", | ||
"hoodiecrow-imap": "^2.1.0", | ||
"mocha": "^4.0.1", | ||
"nodemon": "^1.12.1", | ||
"pre-commit": "^1.2.2", | ||
"standard": "^10.0.3" | ||
}, | ||
"standard": { | ||
"globals": [ | ||
"describe", | ||
"it", | ||
"before", | ||
"beforeEach", | ||
"afterEach", | ||
"after", | ||
"expect", | ||
"sinon", | ||
"self" | ||
], | ||
"ignore": [ | ||
"dist", | ||
"lib", | ||
"res" | ||
] | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
#!/bin/bash | ||
|
||
rm -rf $PWD/dist | ||
babel src --out-dir dist --ignore '**/*-unit.js' --source-maps inline | ||
git reset | ||
git add $PWD/dist | ||
git commit -m 'Updating dist files' -n |
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,20 @@ | ||
#!/bin/bash | ||
|
||
json_value() { | ||
KEY=$1 | ||
num=$2 | ||
awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'$KEY'\042/){print $(i+1)}}}' | tr -d '"' | sed -n ${num}p | ||
} | ||
|
||
# read version from package.json and trim leading/trailing whitespace | ||
version=`less package.json | json_value version 1 | sed -e 's/^ *//' -e 's/ *$//'` | ||
prefix="v" | ||
# tag, push, publish | ||
echo -e "\n> tagging $prefix$version" | ||
git tag "$prefix$version" | ||
echo -e "\n> pushing commits to origin" | ||
git push | ||
echo -e "\n> pushing tags to origin" | ||
git push --tags | ||
echo -e "\n> publishing on npm" | ||
npm publish |
Oops, something went wrong.