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

Customizer Updates #8400

Merged
merged 21 commits into from Mar 30, 2016
Merged

Customizer Updates #8400

merged 21 commits into from Mar 30, 2016

Conversation

gakimball
Copy link
Contributor

@kball and I are working on some updates to the customizer. The big thing is integrating the build process directly into the foundation-sites Gulpfile. This makes it easier to test various configurations, and easier to test the custom builds with the framework before we deploy a new version.

On the server end, the customizer holds a specific tagged version of the repository, and can generate custom builds by running gulp customizer --modules path/to/config.json, where config.json is a file built from the customizer's form data.

The server end is still being worked on (and will probably be closed source).

@gakimball
Copy link
Contributor Author

For @kball, this is the spec for the configuration.

{
  "modules": [],
  "variables": {}
}

modules is a list of strings—they correspond to the modules the user has enabled/disabled in the form. Each string should be a top-level key found in the master modules list.

variables is an object of Sass variables. The key is the name of the variable without the dollar sign, and the value is the value of the variable. All values should be strings, including booleans.

"variables": {
  "primary-color": "#ffffff",
  "global-flexbox": "true"
}

To create a custom build, run:

gulp customizer --modules path/to/config.json

A ZIP file with the name foundation-6.x.x.zip is created, and that's your download.

@gakimball
Copy link
Contributor Author

@kball I've made the final needed changes on my end:

  • Ensuring all compressed/uncompressed assets are properly copied.
  • Combining color variables into $foundation-palette instead of including them as separate variables.

…if no color variables are included in the custom build definition
@kball
Copy link
Contributor

kball commented Mar 30, 2016

This is now working & the web interface is live.

@kball kball merged commit af2be14 into develop Mar 30, 2016
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.

None yet

2 participants