Skip to content

Commit e5fc1d2

Browse files
committed
Add XPath ext for Paw
Update README.md
0 parents  commit e5fc1d2

File tree

10 files changed

+7920
-0
lines changed

10 files changed

+7920
-0
lines changed

.babelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": ["@babel/preset-env"],
3+
"plugins": [
4+
[
5+
"@babel/plugin-proposal-class-properties"
6+
]
7+
]
8+
}

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: "tagged-release"
3+
4+
on:
5+
push:
6+
branchs:
7+
- master
8+
9+
jobs:
10+
tagged-release:
11+
name: "Tagged Release"
12+
runs-on: "ubuntu-latest"
13+
14+
steps:
15+
- uses: actions/checkout@master
16+
- name: Use Node.js
17+
uses: actions/setup-node@v1
18+
- run: npm install
19+
- name: "Build"
20+
run: |
21+
npm run build
22+
cp README.md LICENSE ./dist/
23+
ln -s ./dist/ com.14lines.Paw.XPathDynamicValue
24+
tar cvz -h -f XPathDynamicValue.tar.gz ./com.14lines.Paw.XPathDynamicValue/
25+
- uses: "marvinpinto/action-automatic-releases@latest"
26+
with:
27+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
28+
prerelease: false
29+
automatic_release_tag: "latest"
30+
files: |
31+
XPathDynamicValue.tar.gz

.gitignore

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/dist
2+
/node_modules
3+
4+
5+
# Directory for instrumented libs generated by jscoverage/JSCover
6+
lib-cov
7+
8+
# Coverage directory used by tools like istanbul
9+
coverage
10+
11+
# nyc test coverage
12+
.nyc_output
13+
14+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
15+
.grunt
16+
17+
# Bower dependency directory (https://bower.io/)
18+
bower_components
19+
20+
# node-waf configuration
21+
.lock-wscript
22+
23+
# Compiled binary addons (http://nodejs.org/api/addons.html)
24+
build/Release
25+
26+
# Dependency directories
27+
node_modules/
28+
jspm_packages/
29+
30+
# Typescript v1 declaration files
31+
typings/
32+
33+
# Optional npm cache directory
34+
.npm
35+
36+
# Optional eslint cache
37+
.eslintcache
38+
39+
# Optional REPL history
40+
.node_repl_history
41+
42+
# Output of 'npm pack'
43+
*.tgz
44+
45+
# Yarn Integrity file
46+
.yarn-integrity
47+
48+
# dotenv environment variables file
49+
.env
50+
51+
# misc
52+
.DS_Store
53+
.env.local
54+
.env.development.local
55+
.env.test.local
56+
.env.production.local

LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
MIT License
2+
-----------
3+
4+
Copyright (c) 2020 Daniel Cooper
5+
Permission is hereby granted, free of charge, to any person
6+
obtaining a copy of this software and associated documentation
7+
files (the "Software"), to deal in the Software without
8+
restriction, including without limitation the rights to use,
9+
copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the
11+
Software is furnished to do so, subject to the following
12+
conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.
25+
26+

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
identifier=com.14lines.Paw.XPathDynamicValue
2+
extensions_dir=$(HOME)/Library/Containers/com.luckymarmot.Paw/Data/Library/Application Support/com.luckymarmot.Paw/Extensions/
3+
4+
build:
5+
npm run build
6+
cp README.md LICENSE ./dist/
7+
8+
clean:
9+
rm -Rf ./dist/
10+
11+
install: clean build
12+
mkdir -p "$(extensions_dir)$(identifier)/"
13+
cp -r ./dist/* "$(extensions_dir)$(identifier)/"
14+
15+
test:
16+
npm test
17+
18+
archive: build
19+
cd ./build/; zip -r DigestAuthDynamicValue.zip "$(identifier)/"

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Paw extention for parsing a response with XPath.
2+
3+
## Installation
4+
5+
Either clone this repo and run `make install` or place an extracted release in `$(HOME)/Library/Containers/com.luckymarmot.Paw/Data/Library/Application Support/com.luckymarmot.Paw/Extensions/`

0 commit comments

Comments
 (0)