Skip to content

Commit

Permalink
Update build process and dependencies
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jfusco committed Jan 1, 2017
1 parent 2b93386 commit 4c2ce63
Show file tree
Hide file tree
Showing 22 changed files with 2,509 additions and 2,819 deletions.
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
}]
},
"globals": {
"console": true
"console": true,
"process": true,
"__DEV__": true
}
}
2 changes: 1 addition & 1 deletion dist/react-tags.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions dist/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/styles.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c2ce63

Please sign in to comment.