forked from AlaSQL/alasql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
130 lines (130 loc) · 5.23 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"name": "alasql",
"description": "Use SQL to select and filter javascript data - including relational joins and search in nested objects (JSON). Export to and import from Excel and CSV",
"version": "2.1.6",
"author": "Andrey Gershun <[email protected]>",
"contributors": [
"Mathias Wulff <[email protected]>"
],
"main": "dist/alasql.fs.js",
"browser": "dist/alasql.min.js",
"directories": {
"test": "test"
},
"typings": "dist/alasql.d.ts",
"scripts": {
"test": "gulp && yarn test-only",
"test-ci": "(yarn test-format || 1) && yarn test && yarn install-g && alasql 'select 1 as Succes'",
"test-only": "mocha ./test --reporter dot",
"test-browser": "node test/browserTestRunner.js 7387",
"test-cover": "# istanbul cover -x 'lib/zt/zt.js' --dir test/coverage _mocha",
"build": "yarn format && gulp",
"build-jison": "gulp --jison && gulp",
"build-watch": "gulp watch",
"install-g": "yarn build && npm uninstall alasql -g && npm install -g .",
"release": "yarn version #f='/tmp/alasql.tmp' && curl https://raw.githubusercontent.com/wiki/agershun/alasql/How-to-release.md > $f && sh $f ; rm $f",
"jison": "npx jison-gho ./src/alasqlparser.jison -o ./src/alasqlparser.js",
"fmt": "yarn pretty-commit --write",
"format": "yarn pretty-since-dev --write",
"format-all": "yarn pretty-all --write",
"test-format": "yarn pretty-since-dev --list-different || echo 'Please correct file formatting using `yarn format` and try again.'",
"lint": "eslint .",
"pretty-since-dev": "{ git diff --name-only --diff-filter=d origin/develop ; git diff --name-only --diff-filter=d --staged origin/develop ; } | sort | uniq | grep -vE '^dist/|^test/coverage|^lib/|.min.js$' | grep -E '\\.(scss|css|js|ts|vue|json)$' | xargs npx prettier",
"pretty-commit": "{ git diff --name-only --diff-filter=d ; git diff --name-only --diff-filter=d --staged ; } | sort | uniq | grep -vE '^dist/|^test/coverage|^lib/|.min.js$' | grep -E '\\.(scss|css|js|ts|vue|json)$' | xargs npx prettier",
"pretty-all": "git ls-tree --full-tree --name-only -r HEAD | grep -vE '^dist/|^test/coverage|^lib/|.min.js$' | grep -E '\\.(scss|css|js|ts|vue|json)$' | xargs npx prettier",
"push": "git push --force-with-lease && git push --no-verify --tags #",
"pull-hard": "git-branch-is '^(release|master|hotfix|develop)' -riq || (git-branch-is --not '^(release|master|hotfix|develop)' && git fetch && git reset --hard $(git merge-base head $(git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD))) && git pull)",
"rebase": "git-branch-is '^(release|master|hotfix|develop)' -riq || (git-branch-is --not '^(release|master|hotfix|develop)' && (git fetch || 1) && git rebase origin/develop)",
"repush": "yarn rebase && yarn push",
"amend": "git reset --soft HEAD~1 && sleep 1 && git add --all && git commit --file .git/COMMIT_EDITMSG # This works with husky hooks",
"tagit": "git tag \"$(git rev-parse --abbrev-ref HEAD | awk -F '/' '{print $NF}')\"'-r'\"$(git tag -l \"$(git rev-parse --abbrev-ref HEAD | awk -F '/' '{print $NF}')\"'*' | wc -l | xargs)\" && git push origin --no-verify --tags #",
"commit": "cmdmix 'git add --all && git commit -am \"%1\"'",
"add": "git add --all",
"goto": "git fetch && git checkout",
"todo": "git ls-tree --full-tree --name-only -r head | xargs grep -inEro '\\Wtodo[ :].*' #",
"tofix": "git ls-tree --full-tree --name-only -r HEAD | xargs grep -lrE '<{5,}' #",
"next": "git add --all && git rebase --continue #",
"fresh": "cmdmix 'yarn goto '%1' && yarn pull-hard'",
"pre-pr": "cmdmix 'yarn fresh '%1' && yarn repush'",
"prepare": "husky install",
"preversion": "yarn && yarn test",
"postversion": "npm publish && git push && git push --tags && echo \"Successfully released version $npm_package_version\""
},
"dependencies": {
"dom-storage": "2.1.0",
"es6-promise": "4.2.8",
"lodash": "4.17.21",
"request": "2.88.2",
"xlsx": "0.18",
"yargs": "16"
},
"devDependencies": {
"blueimp-md5": "2.19.0",
"cmdmix": "2.1.1",
"eslint": "8.27.0",
"git-branch-is": "4.0.0",
"gulp": "4.0.2",
"gulp-concat": "2.6.1",
"gulp-dereserve": "0.2.1",
"gulp-exec": "5.0.0",
"gulp-jison": "1.2.0",
"gulp-rename": "2.0.0",
"gulp-replace": "1.1.3",
"gulp-shell": "0.8.0",
"gulp-uglify": "3.0.2",
"husky": "6.0.0",
"lint-staged": "13.0.3",
"mocha": "10.1.0",
"mocha.parallel": "0.15.6",
"open": "8.4.0",
"prettier": "2.7.1",
"strftime": "0.10.1",
"tabletop": "1.6.3",
"uglify-js": "3.17.4"
},
"resolutions": {
"got": "^12.0.0",
"axios": "^1.0.0",
"marked": "^4.0.10",
"underscore": "^1.12.1",
"glob-parent": "^6.0.0",
"lodash.template": "^4.5.0"
},
"engines": {
"node": "*"
},
"repository": {
"type": "git",
"url": "http://github.com/agershun/alasql.git"
},
"bugs": {
"url": "https://github.com/agershun/alasql/issues"
},
"bin": {
"alasql": "./bin/alasql-cli.js"
},
"homepage": "https://github.com/agershun/alasql",
"keywords": [
"SQL",
"javascript",
"database",
"Excel",
"XLSX",
"XLS",
"CSV"
],
"license": "MIT",
"prettier": {
"useTabs": true,
"printWidth": 100,
"singleQuote": true,
"arrowParens": "always",
"bracketSpacing": false,
"trailingComma": "es5"
},
"husky": {
"hooks": {
"pre-push": "yarn test-format || (echo please format using 'yarn format' && exit 1)"
}
}
}