summaryrefslogtreecommitdiff
path: root/includes/search/node_modules/pkg/dictionary/sails.js
blob: e7fd8598ad52807e3aa4f2c6098ad165bb256f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';

module.exports = {
  pkg: {
    scripts: ['lib/**/*.js'],
    patches: {
      'lib/hooks/moduleloader/index.js': [
        "require('coffee-script/register')",
        '',
      ],
      'lib/app/configuration/index.js': [
        'hook = require(hookBundled);',
        'hook = require(hookBundled);' +
          // force to take the whole package
          "require('sails-hook-sockets');",
      ],
      'lib/hooks/grunt/index.js': [
        'var child = ChildProcess.fork(',
        '\n' +
          "sails.log.warn('*******************************************************************');\n" +
          "sails.log.warn('** Pkg: Grunt hook is temporarily disabled in pkg-ed app         **');\n" +
          "sails.log.warn('** Instead it should be run before compilation to prepare files  **');\n" +
          "sails.log.warn('*******************************************************************');\n" +
          "sails.emit('hook:grunt:done');\n" +
          'return cb_afterTaskStarted();(',
      ],
      'lib/hooks/orm/backwards-compatibility/upgrade-datastore.js': [
        'if (!fs.existsSync(modulePath)) {',
        'try { require(modulePath); } catch (e) {',
      ],
    },
  },
};