Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.x rc1 #165

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6191078
Initial commit to add uswds to component library
dgading Feb 12, 2021
20ec384
Update component library with Jest Axe for use in all component/templ…
dgading Feb 12, 2021
2f66cbf
Update core files to work with new tests and styles
dgading Feb 19, 2021
41c726c
update to 2.0.0-alpha.0
dgading Feb 26, 2021
5417444
Swap from the old build process to Rollup and Create React App (#130)
dgading Mar 1, 2021
ddbe9e7
Update to alpha.2 and add /dist to gitignore
dgading Mar 1, 2021
8988be0
Add new version of storybook to site
dgading Mar 2, 2021
26f5e6b
Add new search components and remove unused old components
dgading Mar 2, 2021
62edfc6
Cards, Orgs, and PublisherLists (#125)
dgading Mar 2, 2021
05d913e
Update index.js and Hero
dgading Mar 2, 2021
0927c52
Update to 2.0.0-alpha.3
dgading Mar 2, 2021
a2bd018
Swap preview.js loaders for storybook webpack update (#132)
dgading Mar 3, 2021
89d5036
Update version to alpha.4
dgading Mar 3, 2021
d0e92c9
Update Datatable to USWDS (#133)
dgading Mar 3, 2021
c965ea1
Add new DynamicLink component to handle external/internal links (#134)
dgading Mar 4, 2021
1f181d0
Fix failing tests (#135)
dgading Mar 4, 2021
2cf2ab0
Update to alpha.5
dgading Mar 9, 2021
720134c
Update the API Docs to work like PDC when calling data (#142)
dgading Apr 6, 2021
5e06a8a
Add Dynamic Link as export with classname
dgading Apr 13, 2021
bd26866
Fix PropTypes and add test to APIDocs (#143)
dgading Apr 8, 2021
ab442e1
Update version because of bad deploy
dgading Apr 13, 2021
dd5d229
Update datatable page results to add commas (#146)
dgading Apr 13, 2021
5e024e7
Update version to alpha.9
dgading Apr 14, 2021
4a7a02d
DataTable updates (#158)
dgading Nov 9, 2021
08093ba
Remove extra div in datatable header
dgading Dec 17, 2021
902d1b3
Remove APIDocs component in favor of downstream instances (#160)
dgading Jan 4, 2022
6c36b58
Remove node-sass from dependencies
dgading Mar 25, 2022
327fbb8
Remove all unused components to allow for better implementation as ne…
dgading May 12, 2022
38e85dc
Break datatable page results into util and template
dgading May 18, 2022
22eea07
Reduce react-scripts to 4.3.x
dgading May 18, 2022
7beb566
Clean up rebase and function name
dgading May 18, 2022
8320c72
Fix tests using calcDatatabalePageResults
dgading May 18, 2022
1629898
Add jest axe to template test
dgading May 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 2 additions & 28 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,35 +1,9 @@
{
"presets": [
"@babel/preset-react",
"@babel/env"
"@babel/env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-json-strings",
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
"@babel/plugin-proposal-function-sent",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-throw-expressions",
"@babel/plugin-proposal-export-default-from",
"@babel/plugin-proposal-logical-assignment-operators",
"@babel/plugin-proposal-optional-chaining",
[
"@babel/plugin-proposal-pipeline-operator",
{
"proposal": "minimal"
}
],
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-do-expressions",
"@babel/plugin-proposal-function-bind",
["@babel/plugin-transform-runtime",
{
"regenerator": true
Expand Down
34 changes: 9 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,22 @@
version: 2.1
version: 2
jobs:
build:
parameters:
pr-version:
type: string
default: "1.2.0"
parallelism: 1
machine:
image: circleci/classic:latest
docker:
- image: cimg/node:16.14.2
environment:
TEST_RESULTS: /tmp/test-results
DKTL_VERSION: "4.2.0"
CC_TEST_REPORTER_ID: 7fb6eaf0ab35ac9e1e6889b9af53f766331175459bd25bfaee419c1bb1438027
DRUPAL_VERSION: V8
steps:
- checkout
- run: node --version
- run:
name: "Setup variables"
command: |
echo $CIRCLE_BRANCH
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
name: Install Dependencies
command: npm install
- run:
name: Install Dependencies and Run Jest Tests
command: |
nvm install 10
npm install
npm rebuild node-sass
node --version
./cc-test-reporter before-build
npx jest --coverage
./cc-test-reporter after-build --coverage-input-type lcov --exit-code $?

name: Run Jest Tests
command: npm test
11 changes: 0 additions & 11 deletions .eslintrc.js

This file was deleted.

31 changes: 25 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
node_modules
package-lock.json
lib
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

dist
.idea
.docz
docs
lib
dist
docs
5 changes: 0 additions & 5 deletions .storybook/addons.js

This file was deleted.

55 changes: 0 additions & 55 deletions .storybook/config.js

This file was deleted.

27 changes: 27 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const path = require('path');

module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials"
],
webpackFinal: async (config, { configType }) => {
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
// You can change the configuration based on that.
// 'PRODUCTION' is used when building the static version of storybook.

// Make whatever fine-grained changes you need
config.module.rules.push({
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
include: path.resolve(__dirname, '../'),
});

// Return the altered config
return config;
},
};
3 changes: 3 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}
34 changes: 0 additions & 34 deletions .storybook/webpack.config.js

This file was deleted.

17 changes: 0 additions & 17 deletions doczrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions gatsby-config.js

This file was deleted.

22 changes: 0 additions & 22 deletions gatsby-node.js

This file was deleted.

17 changes: 5 additions & 12 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
module.exports = {
testPathIgnorePatterns: ['<rootDir>/lib/', '<rootDir>/node_modules/'],
setupFilesAfterEnv: ['<rootDir>/setupTests.js'],
testPathIgnorePatterns: ["<rootDir>/lib/", "<rootDir>/node_modules/"],
setupFilesAfterEnv: ["<rootDir>/setupTests.js"],
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js',
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js',
'^dnd-core$': 'dnd-core/dist/cjs',
'^react-dnd$': 'react-dnd/dist/cjs',
'^react-dnd-html5-backend$': 'react-dnd-html5-backend/dist/cjs',
'^react-dnd-multi-backend$': 'react-dnd-multi-backend',
'^HTML5toTouch$': 'react-dnd-html5-backend/dist/cjs',
'^react-dnd-touch-backend$': 'react-dnd-touch-backend/dist/cjs',
'^react-dnd-test-backend$': 'react-dnd-test-backend/dist/cjs',
'^react-dnd-test-utils$': 'react-dnd-test-utils/dist/cjs',
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/__mocks__/fileMock.js",
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js",
},
};
Loading