Skip to content

Commit

Permalink
- npm publish 2016.12.1
Browse files Browse the repository at this point in the history
- update documentation
- fix cdn link
  • Loading branch information
kaizhu256 committed Dec 22, 2016
1 parent 8b03a6a commit 842a6a8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 33 deletions.
43 changes: 12 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jslint-lite
===========
this zero-dependency package will provide browser-compatible versions of jslint and csslint

[![travis-ci.org build-status](https://api.travis-ci.org/kaizhu256/node-jslint-lite.svg)](https://travis-ci.org/kaizhu256/node-jslint-lite)
[![travis-ci.org build-status](https://api.travis-ci.org/kaizhu256/node-jslint-lite.svg)](https://travis-ci.org/kaizhu256/node-jslint-lite) [![istanbul coverage](https://kaizhu256.github.io/node-jslint-lite/build..alpha..travis-ci.org/coverage.badge.svg)](https://kaizhu256.github.io/node-jslint-lite/build..alpha..travis-ci.org/coverage.html/index.html)

[![NPM](https://nodei.co/npm/jslint-lite.png?downloads=true)](https://www.npmjs.com/package/jslint-lite)

Expand All @@ -11,8 +11,8 @@ this zero-dependency package will provide browser-compatible versions of jslint


# cdn download
- [http://kaizhu256.github.io/node-jslint-lite/build..beta..travis-ci.org/app/assets.jslint-lite.js](http://kaizhu256.github.io/node-jslint-lite/build..beta..travis-ci.org/app/assets.jslint-lite.js)
- [http://kaizhu256.github.io/node-jslint-lite/build..beta..travis-ci.org/app/assets.jslint-lite.min.js](http://kaizhu256.github.io/node-jslint-lite/build..beta..travis-ci.org/app/assets.jslint-lite.min.js)
- [https://kaizhu256.github.io/node-jslint-lite/build..beta..travis-ci.org/app/assets.jslint-lite.js](https://kaizhu256.github.io/node-jslint-lite/build..beta..travis-ci.org/app/assets.jslint-lite.js)
- [https://kaizhu256.github.io/node-jslint-lite/build..beta..travis-ci.org/app/assets.jslint-lite.min.js](https://kaizhu256.github.io/node-jslint-lite/build..beta..travis-ci.org/app/assets.jslint-lite.min.js)



Expand All @@ -32,10 +32,10 @@ this zero-dependency package will provide browser-compatible versions of jslint
#### todo
- none

#### change since 005cc86a
- npm publish 2016.11.1
- add es6-syntax support and test
- rename files index.* -> lib.jslint.*
#### change since 8b03a6a4
- npm publish 2016.12.1
- update documentation
- fix cdn link
- none

#### this package requires
Expand Down Expand Up @@ -439,7 +439,7 @@ export npm_config_mode_auto_restart=1 && \
utility2 shRun shIstanbulCover test.js",
"test": "export PORT=$(utility2 shServerPortRandom) && utility2 test test.js"
},
"version": "2016.11.1"
"version": "2016.12.1"
}
```

Expand Down Expand Up @@ -473,30 +473,11 @@ shBuildCiTestPost() {(set -e
[ "$(node --version)" \< "v7.0" ] && return || true
export NODE_ENV=production
# deploy app to gh-pages
export TEST_URL="https://$(printf "$GITHUB_REPO" | \
sed 's/\//.github.io\//')/build..$CI_BRANCH..travis-ci.org/app/index.html"
(export MODE_BUILD=githubDeploy &&
shGithubDeploy) || return $?
# test deployed app to gh-pages
(export MODE_BUILD=githubTest &&
export modeBrowserTest=test &&
export url="$TEST_URL?modeTest=1&timeExit={{timeExit}}" &&
shBrowserTest) || return $?
(export MODE_BUILD=deployGithub &&
shDeployGithub) || return $?
# deploy app to heroku
export HEROKU_REPO="hrku01-$npm_package_name-$CI_BRANCH"
export TEST_URL="https://$HEROKU_REPO.herokuapp.com"
shGitRepoBranchUpdateLocal() {(set -e
# this function will local-update git-repo-branch
cp "$npm_config_dir_build/app/assets.app.js" .
printf "web: npm_config_mode_backend=1 node assets.app.js" > Procfile
)}
(export MODE_BUILD=herokuDeploy &&
shHerokuDeploy) || return $?
# test deployed app to heroku
(export MODE_BUILD=herokuTest &&
export modeBrowserTest=test &&
export url="$TEST_URL?modeTest=1&timeExit={{timeExit}}" &&
shBrowserTest) || return $?
(export MODE_BUILD=deployHeroku &&
shDeployHeroku) || return $?
)}

shBuild() {(set -e
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@

"test": "export PORT=$(utility2 shServerPortRandom) && utility2 test test.js"
},
"version": "2016.11.1"
"version": "2016.12.1"
}
11 changes: 10 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,16 @@
/*
* this function will test build's doc handling-behavior
*/
options = {};
options = { moduleDict: {
'jslint-lite.CSSLint': {
exampleFileList: [],
exports: local.CSSLint
},
'jslint-lite.JSLINT': {
exampleFileList: [],
exports: local.JSLINT
}
} };
local.buildDoc(options, onError);
};

Expand Down

0 comments on commit 842a6a8

Please sign in to comment.