- Issue created by @Kristen Pol
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Try just using
npm run dist
instead ofnpm run build
as that won't include storybook stuff - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
To test this, need to go through the normal build process here:
https://www.drupal.org/community-initiatives/starshot-demo-design-system... →
but using
npm run dist
instead ofnpm run build
and see what happens on the settings page since that refers to storybook
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
For starshot_demo directory:
npm run dist
- real 0m21.462s
- user 0m25.913s
- sys 0m1.078s
npm run build
- real 0m42.100s
- user 1m17.437s
- sys 0m3.981s
so saves almost a minute
and the theme handles the lack of storybook fine... settings end up looking like:
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
For the base theme:
npm run dist
- real 0m21.954s
- user 0m24.828s
- sys 0m1.226s
npm run build
- real 0m37.157s
- user 0m46.011s
- sys 0m3.326s
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Discussing with Lionel and the real performance improvement for xb-demo is to include all the built artifacts (dist directory) so that
npm run dist (or build)
doesn't need to be run at all.The
npm install
process is slow too... probably because it's grabbing lots of dependencies for storybook (most of which go away in the latest civictheme version but we aren't using that yet). - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
This is what's in .gitignore:
.devtools node_modules storybook-static dist build lib/uikit components/**/*.css
so we probably would need to add more than just the
dist
directory, perhaps all of:dist build lib/uikit components/**/*.css
Another idea is that we create an xb-demo directory that has a copy of these and the xb-demo script, moves those copies into place during install rather than runningnpm install
andnpm run build
That way, the
.gitignore
remains the same and if you are installing on your local with for development, then you just do the normal process. But, xb-dev has a quick way to get the built assets.
Maybe @phenaproxima has thoughts on this?
- 🇺🇸United States phenaproxima Massachusetts
kristen pol → credited phenaproxima → .
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
From @phenaproxima:
Ideally, you’d do what XB does, and just compile the assets and add them to release tags, and rm -rf them in a “back to dev” commit. Thoughts?
This is an interesting approach so we will probably do that :D
Just want to see if there's anything else that needs to be in a new release first.
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Think we need these for base theme:
dist components/**/*.css
and same for subtheme:
dist components/**/*.css
but I'm not sure about these yet:
components_combined .components-civictheme
- 🇺🇸United States phenaproxima Massachusetts
Maybe add them, if in doubt; they can always be removed in subsequent releases if they're not ultimately needed.
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
I've tested with just:
dist components/**/*.css
added for both themes and it is working fine.
I'll merge and test again.
-
kristen pol →
committed 12f32c37 on 1.0.x
Resolve #3514472 "Speed up sdds"
-
kristen pol →
committed 12f32c37 on 1.0.x
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Merged... I'll test again before creating a release
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Templates with XB are unhappy with the base theme so I'm going to get rid of those for now since we aren't using them
-
kristen pol →
committed cd841035 on 1.0.x
Resolve #3514472 "Remove base templates"
-
kristen pol →
committed cd841035 on 1.0.x
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Included in 📌 Create SDDS 1.0.1 release Active
- 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Speed of
ddev composer create phenaproxima/xb-demo --stability=dev
real 3m22.094s user 0m3.273s sys 0m2.499s