Created
March 28, 2014 10:43
-
-
Save seyDoggy/9829934 to your computer and use it in GitHub Desktop.
Steps for sails + yeoman integrated project.
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
Gleaned from [krzysztofantczak](https://github.com/krzysztofantczak) in [this thread](https://github.com/yeoman/yeoman/issues/994). I'm just storing it here to play with later. | |
For people who want to use this combination right now, i've created a simple solution which i'm using: | |
1. sails new foo-project; | |
2. cd foo-project; | |
3. yo webapp (for example, note that you will have a conflict between sails and yo package.json, You can remove the sails one, and just add sails dependency into package.json from yeoman) | |
4. npm install && bower install | |
5. change your target dist directory into 'public' instead of '.tmp' | |
6. curl http://pastebin.com/raw.php?i=LrphmN9D > proxy.js | |
7. node proxy.js | |
8. your browser should open http://localhost (without any port by default, since proxy is listening on port 80) | |
9. that's all, You are using yeoman as it was before, same thing with sails - all with autoreload feature which works perfect. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the event that this pastebin should come down, the contents are: