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
[Package]: Politespace caused build to fail on customized standards #1385
Comments
This seems like the last nail on the coffin to remove |
Making a note here... check out this comment on how we are moving forward in regards to |
Politespace is still mentioned at: https://standards.usa.gov/form-templates/#02-address-form |
Hi @tomberek, that's actually intentional. We removed Politespace as a dependency from the Standards "core", but are still using it on the site for demonstration purposes. |
Description
We are creating an extension of the USWDS; whereby, we leverage the good work here and the modular approach to extend or override.
uswds.min.js
and just requiring it into our build. However, ran into issues with JS compiling due to Politespace not being found. Therefore, we copied over/node_modules/uswds/src/js
to our/src/js/vendor
(following the copy vendor files methodology. Same issue.uswds.min.js
to go one folder higher to find the Politespace stored in our/node_modules
. The had it be ignored when we docopy-vendor-javascript
. This does not seem like a permanent solution.Thoughts?
Steps to reproduce the issue
/node_modules/uswds/src/js
directory to/src/js/vendor
/src/js/start.js
withrequire('./vendor/start.js');
$ gulp release
/src/js/vendor/start.js
:From:
var Politespace = require('../../node_modules/politespace/src/politespace').Politespace;
To:
var Politespace = require('../../../node_modules/politespace/src/politespace').Politespace;
$ gulp release
Additional information
GSA/sam-design-system-site#45
GSA/sam-design-system-site#13
$ gulp copy-vendor-javascript
The text was updated successfully, but these errors were encountered: