@usecsv/react 0.1.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/build/index.cjs +61 -10
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +61 -10
- package/build/index.esm.js.map +1 -1
- package/build/index.js +61 -10
- package/build/index.js.map +1 -1
- package/build/index.mjs +61 -10
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +61 -10
- package/build/index.umd.js.map +1 -1
- package/build/index.umd.min.js +33 -4
- package/build/index.umd.min.js.map +1 -1
- package/build/types/lib/useCsvReactPlugin.d.ts +3 -7
- package/build/types/lib/useCsvReactPlugin.d.ts.map +1 -1
- package/package.json +4 -4
- package/.babelrc.jest.js +0 -14
- package/.editorconfig +0 -15
- package/.env +0 -0
- package/.env.example +0 -1
- package/.eslintignore +0 -1
- package/.eslintrc.airbnbts.js +0 -73
- package/.eslintrc.json +0 -91
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -7
- package/.github/dependabot.yml +0 -7
- package/.github/workflows/main.yml +0 -44
- package/.github/workflows/publish.yml +0 -19
- package/.github/workflows/sementic_release.yml +0 -27
- package/.gitignore +0 -8
- package/.nvmrc +0 -1
- package/.nyc_output/0196dd80-12a9-4176-bd5b-4a8bc6e984f9.json +0 -1
- package/.nyc_output/0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4.json +0 -1
- package/.nyc_output/92c6bc34-84c6-46f7-9e14-0d1bd2068352.json +0 -1
- package/.nyc_output/a0942cca-db9b-40d2-833e-8fcf7011171f.json +0 -1
- package/.nyc_output/b3fc15a1-349d-4d4c-a8dd-2142cc988ac3.json +0 -1
- package/.nyc_output/processinfo/0196dd80-12a9-4176-bd5b-4a8bc6e984f9.json +0 -1
- package/.nyc_output/processinfo/0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4.json +0 -1
- package/.nyc_output/processinfo/92c6bc34-84c6-46f7-9e14-0d1bd2068352.json +0 -1
- package/.nyc_output/processinfo/a0942cca-db9b-40d2-833e-8fcf7011171f.json +0 -1
- package/.nyc_output/processinfo/b3fc15a1-349d-4d4c-a8dd-2142cc988ac3.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/.nycrc +0 -8
- package/.prettierignore +0 -2
- package/.prettierrc.js +0 -6
- package/.releaserc.json +0 -39
- package/.vscode/extensions.json +0 -8
- package/.vscode/launch.json +0 -29
- package/.vscode/settings.json +0 -21
- package/commitlint.config.js +0 -1
- package/config/rollup.config.js +0 -78
- package/config/webpack.dev.js +0 -59
- package/reports/coverage/base.css +0 -224
- package/reports/coverage/block-navigation.js +0 -79
- package/reports/coverage/favicon.png +0 -0
- package/reports/coverage/index.html +0 -96
- package/reports/coverage/prettify.css +0 -1
- package/reports/coverage/prettify.js +0 -2
- package/reports/coverage/sort-arrow-sprite.png +0 -0
- package/reports/coverage/sorter.js +0 -170
- package/src/dev/index.html +0 -14
- package/src/dev/index.tsx +0 -22
- package/src/index.tsx +0 -3
- package/src/lib/useCsvReactPlugin.tsx +0 -42
- package/src/test/jest-setup.ts +0 -7
- package/tsconfig.json +0 -35
- package/tsconfig.module.json +0 -23
- package/yarn.lock +0 -11867
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import useCsvPlugin from "@usecsv/js";
|
|
1
2
|
import { FC, ReactNode } from "react";
|
|
2
|
-
declare type
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
declare type UseCsvButtonTypes = {
|
|
6
|
-
readonly importerKey: string;
|
|
7
|
-
readonly user?: UserObject;
|
|
8
|
-
readonly metadata: Record<string, string | number> | undefined;
|
|
3
|
+
declare type pluginParamas = Parameters<typeof useCsvPlugin>[0];
|
|
4
|
+
declare type UseCsvButtonTypes = pluginParamas & {
|
|
9
5
|
readonly render?: ((onClick: () => Promise<any>) => ReactNode) | undefined | null;
|
|
10
6
|
};
|
|
11
7
|
declare const UseCsvButton: FC<UseCsvButtonTypes>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCsvReactPlugin.d.ts","sourceRoot":"","sources":["../../../src/lib/useCsvReactPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCsvReactPlugin.d.ts","sourceRoot":"","sources":["../../../src/lib/useCsvReactPlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,YAAY,CAAC;AACtC,OAAc,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7C,aAAK,aAAa,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AACxD,aAAK,iBAAiB,GAAG,aAAa,GAAG;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC;CACnF,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA0BvC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usecsv/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "layercode"
|
|
6
6
|
},
|
|
@@ -61,8 +61,7 @@
|
|
|
61
61
|
"react-dom": "^17.0.2"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@
|
|
65
|
-
"@usecsv/js": "0.1.0"
|
|
64
|
+
"@usecsv/js": "0.2.2"
|
|
66
65
|
},
|
|
67
66
|
"devDependencies": {
|
|
68
67
|
"@babel/preset-env": "^7.14.8",
|
|
@@ -76,6 +75,7 @@
|
|
|
76
75
|
"@semantic-release/changelog": "^6.0.1",
|
|
77
76
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
78
77
|
"@semantic-release/git": "^10.0.1",
|
|
78
|
+
"@semantic-release/github": "^8.0.2",
|
|
79
79
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
80
80
|
"@testing-library/dom": "^8.1.0",
|
|
81
81
|
"@testing-library/jest-dom": "^5.14.1",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"rollup-plugin-dts": "^4.0.1",
|
|
113
113
|
"rollup-plugin-terser": "^7.0.2",
|
|
114
114
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
115
|
-
"semantic-release": "^
|
|
115
|
+
"semantic-release": "^19.0.2",
|
|
116
116
|
"source-map-loader": "^3.0.0",
|
|
117
117
|
"ts-loader": "^9.2.4",
|
|
118
118
|
"ts-node": "^9.0.0",
|
package/.babelrc.jest.js
DELETED
package/.editorconfig
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# http://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
end_of_line = lf
|
|
7
|
-
indent_size = 2
|
|
8
|
-
indent_style = space
|
|
9
|
-
insert_final_newline = true
|
|
10
|
-
max_line_length = 80
|
|
11
|
-
trim_trailing_whitespace = true
|
|
12
|
-
|
|
13
|
-
[*.md]
|
|
14
|
-
max_line_length = 0
|
|
15
|
-
trim_trailing_whitespace = false
|
package/.env
DELETED
|
File without changes
|
package/.env.example
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
config/**
|
package/.eslintrc.airbnbts.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: ["airbnb-base"],
|
|
3
|
-
plugins: ["@typescript-eslint"],
|
|
4
|
-
parser: "@typescript-eslint/parser",
|
|
5
|
-
rules: {
|
|
6
|
-
// airbnb overwrites
|
|
7
|
-
"arrow-parens": "off",
|
|
8
|
-
"arrow-body-style": "off",
|
|
9
|
-
"import/no-cycle": "off", // for preformance
|
|
10
|
-
"no-unused-expressions": "off",
|
|
11
|
-
// convert airbnb js rules to ts
|
|
12
|
-
|
|
13
|
-
// turn off Airbnb 'camelcase'
|
|
14
|
-
camelcase: "off",
|
|
15
|
-
|
|
16
|
-
// Replace Airbnb 'no-array-constructor' rule with '@typescript-eslint' version
|
|
17
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-array-constructor.md
|
|
18
|
-
"no-array-constructor": "off",
|
|
19
|
-
"@typescript-eslint/no-array-constructor": "error",
|
|
20
|
-
|
|
21
|
-
// Replace Airbnb 'no-unused-vars' rule with '@typescript-eslint' version
|
|
22
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
|
|
23
|
-
"no-unused-vars": "off",
|
|
24
|
-
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
|
|
25
|
-
|
|
26
|
-
// Append `ts` and `tsx` extensions to Airbnb 'import/no-extraneous-dependencies' rule
|
|
27
|
-
// Forbid the use of extraneous packages
|
|
28
|
-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
|
|
29
|
-
// Paths are treated both as absolute paths, and relative to process.cwd()
|
|
30
|
-
"import/no-extraneous-dependencies": [
|
|
31
|
-
"error",
|
|
32
|
-
{
|
|
33
|
-
devDependencies: [
|
|
34
|
-
"test/**", // tape, common npm pattern
|
|
35
|
-
"tests/**", // also common npm pattern
|
|
36
|
-
"spec/**", // mocha, rspec-like pattern
|
|
37
|
-
"**/__tests__/**", // jest pattern
|
|
38
|
-
"**/__mocks__/**", // jest pattern
|
|
39
|
-
"test.{js,jsx,ts,tsx}", // repos with a single test file
|
|
40
|
-
"test-*.{js,jsx,ts,tsx}", // repos with multiple top-level test files
|
|
41
|
-
"**/*{.,_}{test,spec}.{js,jsx,ts,tsx}", // tests where the extension or filename suffix denotes that it is a test
|
|
42
|
-
"**/jest.config.js", // jest config
|
|
43
|
-
"**/vue.config.js", // vue-cli config
|
|
44
|
-
"**/webpack.config.js", // webpack config
|
|
45
|
-
"**/webpack.config.*.js", // webpack config
|
|
46
|
-
"**/rollup.config.js", // rollup config
|
|
47
|
-
"**/rollup.config.*.js", // rollup config
|
|
48
|
-
"**/gulpfile.js", // gulp config
|
|
49
|
-
"**/gulpfile.*.js", // gulp config
|
|
50
|
-
"**/Gruntfile{,.js}", // grunt config
|
|
51
|
-
"**/protractor.conf.js", // protractor config
|
|
52
|
-
"**/protractor.conf.*.js", // protractor config
|
|
53
|
-
],
|
|
54
|
-
optionalDependencies: false,
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
|
|
58
|
-
// Append `ts` and `tsx` to Airbnb 'import/extensions' rule
|
|
59
|
-
// Ensure consistent use of file extension within the import path
|
|
60
|
-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
|
|
61
|
-
"import/extensions": [
|
|
62
|
-
"error",
|
|
63
|
-
"ignorePackages",
|
|
64
|
-
{
|
|
65
|
-
js: "never",
|
|
66
|
-
mjs: "never",
|
|
67
|
-
jsx: "never",
|
|
68
|
-
ts: "never",
|
|
69
|
-
tsx: "never",
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
},
|
|
73
|
-
};
|
package/.eslintrc.json
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"parser": "@typescript-eslint/parser",
|
|
4
|
-
"parserOptions": {
|
|
5
|
-
"project": "./tsconfig.json"
|
|
6
|
-
},
|
|
7
|
-
"env": {
|
|
8
|
-
"es6": true,
|
|
9
|
-
"browser": true
|
|
10
|
-
},
|
|
11
|
-
"ignorePatterns": [
|
|
12
|
-
"node_modules",
|
|
13
|
-
"build",
|
|
14
|
-
"coverage"
|
|
15
|
-
],
|
|
16
|
-
"plugins": [
|
|
17
|
-
"import",
|
|
18
|
-
"eslint-comments",
|
|
19
|
-
"functional",
|
|
20
|
-
"@typescript-eslint",
|
|
21
|
-
"prettier"
|
|
22
|
-
],
|
|
23
|
-
"extends": [
|
|
24
|
-
"eslint:recommended",
|
|
25
|
-
"plugin:@typescript-eslint/recommended",
|
|
26
|
-
"./.eslintrc.airbnbts.js",
|
|
27
|
-
"plugin:import/typescript",
|
|
28
|
-
"plugin:functional/lite",
|
|
29
|
-
"prettier",
|
|
30
|
-
"prettier/@typescript-eslint",
|
|
31
|
-
"plugin:jest/recommended",
|
|
32
|
-
"plugin:jest/style"
|
|
33
|
-
],
|
|
34
|
-
"globals": {
|
|
35
|
-
"BigInt": true,
|
|
36
|
-
"console": true,
|
|
37
|
-
"WebAssembly": true
|
|
38
|
-
},
|
|
39
|
-
"rules": {
|
|
40
|
-
"prettier/prettier": "error",
|
|
41
|
-
"quotes": "off",
|
|
42
|
-
"@typescript-eslint/naming-convention": [
|
|
43
|
-
"error",
|
|
44
|
-
{
|
|
45
|
-
"selector": "default",
|
|
46
|
-
"format": [
|
|
47
|
-
"camelCase",
|
|
48
|
-
"PascalCase"
|
|
49
|
-
],
|
|
50
|
-
"filter": {
|
|
51
|
-
// you can expand this regex to add more allowed names
|
|
52
|
-
"regex": "^(_|__)$",
|
|
53
|
-
"match": false
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"selector": "variable",
|
|
58
|
-
"format": [
|
|
59
|
-
"camelCase",
|
|
60
|
-
"PascalCase",
|
|
61
|
-
"UPPER_CASE"
|
|
62
|
-
],
|
|
63
|
-
"leadingUnderscore": "allow"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
67
|
-
"eslint-comments/disable-enable-pair": [
|
|
68
|
-
"error",
|
|
69
|
-
{
|
|
70
|
-
"allowWholeFile": true
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"eslint-comments/no-unused-disable": "error",
|
|
74
|
-
"import/order": [
|
|
75
|
-
"error",
|
|
76
|
-
{
|
|
77
|
-
"newlines-between": "always",
|
|
78
|
-
"alphabetize": {
|
|
79
|
-
"order": "asc"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"sort-imports": [
|
|
84
|
-
"error",
|
|
85
|
-
{
|
|
86
|
-
"ignoreDeclarationSort": true,
|
|
87
|
-
"ignoreCase": true
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
}
|
package/.github/dependabot.yml
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
on: push
|
|
3
|
-
jobs:
|
|
4
|
-
test:
|
|
5
|
-
name: Lint, typecheck & test
|
|
6
|
-
runs-on: ubuntu-latest
|
|
7
|
-
steps:
|
|
8
|
-
- name: Checkout
|
|
9
|
-
uses: actions/checkout@v2
|
|
10
|
-
|
|
11
|
-
- name: Setup Node
|
|
12
|
-
uses: actions/setup-node@v2
|
|
13
|
-
with:
|
|
14
|
-
node-version: "14"
|
|
15
|
-
|
|
16
|
-
# Cache node_modules for faster CI runs if the yarn.lock doesn't change change
|
|
17
|
-
- name: Get yarn cache directory path
|
|
18
|
-
id: yarn-cache-dir
|
|
19
|
-
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
20
|
-
|
|
21
|
-
- name: Restore yarn cache
|
|
22
|
-
uses: actions/cache@v2
|
|
23
|
-
id: yarn-cache
|
|
24
|
-
with:
|
|
25
|
-
path: ${{ steps.yarn-cache-dir.outputs.dir }}
|
|
26
|
-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
27
|
-
restore-keys: |
|
|
28
|
-
${{ runner.os }}-yarn-
|
|
29
|
-
|
|
30
|
-
# Throw an error if the yarn.lock file doesn't match the installed dependencies (rather than updating it in-place, which it does by default locally)
|
|
31
|
-
- name: Install
|
|
32
|
-
run: yarn install --frozen-lockfile --silent
|
|
33
|
-
|
|
34
|
-
- name: Copy example env
|
|
35
|
-
run: cp .env.example .env
|
|
36
|
-
|
|
37
|
-
- name: Lint
|
|
38
|
-
run: yarn lint
|
|
39
|
-
|
|
40
|
-
- name: Typecheck
|
|
41
|
-
run: yarn typecheck
|
|
42
|
-
|
|
43
|
-
- name: Tests (Jest)
|
|
44
|
-
run: yarn test
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: Node.js Package
|
|
2
|
-
on:
|
|
3
|
-
release:
|
|
4
|
-
types:
|
|
5
|
-
- created
|
|
6
|
-
jobs:
|
|
7
|
-
build:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@v2
|
|
11
|
-
# Setup .npmrc file to publish to npm
|
|
12
|
-
- uses: actions/setup-node@v2
|
|
13
|
-
with:
|
|
14
|
-
node-version: '14.x'
|
|
15
|
-
registry-url: 'https://registry.npmjs.org'
|
|
16
|
-
- run: yarn
|
|
17
|
-
- run: npm publish
|
|
18
|
-
env:
|
|
19
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# This is a basic workflow to help you get started with Actions
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
name: generate new version automatically
|
|
5
|
-
|
|
6
|
-
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
7
|
-
# events but only for the main branch
|
|
8
|
-
on:
|
|
9
|
-
push:
|
|
10
|
-
branches: [main]
|
|
11
|
-
pull_request:
|
|
12
|
-
|
|
13
|
-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
14
|
-
jobs:
|
|
15
|
-
# This workflow contains a single job called "build"
|
|
16
|
-
start:
|
|
17
|
-
runs-on: ubuntu-latest
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@v2
|
|
20
|
-
with:
|
|
21
|
-
fetch-depth: 0
|
|
22
|
-
- name: install semantic-release
|
|
23
|
-
run: yarn add semantic-release @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/github @semantic-release/release-notes-generator
|
|
24
|
-
- name: update CHANGELOG.md file
|
|
25
|
-
run: npx semantic-release
|
|
26
|
-
env: # get secret environment variable
|
|
27
|
-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
package/.gitignore
DELETED
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v14.17.3
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","pid":27663,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node","/Users/linah/repos/@usecsv-react/node_modules/jest-worker/build/workers/processChild.js"],"execArgv":[],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877354893,"ppid":27631,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/0196dd80-12a9-4176-bd5b-4a8bc6e984f9.json","externalId":"","uuid":"0196dd80-12a9-4176-bd5b-4a8bc6e984f9","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","pid":27637,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node"],"execArgv":["--eval","import(\"node:fs\").then(() => console.log(true), () => console.log(false));"],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877352269,"ppid":27631,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4.json","externalId":"","uuid":"0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":27631,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node","/Users/linah/repos/@usecsv-react/node_modules/.bin/jest","--passWithNoTests"],"execArgv":[],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877351683,"ppid":27625,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/92c6bc34-84c6-46f7-9e14-0d1bd2068352.json","externalId":"","uuid":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","pid":27665,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node","/Users/linah/repos/@usecsv-react/node_modules/jest-worker/build/workers/processChild.js"],"execArgv":[],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877354961,"ppid":27631,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/a0942cca-db9b-40d2-833e-8fcf7011171f.json","externalId":"","uuid":"a0942cca-db9b-40d2-833e-8fcf7011171f","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","pid":27664,"argv":["/Users/linah/.nvm/versions/node/v14.17.3/bin/node","/Users/linah/repos/@usecsv-react/node_modules/jest-worker/build/workers/processChild.js"],"execArgv":[],"cwd":"/Users/linah/repos/@usecsv-react","time":1640877354859,"ppid":27631,"coverageFilename":"/Users/linah/repos/@usecsv-react/.nyc_output/b3fc15a1-349d-4d4c-a8dd-2142cc988ac3.json","externalId":"","uuid":"b3fc15a1-349d-4d4c-a8dd-2142cc988ac3","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"processes":{"0196dd80-12a9-4176-bd5b-4a8bc6e984f9":{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","children":[]},"0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4":{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","children":[]},"92c6bc34-84c6-46f7-9e14-0d1bd2068352":{"parent":null,"children":["0196dd80-12a9-4176-bd5b-4a8bc6e984f9","0d5259bc-f1f3-4ca2-9d4f-1f77daccebf4","a0942cca-db9b-40d2-833e-8fcf7011171f","b3fc15a1-349d-4d4c-a8dd-2142cc988ac3"]},"a0942cca-db9b-40d2-833e-8fcf7011171f":{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","children":[]},"b3fc15a1-349d-4d4c-a8dd-2142cc988ac3":{"parent":"92c6bc34-84c6-46f7-9e14-0d1bd2068352","children":[]}},"files":{},"externalIds":{}}
|
package/.nycrc
DELETED
package/.prettierignore
DELETED
package/.prettierrc.js
DELETED
package/.releaserc.json
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"branches": "main",
|
|
3
|
-
"tagFormat": "v${version}",
|
|
4
|
-
"plugins": [
|
|
5
|
-
"@semantic-release/commit-analyzer",
|
|
6
|
-
"@semantic-release/release-notes-generator",
|
|
7
|
-
[
|
|
8
|
-
"@semantic-release/changelog",
|
|
9
|
-
{
|
|
10
|
-
"changelogFile": "CHANGELOG.md"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
[
|
|
14
|
-
"@semantic-release/npm",
|
|
15
|
-
{
|
|
16
|
-
"npmPublish": false
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
[
|
|
20
|
-
"@semantic-release/github",
|
|
21
|
-
{
|
|
22
|
-
"assets": [
|
|
23
|
-
"CHANGELOG.md"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
[
|
|
28
|
-
"@semantic-release/git",
|
|
29
|
-
{
|
|
30
|
-
"assets": [
|
|
31
|
-
"CHANGELOG.md",
|
|
32
|
-
"package.json",
|
|
33
|
-
"yarn.lock"
|
|
34
|
-
],
|
|
35
|
-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
]
|
|
39
|
-
}
|
package/.vscode/extensions.json
DELETED
package/.vscode/launch.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "0.2.0",
|
|
3
|
-
"configurations": [
|
|
4
|
-
// To debug, make sure a *.spec.ts file is active in the editor, then run a configuration
|
|
5
|
-
{
|
|
6
|
-
"type": "node",
|
|
7
|
-
"request": "launch",
|
|
8
|
-
"name": "Debug Active Spec",
|
|
9
|
-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
|
|
10
|
-
"runtimeArgs": ["debug", "--break", "--serial", "${file}"],
|
|
11
|
-
"port": 9229,
|
|
12
|
-
"outputCapture": "std",
|
|
13
|
-
"skipFiles": ["<node_internals>/**/*.js"],
|
|
14
|
-
"preLaunchTask": "npm: build"
|
|
15
|
-
// "smartStep": true
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
// Use this one if you're already running `yarn watch`
|
|
19
|
-
"type": "node",
|
|
20
|
-
"request": "launch",
|
|
21
|
-
"name": "Debug Active Spec (no build)",
|
|
22
|
-
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
|
|
23
|
-
"runtimeArgs": ["debug", "--break", "--serial", "${file}"],
|
|
24
|
-
"port": 9229,
|
|
25
|
-
"outputCapture": "std",
|
|
26
|
-
"skipFiles": ["<node_internals>/**/*.js"]
|
|
27
|
-
// "smartStep": true
|
|
28
|
-
}]
|
|
29
|
-
}
|
package/.vscode/settings.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"editor.formatOnSave": true,
|
|
3
|
-
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
4
|
-
"eslint.options": {
|
|
5
|
-
"extensions": [
|
|
6
|
-
".js",
|
|
7
|
-
".jsx",
|
|
8
|
-
".ts",
|
|
9
|
-
".tsx",
|
|
10
|
-
".json"
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
"eslint.lintTask.enable": true,
|
|
14
|
-
"eslint.lintTask.options": " . --ext .ts,.tsx,.json,.js",
|
|
15
|
-
"eslint.nodePath": "./node_modules",
|
|
16
|
-
"editor.codeActionsOnSave": {
|
|
17
|
-
"source.fixAll.eslint": true
|
|
18
|
-
},
|
|
19
|
-
"editor.tabSize": 2,
|
|
20
|
-
"typescript.tsdk": "node_modules/typescript/lib"
|
|
21
|
-
}
|
package/commitlint.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = { extends: ["@commitlint/config-conventional"] };
|
package/config/rollup.config.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
|
|
3
|
-
import { terser } from 'rollup-plugin-terser';
|
|
4
|
-
import typescript2 from 'rollup-plugin-typescript2';
|
|
5
|
-
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
6
|
-
import commonjs from 'rollup-plugin-commonjs';
|
|
7
|
-
import pkg from '../package.json';
|
|
8
|
-
import dotenv from 'dotenv';
|
|
9
|
-
dotenv.config();
|
|
10
|
-
/**
|
|
11
|
-
* Comment with library information to be appended in the generated bundles.
|
|
12
|
-
*/
|
|
13
|
-
const banner = `/*!
|
|
14
|
-
* ${pkg.name} v${pkg.version}
|
|
15
|
-
* (c) ${pkg.author.name}
|
|
16
|
-
* Released under the ${pkg.license} License.
|
|
17
|
-
*/
|
|
18
|
-
`;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Creates an output options object for Rollup.js.
|
|
22
|
-
* @param {import('rollup').OutputOptions} options
|
|
23
|
-
* @returns {import('rollup').OutputOptions}
|
|
24
|
-
*/
|
|
25
|
-
function createOutputOptions(options) {
|
|
26
|
-
return {
|
|
27
|
-
banner,
|
|
28
|
-
name: '@usecsv/react',
|
|
29
|
-
exports: 'default',
|
|
30
|
-
sourcemap: true,
|
|
31
|
-
...options,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @type {import('rollup').RollupOptions}
|
|
37
|
-
*/
|
|
38
|
-
const options = {
|
|
39
|
-
input: './src/index.tsx',
|
|
40
|
-
output: [
|
|
41
|
-
createOutputOptions({
|
|
42
|
-
file: './build/index.js',
|
|
43
|
-
format: 'commonjs',
|
|
44
|
-
}),
|
|
45
|
-
createOutputOptions({
|
|
46
|
-
file: './build/index.cjs',
|
|
47
|
-
format: 'commonjs',
|
|
48
|
-
}),
|
|
49
|
-
createOutputOptions({
|
|
50
|
-
file: './build/index.mjs',
|
|
51
|
-
format: 'esm',
|
|
52
|
-
}),
|
|
53
|
-
createOutputOptions({
|
|
54
|
-
file: './build/index.esm.js',
|
|
55
|
-
format: 'esm',
|
|
56
|
-
}),
|
|
57
|
-
createOutputOptions({
|
|
58
|
-
file: './build/index.umd.js',
|
|
59
|
-
format: 'umd',
|
|
60
|
-
}),
|
|
61
|
-
createOutputOptions({
|
|
62
|
-
file: './build/index.umd.min.js',
|
|
63
|
-
format: 'umd',
|
|
64
|
-
plugins: [terser()],
|
|
65
|
-
}),
|
|
66
|
-
],
|
|
67
|
-
plugins: [
|
|
68
|
-
typescript2({
|
|
69
|
-
clean: true,
|
|
70
|
-
useTsconfigDeclarationDir: true,
|
|
71
|
-
tsconfig: './tsconfig.module.json',
|
|
72
|
-
}),
|
|
73
|
-
commonjs(),
|
|
74
|
-
nodeResolve(),
|
|
75
|
-
],
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export default options;
|