Comments (7)
We have all of the templates local to the generator for subgenerators, what is everyone's thought?
from generator-aspnet.
If possible I think generator-asponet
should use built-in copy feature of Yo's.
There is two level built-in solution in Yeoman to update generators AFAIK and keep users up-to-date with released, most recent versions:
#1
if user run yo
she will be presented with option to update installed generators:
Mocha
──────────────
❯ Update your generators
Install a generator
update:
generator-aspnet update is presented that way:
? 'Allo Piotr! What would you like to do?
──────────────
Run a generator
Angular
❯ Aspnet ♥ Update Available!
Bootstrap
Bootstrap Examples
Generator
(Move up and down to reveal more choices)
#2
if generator-aspnet
adds Yeoman's update plugin dependency the status of generator-aspnet
will be checked on each run by Yeoman's itself:
https://github.com/yeoman/update-notifier
There is additional benefit of moving to use copy feature instead of fetching from git directly. During generator development that is not possible to work with locally updated content - samples are always fetched from remote upstream master - not from local repository used for development.
from generator-aspnet.
Yes I agree we should stop using .remote()
. I think having all the files in the npm package is better so that offline works and so that you don't have to push to github to test template changes.
Update plugin sounds good as well.
from generator-aspnet.
The implementation for local templates/files can be as simple as:
https://gist.github.com/peterblazejewicz/9ae54b300b862b4e5320
I'd also think about bringing back tests for templ/files creation process.
from generator-aspnet.
@peterblazejewicz have you done this locally and tested?
from generator-aspnet.
@spboyer Yes, this is from my local branch. Can I bring back default Yeoman's testing structure to project? (by default yeoman-generator scaffolds tests for generator projects). I could investigate this.
I would not add local copy features yet unless covered by tests
from generator-aspnet.
.remote() removed and test coverage added for entire repo in latest PR -> #59
from generator-aspnet.
Related Issues (20)
- Remove 'usersecrets` subgenerator for RC HOT 1
- Update Docker template content for 2017RC HOT 1
- Update global.json generator/template for VS2017 RC HOT 1
- How to create controller in vscode using yo HOT 2
- [Possible Bug] Can't seem to run Yeoman generate project on Heroku HOT 10
- Can find project.json inside of new project HOT 18
- Log off should be Logout in mvc template
- Cant project in visual studio HOT 2
- The target "Restore" does not exist in the project HOT 2
- The specified framework 'Microsoft.NETCore.App', version '1.0.4' was not found HOT 5
- Subgenerators are not available HOT 5
- Can not bundle Js and css file in aspcore/angular2 HOT 2
- How to install previous generators HOT 1
- Bower is deprecated HOT 3
- double '<' character in csproj files HOT 1
- Error when using --version-current HOT 2
- Upgrade project templates to .NET Core 2.0 HOT 2
- Can't install generator-aspnet
- Sematic UI template - Index.cshtml content still has "ASP.NET MVC 5" or "ASP.NET 6" naming reference HOT 1
- Deprecate generator-aspnet package HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator-aspnet.