@react-script/test
Vic 定制
Last updated a year ago by yesixuan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @react-script/test 
SYNC missed versions from official npm registry.

如何使用

npx create-react-app <project-name> --scripts-version=@react-script/test --typescript

禁用依赖树的检查

添加 .env 文件

SKIP_PREFLIGHT_CHECK=true

开启 eslint、eslintignore

{
  test: /\.(js|mjs|jsx|ts|tsx)$/,
  enforce: 'pre',
  use: [
    {
      options: {
        ignore: true,
        useEslintrc: true,
      }
    }
  ]
}

添加 stylus,全局自动注入 less sass stylus 变量

const stylusRegex = /\.(styl|stylus)$/
const stylusModuleRegex = /\.module\.(styl|stylus)$/

{
  test: stylusRegex,
  exclude: stylusModuleRegex,
  use: [
    {
      loader: 'style-resources-loader',
      options: {
        patterns: [
          path.resolve(paths.appSrc, 'assets/styles/auto-inject/*.styl'),
        ]
      }
    }
  ],
},
{
  test: stylusModuleRegex,
  use: [
    {
      loader: 'style-resources-loader',
      options: {
        patterns: [
          path.resolve(paths.appSrc, 'assets/styles/auto-inject/*.styl'),
        ]
      }
    }
  ],
}

Current Tags

  • 0.0.14                                ...           latest (a year ago)

15 Versions

  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
  • 0.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |