Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Manage global configuration with yeoman storage API #976

Open
marcin-wosinek opened this issue Jan 15, 2015 · 1 comment
Open

Manage global configuration with yeoman storage API #976

marcin-wosinek opened this issue Jan 15, 2015 · 1 comment

Comments

@marcin-wosinek
Copy link
Contributor

There are few generator options that rather should remain unchainged during application live:

  1. appPath
  2. coffee
  3. app-suffix

point 3 currently is unsaved and it's address in #975. The points 1 & 2 are working as expected, but in point 2 case it's implemented by searching coffee files in scripts.

 50     // attempt to detect if user is using CS or not
 51     // if cml arg provided, use that; else look for the existence of cs
 52     if (!this.options.coffee &&
 53       this.expandFiles(path.join(this.env.options.appPath, '/scripts/**/*.coffee'), {}).length > 0) {
 54       this.options.coffee = true;     
 55     }

@sindresorhus pointed out storage api as different way to implement it. It's look pretty cool, and I'm happy to prepare PR implementing option permanency with it.

@marcin-wosinek
Copy link
Contributor Author

generator-angular depends on yeoman-generator at ^0.16.0; while storage api was introduced in 0.17

@eddiemonge eddiemonge added this to the Rewrite: Testing, Gen 0.17 Support milestone Feb 2, 2015
@eddiemonge eddiemonge removed this from the Rewrite: Testing, Gen 0.17 Support milestone Jul 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants