itonyyo / latest-gitignore-cli Goto Github PK
View Code? Open in Web Editor NEW添加 / 更新 `.gitignore`。直接从 `github/gitignore·` 项目 `master` 分支获取模板,而非 `gitignore.io`。:building_construction:
License: MIT License
添加 / 更新 `.gitignore`。直接从 `github/gitignore·` 项目 `master` 分支获取模板,而非 `gitignore.io`。:building_construction:
License: MIT License
命令行参数的方式快捷,但存在不方便支出,比如阅读体验上。
借助 davidtheclark/cosmiconfig 实现配置文件的读取。
有时候,对当前项目自定义的规则在 github/gitignore 中是不存在的,的确可以手动修改 .gitignore
文件,但是每次重新生成 .gitignore
文件后,手动添加的规则就全部没了。
参见 latestGitignore(needs, to)
文档。
最小化 package.json、README.md 等文件的体积,以提升 latest-gitignore-cli 的安装体验。
npm notice
npm notice 📦 [email protected]
npm notice === Tarball Contents ===
npm notice 4.5kB lib/index.js
npm notice 3.7kB package.json
npm notice 1.1kB LICENSE.md
npm notice 2.4kB README.md
npm notice === Tarball Details ===
npm notice name: latest-gitignore-cli
npm notice version: 1.2.1
npm notice filename: latest-gitignore-cli-1.2.1.tgz
npm notice package size: 5.2 kB
npm notice unpacked size: 11.7 kB
npm notice shasum: eea5141beb3c81ee326df0fe5a1a06b8a20281f3
npm notice integrity: sha512-PSHlcJk3PsOsy[...]FUo0tFBnp4W+Q==
npm notice total files: 4
npm notice
❎
latest-gitignore macOS Windows Linux -o .
✅
latest-gitignore --preset cross-platform -o .
如果每次给一个项目生成 .gitignore 文件都要去 github/gitignore 完整检查一遍列表,效率有些低。直接使用预设会方便一些,也更容易记忆。
配置文件大致如此,
{
"topic": [
"macOS",
"Windows",
"Linux",
"Node",
"VisualStudioCode",
"SublimeText",
"CVS",
"Diff",
"Vim",
"TortoiseGit"
],
"ignore": [
".idea/**/*.iml",
".idea/**/*.xml",
"error.txt",
"log.txt",
".yarnclean"
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.