Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

cdnjs/buildScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buildScript

Script use to rebuild the meta data of api and website, and then deploy them.

Most of the codes will be in update-website.sh, build.sh is the file we need to execute, and config.sh is the file contains the configs.

Take a look at the script, set the path and api key in config.sh before use it.

Repositories

  • cdnjs, the main repo we are working on
  • cdnjsmaster, the clean repo be used to build
  • new-website, the website and api repo

Branches and remotes

Branches

  • cdnjsmaster should stay on master, this repo is setup for build process only.
  • new-website should have two branches
    • one is master, for the real codes
    • another one will be meta, meta beanch will save additional meta data the we'll use for website and api, but not real codes.

Remotes

  • cdnjsmaster should have two remotes,
    • origin will point to the repo on GitHub
    • local will points to the local working cdnjs, we want most of the objects will be fetched locally.
      • For example: /home/peter/cdnjs/cdnjs_working
  • new-website should have 3 remotes,
    • origin will point to the repo on GitHub
    • the others will be heroku and heroku2, which will point to the api and website project on heroku.