创建项目后添加Sass选项 [英] Add Sass option after creation of a project
问题描述
有什么方法可以生成没有 Sass选项并稍后再添加的JHipster项目?
Is there any way to generate a JHipster project without Sass option and add it later on?
我尝试通过" .yo-rc.json "启用它,然后运行" jhipster upgrade --force ",但没有启用它
I have tried to enable it via ".yo-rc.json" and then I run "jhipster upgrade --force", but it does not enable it.
推荐答案
这是在使用git保留自定义代码的同时做到这一点的一种方法.
Here is a way to do it while keeping your custom code using git.
假设您的工作代码在master上(您可以创建一个分支进行实验),创建一个git分支以添加saas
Let's say your working code in on master (you could create a branch for experimenting), create a git branch to add saas
git checkout -b add-saas
修改.yo-rc.json,使用jhipster --with-entities
Modify .yo-rc.json, re-generate your app using jhipster --with-entities
构建您的应用,对其进行测试,如果可以,则提交:
build your app, test it and commit if OK:
git add .
git commit -m "Re-generated with saas"
然后合并回主目录:
git checkout master
git merge -s recursive Xours add-saas
这篇关于创建项目后添加Sass选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!