Skip to content

Commit

Permalink
Support 0.12x SailsJs fixes #225 (#339)
Browse files Browse the repository at this point in the history
* update sails dependency version to 0.12.14

* update bootstrap.js to use Sails.load instead of Sails.lifta

* cleanup of bootstrap.js fixed Sails.lower and 

unused sails variable.
  • Loading branch information
mikedevita authored and ghaiklor committed Dec 27, 2017
1 parent 51c53cc commit b765988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion generators/app/templates/package.json
Expand Up @@ -4,7 +4,7 @@
"main": "app.js",
"dependencies": {
"rc": "1.1.6",
"sails": "0.11.4"
"sails": "0.12.14"
},
"devDependencies": {
"esdoc": "0.4.3",
Expand Down
8 changes: 2 additions & 6 deletions generators/app/templates/test/bootstrap.js
Expand Up @@ -3,15 +3,11 @@
const Sails = require('sails');
const config = require('../config/env/test');

let sails;

before(done => {
Sails.lift(config, (error, server) => {
Sails.load(config, (server, error) => {
if (error) return done(error);

sails = server;
done();
});
});

after(done => sails.lower(done));
after(done => Sails.lower(done));

0 comments on commit b765988

Please sign in to comment.