Update tooling (#99)
- Update browserify, serve, and tape to the latest versions - update the example script to reflect serve's new CLI options - Remove the uneeded dependency on opn-cli - Force Travis to use NPM 5.x - Remove bower.json
This commit was merged in pull request #99.
This commit is contained in:
@@ -2,3 +2,6 @@ language: "node_js"
|
|||||||
node_js:
|
node_js:
|
||||||
- "6"
|
- "6"
|
||||||
- "8"
|
- "8"
|
||||||
|
# Force Travis to use npm v5
|
||||||
|
# https://github.com/travis-ci/travis-ci/issues/4653#issuecomment-194051953
|
||||||
|
before_install: if [[ `npm -v` != 5* ]]; then npm i -g npm@5; fi
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Pjax
|
# Pjax
|
||||||
|
|
||||||
[](https://travis-ci.org/MoOx/pjax) [@todo fix CI](https://github.com/MoOx/pjax/issues/63).
|
[](https://travis-ci.org/MoOx/pjax).
|
||||||
|
|
||||||
> Easily enable fast Ajax navigation on any website (using pushState + xhr)
|
> Easily enable fast Ajax navigation on any website (using pushState + xhr)
|
||||||
|
|
||||||
@@ -522,7 +522,7 @@ wrapper on each page (to avoid differences of DOM between pages)
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
Clone this repository and run `npm run example`, then open `http://localhost:3000/example` in your browser.
|
Clone this repository and run `npm run example`, which will open the example app in your browser.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
29
bower.json
29
bower.json
@@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "pjax",
|
|
||||||
"version": "0.2.4",
|
|
||||||
"description": "Easily enable fast Ajax navigation on any website (using pushState + xhr)",
|
|
||||||
"keywords": [
|
|
||||||
"pjax",
|
|
||||||
"push",
|
|
||||||
"state",
|
|
||||||
"ajax",
|
|
||||||
"navigation",
|
|
||||||
"transition",
|
|
||||||
"animation"
|
|
||||||
],
|
|
||||||
"main": "pjax.js",
|
|
||||||
"homepage": "https://github.com/MoOx/pjax",
|
|
||||||
"authors": [
|
|
||||||
"Maxime Thirouin"
|
|
||||||
],
|
|
||||||
"license": "MIT",
|
|
||||||
"moduleType": [
|
|
||||||
"node"
|
|
||||||
],
|
|
||||||
"ignore": [
|
|
||||||
"**/.*",
|
|
||||||
"node_modules",
|
|
||||||
"test",
|
|
||||||
"tests"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<h1>Index</h1>
|
<h1>Index</h1>
|
||||||
Hello.
|
Hello.
|
||||||
Go to <a href='page2.html' class="js-Pjax">Page 2</a> and view your console to see Pjax events.
|
Go to <a href='page2.html' class="js-Pjax">Page 2</a> and view your console to see Pjax events.
|
||||||
Clicking on <a href='index.html'>this page</a> will just reload the page entierly.
|
Clicking on <a href='index.html'>this page</a> will just reload the page entirely.
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -21,18 +21,17 @@
|
|||||||
"pjax.js"
|
"pjax.js"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "^3.46.0",
|
"browserify": "^15.0.0",
|
||||||
"jscs": "^3.0.7",
|
"jscs": "^3.0.7",
|
||||||
"jsdom": "^11.5.1",
|
"jsdom": "^11.5.1",
|
||||||
"jsdom-global": "^3.0.2",
|
"jsdom-global": "^3.0.2",
|
||||||
"jshint": "^2.5.6",
|
"jshint": "^2.5.6",
|
||||||
"npmpub": "^3.1.0",
|
"npmpub": "^3.1.0",
|
||||||
"nyc": "^11.4.1",
|
"nyc": "^11.4.1",
|
||||||
"opn-cli": "^3.1.0",
|
"serve": "^6.4.4",
|
||||||
"serve": "1.4.0",
|
|
||||||
"tap-nyc": "^1.0.3",
|
"tap-nyc": "^1.0.3",
|
||||||
"tap-spec": "^4.1.1",
|
"tap-spec": "^4.1.1",
|
||||||
"tape": "^3.0.0"
|
"tape": "^4.8.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "jscs . && jshint . --exclude-path .gitignore",
|
"lint": "jscs . && jshint . --exclude-path .gitignore",
|
||||||
@@ -42,7 +41,7 @@
|
|||||||
"test": "npm run lint && npm run tests | tap-spec",
|
"test": "npm run lint && npm run tests | tap-spec",
|
||||||
"coverage-tests": "npm run tests | tap-nyc",
|
"coverage-tests": "npm run tests | tap-nyc",
|
||||||
"coverage": "nyc -x \"tests/**\" npm run coverage-tests",
|
"coverage": "nyc -x \"tests/**\" npm run coverage-tests",
|
||||||
"example": "opn http://localhost:3000/example/; serve .",
|
"example": "serve -o -p 3000 ./example",
|
||||||
"prepublish": "npm run standalone",
|
"prepublish": "npm run standalone",
|
||||||
"#release": "testling does not work in a process launch by npm... :facepalm:",
|
"#release": "testling does not work in a process launch by npm... :facepalm:",
|
||||||
"release": "echo \"npmpub --skip-test --dry && npm test && npmpub --skip-test --skip-cleanup\""
|
"release": "echo \"npmpub --skip-test --dry && npm test && npmpub --skip-test --skip-cleanup\""
|
||||||
|
|||||||
Reference in New Issue
Block a user