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

  • 相关阅读:
    java连接常见数据库的连接字符串
    一个用来自动管理大容量表的Sql脚本
    Ibatis2.0使用说明(一)——入门实例篇
    态度决定你的人生高度
    jboss配置入门(二) -JBOSS3.2.3/3.2.6部署及配置修改
    如何在一个工程里面实现不同的功能打入不同的日志文件中【log4net】
    Xsl实践总结(一)
    Xsl实践总结(三)-介绍一款开发XSL不错的IDE(Stylus)
    Xsl实践总结(二)
    教你节省时间 让你个人效率翻三倍
  • 原文地址:https://www.cnblogs.com/pascal1000/p/10888616.html
Copyright © 2011-2022 走看看