Skip to content

Commit

Permalink
Merge pull request #100 from GetDKAN/2.x
Browse files Browse the repository at this point in the history
2.0.0 Release
  • Loading branch information
brdunfield authored Jun 23, 2023
2 parents e76f065 + c563a53 commit 9fe9075
Show file tree
Hide file tree
Showing 105 changed files with 23,584 additions and 40,780 deletions.
39 changes: 4 additions & 35 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,37 +1,6 @@
{
"presets": ["@babel/preset-react", "@babel/env"],
"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
}
]
"presets": [
["@babel/preset-env", { "targets": { "node": "current" } }],
"@babel/preset-react"
]
}
}
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2.1
jobs:
build:
docker:
- image: cimg/node:18.9.1
environment:
TEST_RESULTS: /tmp/test-results
DKTL_VERSION: "4.2.0"
steps:
- checkout
- 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: Install Dependencies and Run Jest Tests
command: |
npm install
npm rebuild node-sass
node --version
npx jest --coverage
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ dist
.idea
.docz
docs
.DS_Store
.DS_Store
.parcel-cache
9 changes: 9 additions & 0 deletions .parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "@parcel/config-default",
"transformers": {
"*.{js,mjs,jsx,cjs,ts,tsx}": [
"@parcel/transformer-js",
"@parcel/transformer-react-refresh-wrap"
]
}
}
3 changes: 2 additions & 1 deletion jest.config.js → jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
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',
'\\.(css|less|scss)$': '<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',
Expand All @@ -13,4 +13,5 @@ module.exports = {
'^react-dnd-test-backend$': 'react-dnd-test-backend/dist/cjs',
'^react-dnd-test-utils$': 'react-dnd-test-utils/dist/cjs',
},
testEnvironment: "jsdom",
};
Loading

0 comments on commit 9fe9075

Please sign in to comment.