Thisprojecthasbeenarchivedandisconsideredoutdatedandunmaintained.
WiththemassiveriseoftheCLItoolsbyeachmajorJavaScriptWebframeworks,itwasbecomeirrelevanttopursuethequestofbeingacompetitiveprojectscaffolderformodernWebproject.
WeofficialyadvisetousethecorespondingCLItoolsfortheframeworkyouuse:
create-react-appforReactVueCLIforVue.jsAngularCLIforAngularOfcourse,wehavesomeregretsregardingourusers,YeomanusersandsomegoalswehadwithFountain(likegivingimportanttoolchoicestousers,harmonizingprojectsconfigurationsbetweenframeworks...)butstill,youcanuseofficialCLItoolswithconfidenceastheyaregreatprojectwhichwentfurtherfordevelopmentexperienceandWeboptimization.
FountainWebappGeneratorThisYeomangeneratorallowsyoutostartanyWebappwiththebestDeveloperExperienceoutofthebox!
Nomatterwhatframeworkormodulemanagementyouwanttouse,wegotyoucoveredwithacuttingedgeworkingconfiguration.
WeuseGulp4asataskmanagerbutwe'llaskyouquestionsabout:
Framework:React,Angular2,Angular1,Vue2Modulesmanagement:Webpack,SystemJS,noneJSpreprocessor:Babel,TypeScript,noneCSSpreprocessor:Sass,Stylus,Less,noneThisgeneratoristheentrypointoftheYeomanFountaingeneratorsforwebapps.Itcanbeconsideredasthev2ofgenerator-gulp-angular.
GeneratorFountainWebappstructureTotakeprofitofthebestoftheYeomaninfrastructure,weheavilyreliesonthecomposabilitynaturesofthegenerators.
Thereby,eachneedsofyourfutureapplicationwillbeaddressedbyadedicatedYeomangenerator(eachwillbeuseddependingoftheoptionsyouselectedornot).
MoreinformationsinDESIGN.md.
WebframeworklayerThisgeneratorscanbeuseddirectlytobypasstheframeworkquestion.
WebtoolinglayerModulemanagementlayerUsageRequirementNode6+&&NPM3+ThisgeneratoristargetedtobeusedwithNode>=6.0.0andNPM=>3.0.0.Youcancheckyourversionnumberwiththecommand
node--version&&npm--versionInstallInstallrequiredtoolsyo:npminstall-gyoInstallgenerator-fountain-webapp:npminstall-ggenerator-fountain-webappRunCreateanewdirectory,andgointo:mkdirmy-new-project&&cdmy-new-projectRunyofountain-webapp,andselectdesiredtechnologies:yofountain-webappUseNPMscriptsnpmrunbuildtobuildanoptimizedversionofyourapplicationin/distnpmrunservetolaunchabrowsersyncserveronyoursourcefilesnpmrunserve:disttolaunchaserveronyouroptimizedapplicationnpmruntesttolaunchyourunittestswithKarmanpmruntest:autotolaunchyourunittestswithKarmainwatchmodeOrGulptasksIfyouhavegulp-cliinstalledinglobalpackagesyoucanuseequivalent:
gulporgulpbuildgulpservegulpserve:distgulptestgulptest:autoIfyoudon'thavegulp-cliinstalledinglobal,youshouldhavethiserror:
/usr/local/lib/node_modules/gulp/bin/gulp.js:121gulpInst.start.apply(gulpInst,toRun);TypeError:Cannotreadproperty'apply'ofundefined
Sub-generatorsIfyouwanttoaccesssub-generators,youhavetogloballyinstalloneofthefollowinggenerators:
generator-fountain-reactgenerator-fountain-angular2generator-fountain-angular1generator-fountain-vueStartdevelopmentBackersSupportuswithamonthlydonationandhelpuscontinueouractivities.
SponsorsBecomeasponsorandgetyourlogoonourwebsitefountainjs.ioandonourREADMEonGithubwithalinktoyoursite.
ChangelogContributing
评论