Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !23614

[WIP] Multiple packages using Lerna

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/peternewnham/lerna into v4-dev Aug 22, 2017
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 288

Created by: peternewnham

Here's an early proof of concept of how splitting into multiple packages using Lerna could work (#23557 (closed))

Created 3 packages located in the packages directory:

  • bootstrap
    • devDependency on the css and jquery packages below
    • should be backwards compatible with current bootstrap package
  • css (scss and css only)
  • jquery (jquery plugins only)

Usage:

  • Install Lerna (npm i -g lerna)
  • Run lerna bootstrap to initialise and link dependencies between packages Runlerna run build` to run the build script for each package

Demos of them in action (published to a temporary scope):

  • Full Bootstrap package (css + jquery) - https://jsfiddle.net/hpm0ku0c/1/
  • CSS only - https://jsfiddle.net/n81gadbt/1/

To Do:

  • Decide on package names
    • scoped (@twbs/css) vs flat (bootstrap-css)
    • Consistent names between platforms Bootstrap is published on (npm, packagist, nuget... etc)
  • Restructure rest of project and run scripts to work with the new format
  • Consider the way the combined bootstrap package is generated (may be a better way than just copying files from it's dependencies?)
  • Probably lots of other things I've not thought about

CC: @XhmikosR

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/peternewnham/lerna