Giter Site home page Giter Site logo

newfuture / miniprogram-template Goto Github PK

View Code? Open in Web Editor NEW
48.0 5.0 14.0 127 KB

a wechat miniprogram template project the best practice with miniprogram-build 小程序模板最佳实践(TypeScript)

Home Page: https://newfuture.cc/miniprogram-template/

License: MIT License

TypeScript 45.02% JavaScript 43.46% SCSS 11.52%
miniprogram template typescript scss wechat wechat-mini-program

miniprogram-template's Introduction

Github Actions Status Travis Build Status Build Status

A wechat miniprogram template project the best practice with TypeScript and VSCode

[小程序模板最佳实践(TypeScript+VSCode),使用 miniprogram-build 工具构建]


Required [所需环境]

  • nodejs: npm >= 6.0(或者yarn) Node >= 10
  • Editor: VSCode
  • Wechat-Devtools: 小程序开发工具 (并开启服务端口)

Quick Start [使用]

  1. create project [一键创建新项目]

点击 Use this template 一键使用此模板项,目或者使用命令行:

# 不指定`[本地目录]`则在当前目录创建,`-n`表示使用最新模板
npm create miniprogram NewFuture/miniprogram-template -n [本地目录]
# 或者
# yarn create miniprogram NewFuture/miniprogram-template -n [本地目录]
  1. start [在项目文件下运行]
#cd [本地目录名]
npm start
# 或者
# yarn start

正常启动后调试工具会自动打开dist预览

Script [命令]

npm 可以用 yarn 代替

  • npm start: 重新编译项目并实时更新[alias npm run start]
    • npm run start:test: 使用测试环境配置文件进行开发
    • npm run start:prod: 使用生成环境配置文件进行开发
  • npm run upload: 打包并上传项目到小程序后台(开发环境配置)
    • npm run upload:test: 使用测试环境配置打包并上传项目到小程序后台
    • npm run upload:prod: 使用生成环境配置打包并上传项目到小程序后台
  • npm run build: 重新打包编译(开发环境配置)
    • npm run build:test: 重新打包编译
    • npm run build:prod: 重新打包编译
  • npm test: 测试[alias npm run test]
  • npm run check: 代码风格和格式检查(支持不同语言单独lint检查)
  • npm run fix: 自动修复可修复的 lint 和代码风格问题
  • npm run help: 查看编译工具 mp 的详细用法

全部快捷命令package.json

Multiple env [多环境设置]

每个环境可进行不同配置(可按需增加或减少环境配置)

  • .mpconfig.jsonc 开发集成环境
  • env/test.jsonc 测试环境配置
  • env/prod.jsonc 线上生产环境配置

如果只有一个环境可删除 env目录直接使用 .mpconfig.jsonc进行配置

Coding [编码]

Languages [编程语言]

js

  • .ts(TypeScript) 或 .js(JavaScript) (推荐ts)
  • Eslint + Prettier 检查代码风格和自动格式化
  • TS 支持/绝对路径形式 import

wxml

  • .wxml.html
  • Htmlhit + Prettier 检查代码风格和自动格式化
  • 使用 vscode-minapp 进行代码检查和格式

wxss

  • .scss ,.sass或者.css (推荐scss)
  • Stylelint + Prettier 检查代码风格和自动格式化
  • 可按指定顺序自动排序 css 属性
  • scss 可以直接 @import assets 目录下内容

json

  • .jsonc,.json.json5 支持注释
  • Prettier 代码检查和自动格式化

wxs

  • .wxts(TypeScript),.wxs(JavaScript) (推荐wxts)
  • Prettier 代码检查和自动格式化
  • miniprogram-wxs进行 type 检查和限定

Editor [编辑器]

使用VSCode,并自动安装推荐插件

  1. 首次使用根据提示自动安装推荐插件
  2. 所有插件已配置好,会自动进行代码检查提示,保存时自动修复
  3. 新建 Page,Component,wxs会自动生产模板文件(可修改模板)

CI [持续集成]

默认已经配置完 Auzre Pipelines 和 Travis CI 以及 Github Actions,可按需开启和修改

miniprogram-template's People

Contributors

greenkeeper[bot] avatar mutoe avatar newfuture avatar redblue9771 avatar solarhell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

miniprogram-template's Issues

This repository is a surprise!

This is really great!
I didn't directly using this library, but some of your configuration and ideas gave me a lot of inspiration and help (such as .wxts, and @types/miniprogram-wxs). Thank you very much, support!

An in-range update of miniprogram-build is breaking the build 🚨

The devDependency miniprogram-build was updated from 3.4.3 to 3.5.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

miniprogram-build is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @typescript-eslint/parser is breaking the build 🚨

The devDependency @typescript-eslint/parser was updated from 1.9.0 to 1.10.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@typescript-eslint/parser is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of stylelint is breaking the build 🚨

The devDependency stylelint was updated from 10.0.0 to 10.0.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

stylelint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for 10.0.1
  • Fixed: minimum Node.js engine reduced to 8.7.0 (#4032).
  • Fixed: --allow-empty-input CLI flag (#4029).
  • Fixed: color-no-invalid-hex false positives for hashes in URLs (#4035).
  • Fixed: function-linear-gradient-no-nonstandard-direction false positives for dollar variables (#4027).
Commits

The new version differs by 12 commits.

  • 453ca4c Prepare 10.0.1
  • 97c54d8 Update CHANGELOG.md
  • 3bf38ca Fix false positives for hashes in URLs in color-no-invalid-hex (#4035)
  • 108edd2 Update CHANGELOG.md
  • 1d204c2 Fix Node.js required version from 8.15.0 to 8.7.0 (#4032)
  • 011f112 Update get-stdin to the latest version 🚀 (#4030)
  • da1a34f Update CHANGELOG.md
  • 68cd18f Fix false positives for dollar variables in function-linear-gradient-no-nonstandard-direction (#4027)
  • af2664f Update CHANGELOG.md
  • 55863bb Fix allow-empty-input CLI flag (#4029)
  • e6b0e15 Update resolve-from to the latest version 🚀 (#4031)
  • f77b140 Add note about GitHub token (#4026)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of stylelint-scss is breaking the build 🚨

The devDependency stylelint-scss was updated from 3.5.4 to 3.6.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

stylelint-scss is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Commits

The new version differs by 9 commits.

  • 8a95d6c Prepare version 3.6.0 [skip ci]
  • 9c3d8d6 Merge pull request #318 from ricardogobbosouza/major-stylelint-v10
  • b7ab282 Update package.json
  • e95d3f5 ci: change node 9 to 10
  • 71e409e update deps
  • e064cd2 removed: node.js 6.x support
  • 8795957 Merge pull request #313 from kristerkari/greenkeeper/postcss-selector-parser-6.0.2
  • f60ba6a chore(package): update lockfile package-lock.json
  • 897bf9e fix(package): update postcss-selector-parser to version 6.0.2

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

An in-range update of @typescript-eslint/parser is breaking the build 🚨


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


The devDependency @typescript-eslint/parser was updated from 2.33.0 to 2.34.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@typescript-eslint/parser is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • build (ubuntu-latest, 12.x): There are 2 failures, 2 warnings, and 0 notices.
  • build (ubuntu-latest, 10.x): There are 1 failures, 2 warnings, and 0 notices.
  • build (ubuntu-latest, 8.x): There are 1 failures, 2 warnings, and 0 notices.
  • build (macOS-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • Travis CI - Branch: The build failed.

Release Notes for v2.34.0

2.34.0 (2020-05-18)

Bug Fixes

  • typescript-estree: fix handling of range/loc removal (#2028) (ce344d9)

Features

  • eslint-plugin: [no-invalid-void-type] allow union of void and allowInGenericTypeArguments (#1960) (1bc105a)
  • eslint-plugin: [restrict-template-expressions] improve error message (#1926) (1af59ba)
  • experimental-utils: add suggestion property for rule modules (#2033) (f42a5b0)
Commits

The new version differs by 6 commits.

  • f188901 chore: publish v2.34.0
  • 1bc105a feat(eslint-plugin): [no-invalid-void-type] allow union of void and allowInGenericTypeArguments (#1960)
  • 1af59ba feat(eslint-plugin): [restrict-template-expressions] improve error message (#1926)
  • ce344d9 fix(typescript-estree): fix handling of range/loc removal (#2028)
  • f42a5b0 feat(experimental-utils): add suggestion property for rule modules (#2033)
  • c66f97c docs(eslint-plugin): [explicit-function-return-type] add missing default (#2032)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

问一下png格式的icon怎么处理

项目中的icon都是png,我原本打算放在assets的icon里面,但是又发现该目录不会编译进入dist,所以问一下这个怎么处理。另外建立一个icon目录吗?
还有一个事,我写了个scss的公共函数,本来想放utils里,结果发现导入的时候编译器找不到,然后我看见assets里面写着可以放scss组件,我又放到assets里面,结果编译依然报错。

An in-range update of @typescript-eslint/parser is breaking the build 🚨

The devDependency @typescript-eslint/parser was updated from 2.19.0 to 2.19.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@typescript-eslint/parser is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • build (ubuntu-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (ubuntu-latest, 10.x): There are 1 failures, 0 warnings, and 0 notices.
  • build (ubuntu-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • Travis CI - Branch: The build errored.

Release Notes for v2.19.1

2.19.1 (2020-02-10)

Bug Fixes

  • eslint-plugin: [unbound-method] blacklist a few unbound natives (#1562) (4670aab)
  • typescript-estree: ts returning wrong file with project references (#1575) (4c12dac)
Commits

The new version differs by 5 commits.

  • 1c8f0df chore: publish v2.19.1
  • 4c12dac fix(typescript-estree): ts returning wrong file with project references (#1575)
  • e9cf734 docs(eslint-plugin): fix typo in readme
  • 10d86b1 docs(eslint-plugin): [no-dupe-class-members] fix typo (#1566)
  • 4670aab fix(eslint-plugin): [unbound-method] blacklist a few unbound natives (#1562)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @typescript-eslint/eslint-plugin is breaking the build 🚨


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


The devDependency @typescript-eslint/eslint-plugin was updated from 2.33.0 to 2.34.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@typescript-eslint/eslint-plugin is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • build (ubuntu-latest, 12.x): There are 0 failures, 2 warnings, and 0 notices.
  • build (ubuntu-latest, 10.x): There are 0 failures, 2 warnings, and 0 notices.
  • build (ubuntu-latest, 8.x): There are 1 failures, 2 warnings, and 0 notices.
  • build (macOS-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • Travis CI - Branch: The build failed.
  • build (windows-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.

Release Notes for v2.34.0

2.34.0 (2020-05-18)

Bug Fixes

  • typescript-estree: fix handling of range/loc removal (#2028) (ce344d9)

Features

  • eslint-plugin: [no-invalid-void-type] allow union of void and allowInGenericTypeArguments (#1960) (1bc105a)
  • eslint-plugin: [restrict-template-expressions] improve error message (#1926) (1af59ba)
  • experimental-utils: add suggestion property for rule modules (#2033) (f42a5b0)
Commits

The new version differs by 6 commits.

  • f188901 chore: publish v2.34.0
  • 1bc105a feat(eslint-plugin): [no-invalid-void-type] allow union of void and allowInGenericTypeArguments (#1960)
  • 1af59ba feat(eslint-plugin): [restrict-template-expressions] improve error message (#1926)
  • ce344d9 fix(typescript-estree): fix handling of range/loc removal (#2028)
  • f42a5b0 feat(experimental-utils): add suggestion property for rule modules (#2033)
  • c66f97c docs(eslint-plugin): [explicit-function-return-type] add missing default (#2032)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

tslib 打包上传后无法正确在真机上运行

在微信开发者工具中可运行, 打包上传后 安卓下小程序一直卡在启动画面 在ios下打开调试模式 控制台显示 tslib.js is not defined.

不知道是什么原因, 我尝试过build后手动将 tslib 放在 dist/node_modules 目录下使用开发者工具 先构建 npm 然后ES6转ES5, 也不行, 开发者工具使用调试模式就可以正常运行

可以确定不是偶发, 我近几天使用该模版重构的项目均出现此问题, 不知道这个 tslib 库是做什么的, 我试过不加载该依赖仍然无法启动, 请求总部支援 😂

环境

开发者工具 1.02.1905151
微信 7.0.4
基础库 2.6.6

How to track the update of this template?

Thanks for your work!

I can see you have frequent commits in this repo. So i want to know if i used this to created a miniprogram, how can i have the same config of this template?

npm 国内镜像找不到 miniprogram-build 5.2.1

这个库很棒,是目前唯一强大又可用的命令行工具。
但是经过测试,如果npm切换到了淘宝镜像源,install会失败,因为找不到miniprogram-build 5.2.1,最新版本是5.2.0。
如果切换到国外的源没有问题,我想这会导致很多人第一次使用无法启动项目。

代码编译缺少wxss文件的问题

项目重新编译时,经常会出现wxss文件缺失的问题,大部分情况出现在组件内,必须手动重新保存下丢失的sass文件才可以,每次重新打包都得检查一下有没有缺失文件.
WX20190902-160503

wxml 属性变量自动换行问题

我原本写的代码是这样
image
但是保存了之后代码格式化之后变成了这样
image
微信的编译器就开始报错
image
我把代码改成了这样,问题依旧
image

还有一个事,我这边情况有点特殊,开发和微信的ide分别是两个电脑,我:目前在开发机远程访问的微信ide,有点慢,请问dist目录能否可以自定义设置目录,比如输出为D:\dist这种绝对路径

关于自定义dist目录的问题

目前情况有点特殊。
开发和微信的调试分别是两个电脑,我目前在开发机远程访问调试机,整个代码目录也放在调试机里。
我想的是开发机本地存放开发目录,输出目录则直接远程编译到调试机。
所以问一下dist目录能否可以自定义设置目录,比如在windows下输出为D:\dist这种绝对路径

An in-range update of @typescript-eslint/eslint-plugin is breaking the build 🚨

The devDependency @typescript-eslint/eslint-plugin was updated from 2.19.0 to 2.19.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@typescript-eslint/eslint-plugin is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • build (ubuntu-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (ubuntu-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (ubuntu-latest, 8.x): There are 1 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • Travis CI - Branch: The build errored.

Release Notes for v2.19.1

2.19.1 (2020-02-10)

Bug Fixes

  • eslint-plugin: [unbound-method] blacklist a few unbound natives (#1562) (4670aab)
  • typescript-estree: ts returning wrong file with project references (#1575) (4c12dac)
Commits

The new version differs by 5 commits.

  • 1c8f0df chore: publish v2.19.1
  • 4c12dac fix(typescript-estree): ts returning wrong file with project references (#1575)
  • e9cf734 docs(eslint-plugin): fix typo in readme
  • 10d86b1 docs(eslint-plugin): [no-dupe-class-members] fix typo (#1566)
  • 4670aab fix(eslint-plugin): [unbound-method] blacklist a few unbound natives (#1562)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @typescript-eslint/eslint-plugin is breaking the build 🚨

The devDependency @typescript-eslint/eslint-plugin was updated from 1.9.0 to 1.10.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@typescript-eslint/eslint-plugin is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of miniprogram-api-typings is breaking the build 🚨


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


The devDependency miniprogram-api-typings was updated from 2.10.4 to 2.11.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

miniprogram-api-typings is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • build (ubuntu-latest, 12.x): There are 0 failures, 2 warnings, and 0 notices.
  • build (ubuntu-latest, 10.x): There are 0 failures, 2 warnings, and 0 notices.
  • build (ubuntu-latest, 8.x): There are 1 failures, 2 warnings, and 0 notices.
  • build (macOS-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • Travis CI - Branch: The build failed.

Commits

The new version differs by 1 commits.

  • 207a536 feat(baselib): definition for 2.10.4

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of stylelint is breaking the build 🚨


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


The devDependency stylelint was updated from 13.3.3 to 13.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

stylelint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • build (ubuntu-latest, 12.x): There are 0 failures, 2 warnings, and 0 notices.
  • build (ubuntu-latest, 10.x): There are 0 failures, 2 warnings, and 0 notices.
  • build (ubuntu-latest, 8.x): There are 1 failures, 2 warnings, and 0 notices.
  • build (macOS-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (macOS-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-2016, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 12.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 10.x): There are 2 failures, 0 warnings, and 0 notices.
  • build (windows-latest, 8.x): There are 2 failures, 0 warnings, and 0 notices.
  • Travis CI - Branch: The build failed.

Release Notes for 13.4.0
  • Added: ignore:["delay"] to time-min-milliseconds (#4743).
  • Added: ignoreFunctions: [] to value-keyword-case (#4733).
  • Fixed: improved performance when auto syntax is used (#4729).
  • Fixed: --report-needless-disables respects stylelint-disable commands (#4714).
  • Fixed: at-rule-property-requirelist TypeError for comments inside of font-face (#4744).
  • Fixed: declaration-block-trailing-semicolon false positives for CSS-in-JS object notation (#4749).
  • Fixed: declaration-empty-line-before false positives for inlines styles (#4726).
  • Fixed: media-feature-name-* false positives for forced-colors (#4775).
  • Fixed: value-keyword-case false positives WebExtension replacement keywords (#4778).
  • Fixed: value-keyword-case false positives regression for mixed-case properties and the ignoreProperties option (#4748).
Commits

The new version differs by 34 commits.

  • 81211b1 13.4.0
  • 737f7f3 Prepare 13.4.0
  • f4043ae Update dependencies for release (#4779)
  • ebefebb Update CHANGELOG.md
  • 4f8360b Fix false positives for WebExtension replacement keywords in value-keyword-case (#4778)
  • d2fb35d Update CHANGELOG.md
  • 38968c7 Fix false positives for objects in declaration-block-trailing-semicolon (#4749)
  • 8870cef Update CHANGELOG.md
  • 9639066 Add forced-colors support for media-feature-name-* rules (#4775)
  • b3c6eb2 Fix categorisation of notation rules (#4766)
  • 61e64fe Document Jest preset for testing plugins (#4767)
  • cca7d52 Update CHANGELOG.md
  • 107b7fe Bump jest from 25.3.0 to 26.0.1 (#4762)
  • ce0bbe4 Update CHANGELOG.md
  • 5775e00 Fix testRule use

There are 34 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

关于globalData的问题

我注意到,在一次提交(e74d527)中, app.ts中的MyApp接口被移除了, 并且导入了另外单独的globalData文件.

但是我认为这样做会导致MyApp中自己定义的方法会失去类型检查, 下面是一个例子

app.ts
图片

pages/index/index.ts
图片

这个更改导致app中的方法不好用了, 是否可以继续保留MyApp接口, 像下面一样

import { GlobalData } from "/model/global-data";

export interface MyApp {
    customFunc: () => typeof GlobalData
}

App<MyApp>({
    customFunc() {
        console.log(GlobalData);
        return GlobalData
    },
});

如果可以, 我稍后将发起一个PR

An in-range update of eslint-config-prettier is breaking the build 🚨

The devDependency eslint-config-prettier was updated from 4.1.0 to 4.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-config-prettier is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Commits

The new version differs by 6 commits.

  • 5a72ee7 eslint-config-prettier v4.2.0
  • 13cc4d2 Update dependencies
  • 9d8c7d9 Sort TypeScript rules
  • 1186944 chores on @typescript-eslint (#88)
  • 1a305b4 fix(typescript): disable no-extra-parens rule
  • 122956d chore(typescript): update @typescript-eslint

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.