zoukankan      html  css  js  c++  java
  • 构建Bootstrap源码开发环境

    构建Bootstrap源码开发环境
    1. 参考 https://getbootstrap.com/docs/4.3/getting-started/build-tools/

    2. Install npm
        sudo apt-get install npm
        升级npm为最新版本
        sudo npm install npm@latest -g
        
        查看版本
        pascal@pascal:$  npm -v
        6.9.0
        
         或者:
        pascal@pascal:$ sudo apt-cache madison   npm
               npm | 5.8.0+ds6-4 | http://mirrors.huaweicloud.com/repository/ubuntu disco/universe amd64 Packages
               npm | 5.8.0+ds6-4 | http://mirrors.huaweicloud.com/repository/ubuntu disco/universe i386 Packages



    3. Install nodejs
        sudo apt-get install nodejs
        
        查看版本
        pascal@pascal:$ nodejs -v
        v10.15.2

        或者
        pascal@pascal:$ sudo apt-cache madison   nodejs
            nodejs | 10.15.2~dfsg-1 | http://mirrors.huaweicloud.com/repository/ubuntu disco/universe amd64 Packages

    git:
    https://github.com/pascal19821003/bootstrap-4.3.1_installed


    4. Install Ruby
        https://www.ruby-lang.org/en/documentation/installation/
        检查是否已经安装
        You may already have Ruby installed on your computer. You can check inside a terminal emulator by typing:
        ruby -v
        
        安装
        apt (Debian or Ubuntu)

        Debian GNU/Linux and Ubuntu use the apt package manager. You can use it like this:

        $ sudo apt-get install ruby-full

    5. install Bundler  
         gem install bundler

    6. install all Ruby dependencies, such as Jekyll and plugins
        bundle install --verbose
        
    7. 使用bundler安装jekyll
        https://blog.csdn.net/jasonzhoujx/article/details/81122852
            安装ruby和ruby-dev
            sudo apt install ruby ruby-dev
        通过ruby的安装器gem安装bundler
            sudo gem install bundler
        通过bundler批量安装jekyll组件
            bundle install

        到nokogiri时终止了安装,搜索网上的问题解决办法后,发现是一些第三方依赖库没有安装,linux下在终端中输入以下命令,在手动安装nokogiri,成功!
            sudo apt-get install libz-dev libiconv-hook1 libiconv-hook-dev

            sudo gem install nokogiri -v '1.8.4'


        回过头来根据Gemfile安装jekyll
            bundle install

        试试能不能启动jekyll,成功!在浏览器中网址栏输入localhost:4000,验证jekyll的运行情况
            bundle exec jekyll serve

        浏览器访问页面

    8. Using npm scripts
        npm run dist
        npm test
        npm run docs
        Run npm run to see all the npm scripts.

    9. start jekyll serve
        bundle exec jekyll serve

       此时,可以通过浏览器访问bootstrap文档,samples等。

    git:
    https://github.com/pascal19821003/bootstrap-4.3.1_installed

  • 相关阅读:
    【彩彩只能变身队】(迟到的)团队介绍
    【彩彩只能变身队】用户需求分析(二)—— 调查结果
    【彩彩只能变身队】用户需求分析(一)—— 调查问卷
    C语言I博客作业04
    C语言I博客作业06
    c语言1作业07
    C语言I博客作业03
    C语言I博客作业02
    C语言I博客作业05
    【OpenGL编程指南】之投影和视口变换
  • 原文地址:https://www.cnblogs.com/pascal1000/p/10888616.html
Copyright © 2011-2022 走看看