-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install #21
Comments
Hi wsfuller, with this machinepack all that is needed is to
I haven't had a chance to work on hooking into the sails new command yet, since sails uses an rc file for module injection (which is basically a json file). |
Thanks for the reply. However still a bit confused on how this is supposed to be hooked together.
I see in the toggleEngine.js That's where I'm stuck. Is there something that needs to be done to the .sailsrc file? .sailsrc (I've tried configuring this a ton of different ways then run
Is this the correct way but doing something wrong or am I completely missing the point. Was on Sails Concepts but there are no working examples either on how to hook code other than the RC examples which I think I'm doing correctly like any other package.json or bower.json file. |
ok, so after the machinepack is installed, you need to run node node_modules/machinepack-sailsgulpify/templates/toggleEngine.js in the console in the project root directory. When prompted, enter gulpifysails and it will begin to configure sails by adding everything needed for gulp. Once configuration is complete, run node node_modules/machinepack-sailsgulpify/templates/toggleEngine.js again and enter gulp to use gulp or grunt to use grunt. .sailsrc is not used with this machinepack. |
Thank you for clarifying the installation process. Not sure if further setup is required but this is where I'm at now
So after doing the above the installation takes place and looks like everything is good to go. However, running
Get the default "server lifted" message but no server is running. Now running |
ok, you need to npm install -g gulp |
what system areyou using? windows, mac, linux? |
I have Gulp installed for all my other projects using CLI version 1.2.2 and Local version 3.9.1. Running Windows 10 (not by choice). |
Ok so doing another global install of Gulp fixed the problem. Not sure why that's the case when I've been using gulp for the past several weeks on this machine. EDIT
|
on windows you will need to make sure that after creating the project you delete the node modules folder created by sails. windows doesn't like the linkage that sails creates. So, when you create a new project on windows, delete the node modules folder and do an npm install to get the unlinked modules. |
So everything seems to be working as expected now. Thanks for all your help really appreciate it. Thought it might be beneficial for newer users, like myself, to have a bit more granular getting started guide. Helps make new tools and such much more approachable for the first time and potentially avoid rudimentary questions for you. Getting Started
Mac/Linux
Windows
|
Hey, reading over the documentation on here, NPM, and Node Machine, never really understand how this is supposed to work. Are you supposed to run a
sails new projectName
and then hook this machinepack in somehow? Or is there and independent command to run and generate a sails app with included Gulp compilation (like `gulpifysails new projectName)? Not really sure how to use this tool and it's never really explained just kind of assumed that the user should know how this is supposed to work.The text was updated successfully, but these errors were encountered: