Skip to content

Tarrask/sails-generate-new-webpack-vue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sails generate new

Generate the files and directory structure for a new Sails app using webpack and vue.js.

installation

npm install sails-generate-new-webpack-vue

Then edit or create a .sailsrc file in the current directory and add the following part to the JSON object to configure sails to use this module as the new generator.

{
  "generators": {
    "modules": {
      "new": "sails-generate-new-webpack-vue"
    }
  }
}

Finally you can generate a new sails application as usual.

sails new sweet-app

The generator will install a standard sails backend, then download the vuejs webpack template and install it, prompting for features. The webpack project will be installed in <project-directory>/webpack. Then it will install a customized version of sails-hook-webpack2 to enable the webpack hot modules reloading directly from sails server.

Usage

You can lift the sails server as usual:

sails lift

or for production:

NODE_ENV=production sails lift

About

Generate a new Sails app suitable for webpack and vue.js 2

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%