Skip to content

Commit b49d491

Browse files
authored
Merge pull request #252 from performant-software/feature/rc251_peripleo_components
RC #251 - Peripleo components
2 parents e50217f + 7247129 commit b49d491

File tree

125 files changed

+8984
-5090
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+8984
-5090
lines changed

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"extends": [
88
"plugin:flowtype/recommended",
9+
"plugin:import/recommended",
910
"plugin:react/recommended",
1011
"airbnb"
1112
],
@@ -36,6 +37,7 @@
3637
"max-len": ["error", { "code": 120, "ignoreStrings": true }],
3738
"no-underscore-dangle": "off",
3839
"no-use-before-define": "off",
40+
"import/no-unresolved": ["error", { "ignore": ["@samvera/clover-iiif.*"] }],
3941
"import/prefer-default-export": "off",
4042
"react/no-array-index-key": "off",
4143
"react/default-props-match-prop-types": "off",

.flowconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[ignore]
22
<PROJECT_ROOT>/types/.*
3+
<PROJECT_ROOT>/build/.*
4+
<PROJECT_ROOT>/dist/.*
35
./node_modules/
46

57
[include]

.github/workflows/storybook.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Build and Deploy GitHub pages
2+
23
on:
3-
pull_request:
4+
push:
45
branches:
56
- master # Trigger the action only on PR merges into master
7+
68
jobs:
79
build-and-deploy:
810
runs-on: ubuntu-latest
@@ -16,10 +18,10 @@ jobs:
1618
yarn install
1719
yarn build-storybook
1820
- name: Deploy 🚀
19-
uses: JamesIves/github-pages-deploy-action@3.6.2
21+
uses: JamesIves/github-pages-deploy-action@v4
2022
with:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
BRANCH: gh-pages # The branch the action should deploy to.
23-
FOLDER: packages/storybook/storybook-static # The folder that the build-storybook script generates files.
24-
CLEAN: true # Automatically remove deleted files from the deploy branch
25-
TARGET_FOLDER: docs # The folder that we serve our Storybook files from
23+
branch: gh-pages # The branch the action should deploy to.
24+
folder: packages/storybook/storybook-static # The folder that the build-storybook script generates files.
25+
clean: true # Automatically remove deleted files from the deploy branch
26+
clean-exclude: '["docs/.nojekyll"]'
27+
target-folder: docs # The folder that we serve our Storybook files from

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build/
2+
dist/
23
node_modules/
34
.env
45
.vscode/launch.json

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
"packages/*"
88
],
99
"scripts": {
10-
"build-semantic": "yarn --cwd packages/semantic-ui build",
11-
"build-shared": "yarn --cwd packages/shared build",
12-
"build-storybook": "yarn build-shared && yarn build-semantic && yarn --cwd packages/storybook build",
10+
"build-all": "node --experimental-json-modules ./scripts/build.js",
11+
"build-storybook": "yarn build-all && yarn --cwd packages/storybook build",
1312
"flow": "flow",
1413
"storybook": "yarn --cwd packages/storybook storybook",
1514
"test": "jest",
@@ -23,7 +22,7 @@
2322
"eslint": "^7.1.0",
2423
"eslint-config-airbnb": "^18.1.0",
2524
"eslint-plugin-flowtype": "^5.9.0",
26-
"eslint-plugin-import": "^2.20.2",
25+
"eslint-plugin-import": "^2.29.1",
2726
"eslint-plugin-jest": "^26.1.4",
2827
"eslint-plugin-jsx-a11y": "^6.2.3",
2928
"eslint-plugin-react": "^7.19.0",
Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,38 @@
11
{
22
"name": "@performant-software/controlled-vocabulary",
3-
"version": "1.1.6",
3+
"version": "2.0.0",
44
"description": "A package of components to allow user to configure dropdown elements. Use with the \"controlled_vocabulary\" gem.",
55
"license": "MIT",
6-
"main": "./build/index.js",
7-
"style": [
8-
"./build/main.css",
9-
"./build/semantic-ui.css"
10-
],
6+
"main": "./dist/index.cjs.js",
7+
"module": "./dist/index.es.js",
8+
"style": "./dist/style.css",
9+
"type": "module",
10+
"exports": {
11+
".": {
12+
"import": "./dist/index.es.js",
13+
"require": "./dist/index.cjs.js"
14+
},
15+
"./style.css": "./dist/style.css"
16+
},
1117
"scripts": {
12-
"build": "webpack --mode production && flow-copy-source -v src types"
18+
"build": "vite build && flow-copy-source -v src types"
1319
},
1420
"dependencies": {
15-
"@performant-software/semantic-components": "^1.1.6",
16-
"@performant-software/shared-components": "^1.1.6",
1721
"i18next": "^21.9.2",
1822
"semantic-ui-react": "^2.1.2",
1923
"underscore": "^1.13.2"
2024
},
2125
"peerDependencies": {
26+
"@performant-software/semantic-components": "^2.0.0",
27+
"@performant-software/shared-components": "^2.0.0",
2228
"react": ">= 16.13.1 < 19.0.0",
2329
"react-dom": ">= 16.13.1 < 19.0.0"
2430
},
2531
"devDependencies": {
26-
"@performant-software/webpack-config": "^1.0.0",
32+
"@bunchtogether/vite-plugin-flow": "^1.0.2",
33+
"@vitejs/plugin-react": "^4.2.1",
2734
"react": "^18.2.0",
28-
"react-dom": "^18.2.0"
35+
"react-dom": "^18.2.0",
36+
"vite": "^5.1.4"
2937
}
3038
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// @flow
2+
3+
import { flowPlugin, esbuildFlowPlugin } from '@bunchtogether/vite-plugin-flow';
4+
import react from '@vitejs/plugin-react';
5+
import { defineConfig } from 'vite';
6+
import * as packageJson from './package.json';
7+
8+
export default defineConfig(() => ({
9+
esbuild: {
10+
include: /\.js$/,
11+
exclude: [],
12+
loader: 'jsx',
13+
},
14+
optimizeDeps: {
15+
esbuildOptions: {
16+
plugins: [esbuildFlowPlugin()]
17+
}
18+
},
19+
plugins: [
20+
react(),
21+
flowPlugin()
22+
],
23+
build: {
24+
sourcemap: true,
25+
lib: {
26+
entry: './src/index.js',
27+
formats: ['es', 'cjs'],
28+
fileName: (format) => `index.${format}.js`
29+
},
30+
rollupOptions: {
31+
external: [
32+
...Object.keys(packageJson.peerDependencies)
33+
],
34+
output: {
35+
preserveModules: true
36+
}
37+
}
38+
}
39+
}));

packages/controlled-vocabulary/webpack.config.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/core-data/LICENSE

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

packages/core-data/README.md

Whitespace-only changes.

0 commit comments

Comments
 (0)