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

Reorganize and lint scripts; remove unused dev dependencies #890

Merged
merged 13 commits into from
Sep 10, 2019

Conversation

shawnbot
Copy link
Contributor

@shawnbot shawnbot commented Sep 10, 2019

It's time to clean house in the scripts directory and devDependencies! Here's the deal:

  • πŸ’₯ We no longer distribute a build/ directory:
    • build/build.css β†’ dist/primer.css
    • build/build.json β†’ dist/stats/primer.json
    • build/index.js β†’ dist/primer.js (the main field in package.json was updated in 12.0.0, so require('@primer/css') will continue to work the same)
  • All JS scripts in script/ now have the .js extension so that eslint can find them.
  • The docs URL test has now been consolidated into a single file with the style guide paths inlined, since they'll never change at this point.
  • Over a dozen dev dependencies are gone! Many were unused; some were removed after I refactored the docs URL test.
  • lib/erb-to-html.js is gone, as we aren't using it anymore in Doctocat. /cc @colebemis

BREAKING CHANGE: the build directory is no longer included in the
distributed package. build/stats.json can be found at
dist/stats/primer.json, and `require('@primer/css/build')` references
should be rewritten to `require('@primer/css/dist/primer')`.
@vercel
Copy link

vercel bot commented Sep 10, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://primer-css-git-tidy-scripts-deps.primer.now.sh

@shawnbot shawnbot marked this pull request as ready for review September 10, 2019 18:42
@shawnbot shawnbot changed the title Tidy scripts and dev dependencies Reorganize and lint scripts; remove unused dev dependencies Sep 10, 2019
Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! πŸ‘ Always happy to see more deletions than additions πŸ˜„

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

Successfully merging this pull request may close these issues.

2 participants