gridsome / gridsome/gridsome

customise builds

Open
#1,226 12 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
8.5k
Forks
466
PR merge metrics
No merged PRs in 30d

Description

## Summary

Brief explanation of the feature.
The ability to customise gridsome BUILDS

### Basic example

eg1 the default option might be something like gridsome build -complete
This option would do a complete build of pages and templates

eg2 gridsome build -Template posts
this option would only do a build of template post.vue

eg3 gridsome build -Template posts -percentage 10
this option would only do a build of template post.vue but only the first 10% of all available posts

eg4 gridsome build -pages
this option would only do a build of pages

eg5 gridsome build -bigdata
this option would indicate to the build process to expect a large data set, and to proceed accordingly. That is, try and reclaim memory after every contentType or for the build process NOT to load all data into memory.

### Motivation

Why are we doing this?
This would allow BUILDS of large sites with many posts and pages. Right now running "gridsome develop" on a site with 10,000 posts works but "gridsome build" will not work, returning an memory heap error. So instead of loading all 10,000 posts to do a gridsome build, allow the programmer to specify what to build and percentage of data to build

What is the expected outcome?
The ability to customise the gridsome build process to allow building large sites

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the `gridsome build` command and the current build process. Define how complete, page-only, template-only, percentage-limited, and large-data builds should behave, including the memory constraint. Done means the requested build customization works for large sites and its behavior is covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.