美文网首页
homestead yarn composer idehelpe

homestead yarn composer idehelpe

作者: IT宝哥哥 | 来源:发表于2019-03-08 16:40 被阅读0次

    helpers.php

    1. 创建 bootstrap/helpers.php
    2. composer.json
    "autoload-dev": {
        //添加内容
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "Tests\\": "tests/"
        },
        //添加内容
        "files": [
            "bootstrap/helpers.php"
        ]
    },
    

    yarn install

    1 $ rm -rf node_modules
    2 $ yarn config set registry http://registry.cnpmjs.org
    3 $ yarn install --no-bin-links
    4 接下来打开 pakage.json 修改, 去掉 package.json 中的四处 cross-env
    5.执行 $ npm run watch-poll 或者 npm run dev
    6.完成
    

    [如果需要时用sass] , 在日益流行前端工程化中,很多同学喜欢使用sass,然而node-sass的下载在国内是个老大难的问题,如果你不翻墙,默认下载极大可能会失败。怎么办呢? 配置下 node-sass 的二进制包镜像地址就行了

    yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
    

    laravel ide helper

    1. Install
      Require this package with composer using the following command:
    composer require barryvdh/laravel-ide-helper
    
    1. After updating composer, add the service provider to the providers array in config/app.php
    Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
    
    1. Automatic phpDoc generation for Laravel Facades
      You can now re-generate the docs yourself (for future updates)
    php artisan ide-helper:generate
    

    相关文章

      网友评论

          本文标题:homestead yarn composer idehelpe

          本文链接:https://www.haomeiwen.com/subject/przrpqtx.html