Skip to content

Commit 4c2ce63

Browse files
author
jfusco
committed
Update build process and dependencies
Update the devDependencies - update React and Jest libraries. With the update to Jest, they deprecated some config options in package.json suck as scriptProcessor. Remove testIgnorPattern and scriptPreprocessor and add moduleNameMapper and unmockedModulePatterns. Add __mocks__ directory and styleMock.js to be able to mock the scss that gets imported in to the component to ignore the styles. Change dev to deveopment and prod to production in package.json and webpack configs. Add __DEV__ variable to eslint globals and Jest globals
1 parent 2b93386 commit 4c2ce63

22 files changed

+2509
-2819
lines changed

.eslintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
}]
7979
},
8080
"globals": {
81-
"console": true
81+
"console": true,
82+
"process": true,
83+
"__DEV__": true
8284
}
8385
}

dist/react-tags.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/styles.css

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/styles.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)