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

New dev tooling and build process #201

Merged
merged 11 commits into from
Sep 1, 2017
Merged

Conversation

ecaldwell
Copy link
Contributor

As discussed in #198, this PR replaces Grunt with vanilla npm scripts. Grunt had a great run and served this project well, but this should simplify things a great deal. Thanks to @rwmajor2 for all of the help debugging this and ensuring the build works on both Windows and Unix environments.

A summary of the changes:

  • removed Grunt and the corresponding Gruntfile
  • moved the config variables (appId and portalUrl) from config.json into package.json
  • updated the minimum required node version to support some of the libraries
  • updated rollup and babel to their latest versions
  • build now runs main.js through babel so we can start to use some of the fun syntax in es2015
  • updated the instructions for getting started in the readme

Anybody doing dev on this project will need to run npm install and npm prune to update the local libraries required for this app.

I did not yet include prettier because it would have made merging the existing PRs difficult. Once all of those have been merged, we can look at leveraging prettier prior to new PRs (as well as softening the linting rules).

One shortcoming of the new dev tooling is the lack of a "watch" component added by @gbochenek in #171. I gave it a shot, but could not successfully configure watch. Maybe somebody else will have better success.

Trying to simplify and strengthen the build process.
No longer needed.
Best practice
This was previously added in #f87357f and is needed for old browsers (looking at you IE11).
Show relevant resources.
Cross platform support in the build scripts.
Windows wasn't following the paths correctly when trying to copy files.
cross-env is required to handle the difference in environment variables ($ on unix and % on Windows).
Moved babel-polyfill to dependencies since it is required and updated minimum version of node for better library support.
@ecaldwell
Copy link
Contributor Author

Closes #176 and #198.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants