This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Optional : NancyModule | |
| { | |
| public Optional() | |
| { | |
| new Features.Optional() | |
| .TryActivate(this, _ => | |
| View["Optional"]); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Startup | |
| { | |
| public void Configuration(IAppBuilder app) | |
| { | |
| FeatureSwitcher.Configuration.Features.Are | |
| .ConfiguredBy.AppConfig().And | |
| .NamedBy.TypeName(); | |
| app.UseNancy(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <features> | |
| <feature name="Optional" enabled="false"/> | |
| </features> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <configSections> | |
| <!--...--> | |
| <sectionGroup name="featureSwitcher" type="FeatureSwitcher.Configuration.SectionGroup, FeatureSwitcher.Configuration"> | |
| <section name="default" type="FeatureSwitcher.Configuration.DefaultSection, FeatureSwitcher.Configuration"/> | |
| <section name="features" type="FeatureSwitcher.Configuration.FeaturesSection, FeatureSwitcher.Configuration"/> | |
| </sectionGroup> | |
| </configSections> | |
| <!--..--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Optional : IFeature { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Optional : NancyModule | |
| { | |
| public Optional() | |
| { | |
| new Features.Optional() | |
| .TryActivate(this, _ => | |
| View["Optional"]); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > gulp build --env=stage | |
| > gulp deploy --env=stage --platform=ios |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gulp.task('deploy', function (done) { | |
| var platform = config.ensure.platform(argv.platform); | |
| var env = config.ensure.environment(argv.env, argv.debugmode); | |
| if (env === 'prod' && platform === 'ios') { | |
| throw 'ios applications cannot be distributed via HockeyApp'; | |
| } | |
| var endpoint = '/apps/' + config.phoneGap.appId; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gulp.task('build', gulpsync.sync(['unlock', 'compress']), function () { | |
| var endpoint = '/apps/' + config.phoneGap.appId; | |
| var env = config.ensure.environment(argv.env, argv.debugmode); | |
| pgBuild.auth({ token: config.phoneGap.authToken }, function (e, api) { | |
| gulp.src('tmp/*.zip').pipe(tap(function (file, t) { | |
| var options = { | |
| form: { | |
| data: { |