From 1ae06dc56b3dc677330b1fca25129ce10c182ea6 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Wed, 12 Jun 2019 20:02:27 +0200 Subject: [PATCH] Add .npmignore file to optimize package size --- .npmignore | 6 ++++++ README.md | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e7cda56 --- /dev/null +++ b/.npmignore @@ -0,0 +1,6 @@ +.circleci +.idea +.editorconfig +.gitattributes +CHANGELOG.md +test/ diff --git a/README.md b/README.md index 8ce6005..adffca7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # stylelint-config-ma -![CircleCi](https://circleci.com/gh/massiveart/stylelint-config-ma/tree/master.png) +[![CircleCi](https://circleci.com/gh/massiveart/stylelint-config-ma.png?style=shield)](https://circleci.com/gh/massiveart/stylelint-config-ma) +[![npm](https://img.shields.io/npm/v/stylelint-config-ma.svg)](https://www.npmjs.com/package/stylelint-config-ma) +[![Size](https://img.shields.io/github/size/massiveart/stylelint-config-ma/index.js.svg)](https://github.com/massiveart/stylelint-config-ma/blob/master/index.js) +[![Install Size](https://packagephobia.now.sh/badge?p=stylelint-config-ma)](https://packagephobia.now.sh/result?p=stylelint-config-ma) Stylelint shareable config used by MASSIVE ART. @@ -52,6 +55,8 @@ Copy the text of the last release into and get new release. ``` git fetch --tags git checkout +rm CHANGELOG.md # else it will be published with it +npm pack --dry-run # check that no unnecessary files are packed npm publish ```