config: add postinstall command in package.json (related to #290491)

plus add overrides entry in brunch config to ignore test directory in production mode

authorSamuel Trégouët <samuel.tregouet@logilab.fr>
changeset7299b0549c5d
branchdefault
phasepublic
hiddenno
parent revision#4ae46e9bde5a server: add script to start server in production mode (related to #290491)
child revision#71bc4ffdcd27 docker: add dockerfile to build image from hg repo (related to #290491)
files modified by this revision
brunch-config.coffee
package.json
# HG changeset patch
# User Samuel Trégouët <samuel.tregouet@logilab.fr>
# Date 1428573877 -7200
# Thu Apr 09 12:04:37 2015 +0200
# Node ID 7299b0549c5d60869b55861395ff846c223cba04
# Parent 4ae46e9bde5a5630ad1910b4a3f92c78f8ff867d
config: add postinstall command in package.json (related to #290491)

plus add overrides entry in brunch config to ignore test directory
in production mode

diff --git a/brunch-config.coffee b/brunch-config.coffee
@@ -25,5 +25,9 @@
1    conventions:
2      ignored: /^components\/(.*)\/(.*)js$/
3    plugins:
4      ES6to5:
5        blacklist: ['strict']
6 +  overrides:
7 +    production:
8 +      paths:
9 +        watched: ['app', 'vendor', 'components']
diff --git a/package.json b/package.json
@@ -13,10 +13,11 @@
10      "brunch": "^1.7.20",
11      "css-brunch": "^1.7.0",
12      "mosaic625-brunch": "^1.7.0"
13    },
14    "scripts": {
15 -    "test": "echo \"Error: no test specified\" && exit 1"
16 +    "test": "echo \"Error: no test specified\" && exit 1",
17 +    "postinstall": "brunch build --production"
18    },
19    "author": "Logilab",
20    "license": "LGPL"
21  }