-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpackage.json
153 lines (153 loc) · 6.11 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"name": "@flatfile/adapter",
"version": "2.9.6",
"description": "A lightweight TypeScript/JavaScript adapter for working with Flatfile's Portal",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/module/index.js",
"browser": "build/browser/index.js",
"repository": "https://github.com/flatfilers/adapter",
"author": "David Boskovic <[email protected]>",
"homepage": "https://flatfile.com",
"license": "MIT",
"bugs": {
"url": "https://github.com/FlatFilers/adapter/issues"
},
"scripts": {
"info": "npm-scripts-info",
"build": "trash build && nqr build:main && nqr build:module && nqr build:browser-deps && nqr build:browser && nqr build:browser-cjs && nqr build:browser-dist && nqr build:resolve-sourcemaps",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p config/exports/tsconfig.module.json",
"build:browser-deps": "mkdirp build/temp && browserify node_modules/hash.js/lib/hash.js --standalone hash -o build/temp/hash.js",
"build:browser": "rollup -c config/exports/rollup.config.js -f es -o build/browser/index.js",
"build:browser-dist": "rollup -c config/exports/rollup.config.js -f iife -o build/dist/index.js && nqr build:browser-dist-minify",
"build:browser-dist-local": "rollup -c config/exports/rollup.config.js -f iife -o build/dist/index.js",
"build:browser-dist-minify": "uglifyjs -m -c -o build/dist/index.min.js -- build/dist/index.js",
"build:browser-cjs": "rollup -c config/exports/rollup.config.js -f cjs -o build/browser/index.cjs.js",
"build:resolve-sourcemaps": "sorcery -i build/browser/index.js && sorcery -i build/browser/index.cjs.js",
"build:tests": "trash test && node config/exports/build-tests.js",
"lint": "tslint --project . --type-check src/**/*.ts",
"lint:prettier": "prettier --config .prettierrc --ignore-path .prettierignore --check src",
"lint:prettier:fix": "prettier --config .prettierrc --ignore-path .prettierignore --write src",
"unit": "nqr build && nqr build:tests && nyc ava",
"check-coverage": "nyc check-coverage --lines 100 --functions 100 --branches 100",
"test": "nqr lint && nqr unit && nqr check-coverage",
"watch": "nqr build && nqr build:tests -- --no-browser && concurrently -r --kill-others 'npm run --silent build:main -- -w' 'npm run --silent build:tests -- -w --no-browser' 'sleepms 2000 && ava --watch'",
"cov": "nqr unit && nqr html-coverage && opn coverage/index.html",
"serve:dev": "nqr build:module && nqr build:browser-dist-local; node serve.js",
"html-coverage": "nyc report --reporter=html",
"send-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"docs": "nqr docs:html && opn build/docs/index.html",
"docs:html": "typedoc src/index.ts --excludePrivate --mode file --theme default --out build/docs --includeDeclarations --excludeExternals",
"docs:md": "typedoc src --readme none --theme markdown --excludePrivate --mode file --out ../Developers/docs/sdk --includeDeclarations --excludeExternals --platform docusaurus",
"docs:json": "typedoc --mode file --json build/docs/typedoc.json src/index.ts",
"docs:publish": "nqr docs:html && gh-pages -d build/docs",
"changelog": "standard-version",
"release": "nqr reset && nqr test && nqr docs:publish && nqr changelog",
"reset": "git clean -dfx && git reset --hard && nqr"
},
"scripts-info": {
"info": "Display information about the scripts",
"build": "(Trash and re)build the library",
"lint": "Lint all typescript source files",
"unit": "Build the library and run unit tests",
"test": "Lint, build, and test the library",
"watch": "Watch source files, rebuild library on changes, rerun relevant tests",
"cov": "Run tests, generate the HTML coverage report, and open it in a browser",
"docs": "Generate HTML API documentation and open it in a browser",
"docs:publish": "Generate HTML API documentation and push it to GitHub Pages",
"docs:json": "Generate API documentation in typedoc JSON format",
"changelog": "Bump package.json version, update CHANGELOG.md, tag a release",
"reset": "Delete all untracked files and reset the repo to the last commit",
"release": "Clean, build, test, publish docs, and prepare release (a one-step publish process)"
},
"engines": {
"node": ">=4.5"
},
"devDependencies": {
"@types/node": "^14.14.21",
"ava": "^0.21.0",
"browserify": "^17.0.0",
"concurrently": "^5.3.0",
"cpx": "^1.5.0",
"gh-pages": "^3.1.0",
"hash.js": "^1.1.7",
"husky": "^4.3.8",
"lint-staged": "^10.5.3",
"mkdirp": "^1.0.4",
"npm-check-updates": "^10.2.5",
"npm-scripts-info": "^0.3.9",
"nyc": "^15.1.0",
"opn-cli": "^4.1.0",
"prettier": "^2.2.1",
"rollup": "^0.44.0",
"rollup-plugin-alias": "^1.2.0",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-watch": "^4.0.0",
"sleep-ms": "^2.0.1",
"sorcery": "^0.10.0",
"standard-version": "^9.1.0",
"trash-cli": "^4.0.0",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"tslint-config-standard": "^9.0.0",
"typedoc": "^0.20.14",
"typedoc-plugin-markdown": "^3.4.0",
"typescript": "^4.1.3",
"uglify-js": "^3.12.4"
},
"keywords": [
"csv",
"importer",
"import",
"convert",
"json",
"parse",
"parser",
"csv-parse",
"parse",
"async",
"await",
"ES6",
"ES7",
"typescript"
],
"nyc": {
"exclude": [
"**/*.spec.js",
"build/browser/**"
]
},
"ava": {
"source": [
"test/**/*.js",
"build/**/*.js",
"!build/**/*.spec.js"
]
},
"dependencies": {
"csstype": "^3.0.6",
"element-class": "^0.2.2",
"es6-promise": "^4.2.8",
"eventemitter3": "^4.0.7",
"express": "^4.17.1",
"nqr": "^1.0.0",
"penpal": "^3.0.1",
"promise-polyfill": "^8.2.0",
"ts-promise": "^2.2.0",
"tslib": "^2.1.0",
"when-dom-ready": "^1.2.12"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"npm run lint",
"npm run lint:prettier"
]
}
}