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
  • !30759

Improve build/zip-examples.js

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged XhmikosR requested to merge master-exm-examples-script into master May 07, 2020
  • Overview 3
  • Commits 5
  • Pipelines 0
  • Changes 1
  • remove favicons meta tags
  • copy the two brand images we use in the examples

sh.sed has the same limitations as the sed tool, hence this solution. Not perfect but does the job.

https://github.com/shelljs/shelljs#sedoptions-search_regex-replacement-file--file-

Also, like unix sed, ShellJS sed runs replacements on each line from the input file (split by '\n') separately, so search_regexes that span more than one line (or include '\n') will not match anything and nothing will be replaced.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master-exm-examples-script