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

Complete local build instructions #916

Closed
bf4 opened this issue Jun 24, 2013 · 4 comments
Closed

Complete local build instructions #916

bf4 opened this issue Jun 24, 2013 · 4 comments

Comments

@bf4
Copy link

bf4 commented Jun 24, 2013

I want to build all the modules locally so they're just like what's on the CDN (so I can host them on my own server). What steps are missing?

I followed the instructions on the wiki and then some, but there's still some further processing the YUI team does before a release that I'm missing

git clone --depth=256 https://github.com/yui/yui3.git
cd yui3
git checkout v3.10.3

perhaps not necessary since I'm checking out a tags release, but

npm -g install shifter
npm -g install yogi
yogi build
cd build/

but then even if I try to add the version

find . -name '*.js' | xargs perl -pi -w -e 's/@VERSION@/3.10.3/g;'

I'm still missing things like the header in yui.js (not important, I suppose)

/*
YUI 3.10.3 (build 2fb5187)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
  • in various places: GALLERY_VERSION = 'gallery-2013.06.05-22-14', vs. 'gallery-2013.06.20-02-07',

and this makes me wonder how my tools might be different

-/* This file is auto-generated by (yogi.js loader --mix --yes) */
+/* This file is auto-generated by (yogi loader --yes --mix --start ../) */
@ezequiel
Copy link
Contributor

ezequiel commented Oct 5, 2013

Hi @bf4,

Thank you for raising the issue. If you really wish to build YUI exactly the way the team does it before deploying it on the CDN, here are the steps:

  1. Clone YUI.

    git clone -b <branch_name> https://github.com/yui/yui3.git
    
  2. Navigate to the cloned yui3 directory.

    cd yui3
    
  3. Install the modules YUI requires:

    npm i
    
  4. Make sure you have grunt-cli installed globally.

    npm i -g grunt-cli
    
  5. Install grunt locally.

    npm i grunt
    
  6. Run the release task.

    grunt release
    

After all of this is said and done, there should be a newly created release directory. This directory contains the few kinds of builds in which YUI deploys.

The build inside of the cdn directory is the version of YUI which you'll find on Yahoo's CDN.

@bf4
Copy link
Author

bf4 commented Oct 16, 2013

Thanks! Now I just need to write a loader.

@bf4
Copy link
Author

bf4 commented Nov 22, 2013

@ezequiel
Copy link
Contributor

@bf4,

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants