为所有项目的 "Global" bower_components 文件夹创建工作流程?
Create workflow for a "Global" bower_components folder for all of your projects?
Side Note: I'm not looking for "opinion-based" answers..I don't want this to get thrown into that category. I'm looking for the proper method to simplify my workflow with the tools we have available.
我最近 运行 遇到的问题:
我在我的本地磁盘上安装了多个重复的库(例如 jquery + bootstrap)开始新项目时一遍又一遍...
1. Create "new-client" folder
2. cd.. new-client
3. git clone my-starter-code
4. npm install (installing multiple dev dependency duplicates on disk)
5. bower install (installing multiple dependency duplicates on disk)
6. begin coding!
如果所有这些项目 Always 具有相同的基本结构,这对我来说似乎是一种浪费:
- 相同的 "node_modules" 个文件 (65.1 MB)
- 相同的 "bower_components" 个文件 (11.7 MB)
- 相同的“../folders/files.html”结构(模块化)
可以使用哪些构建工具来创建这样的工作流?
- package.json "scripts" ?
- 哟发电机?
- gulpfile.js ?
- 全球 node_modules + bower_components ?
- git ?
我意识到所有项目都有自己的不同之处,但如果它们都以相同的方式开始,那么使用一个 "Master" 目录是否没有意义 "Global" 个文件而不是 100 个重复项目?
我从使用模块化 "Web Components"(新的 W3C 标准)进行开发开始思考这个问题。
这让我想使我的工作流程更加模块化、简化和自动化。
pNPM
快速,磁盘space高效的包管理器
Side Note: I'm not looking for "opinion-based" answers..I don't want this to get thrown into that category. I'm looking for the proper method to simplify my workflow with the tools we have available.
我最近 运行 遇到的问题:
我在我的本地磁盘上安装了多个重复的库(例如 jquery + bootstrap)开始新项目时一遍又一遍...
1. Create "new-client" folder
2. cd.. new-client
3. git clone my-starter-code
4. npm install (installing multiple dev dependency duplicates on disk)
5. bower install (installing multiple dependency duplicates on disk)
6. begin coding!
如果所有这些项目 Always 具有相同的基本结构,这对我来说似乎是一种浪费:
- 相同的 "node_modules" 个文件 (65.1 MB)
- 相同的 "bower_components" 个文件 (11.7 MB)
- 相同的“../folders/files.html”结构(模块化)
可以使用哪些构建工具来创建这样的工作流?
- package.json "scripts" ?
- 哟发电机?
- gulpfile.js ?
- 全球 node_modules + bower_components ?
- git ?
我意识到所有项目都有自己的不同之处,但如果它们都以相同的方式开始,那么使用一个 "Master" 目录是否没有意义 "Global" 个文件而不是 100 个重复项目?
我从使用模块化 "Web Components"(新的 W3C 标准)进行开发开始思考这个问题。
这让我想使我的工作流程更加模块化、简化和自动化。
pNPM
快速,磁盘space高效的包管理器