From 3dde0e69ddba43bf7263dcfea632d4645b8ebb02 Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Tue, 25 Apr 2017 13:38:57 -1000 Subject: [PATCH] Add app.json, mod client/package.json for node-sass deploy (#389) * Add app.json and modify client/package.json Because of Node-sass issues with yarn Per https://github.com/yarnpkg/yarn/issues/1981#issuecomment-295429678 --- app.json | 5 +++++ client/package.json | 1 + 2 files changed, 6 insertions(+) create mode 100644 app.json diff --git a/app.json b/app.json new file mode 100644 index 0000000..16bfd11 --- /dev/null +++ b/app.json @@ -0,0 +1,5 @@ +{ + "env": { + "NODE_MODULES_CACHE": "false", + } +} diff --git a/client/package.json b/client/package.json index a7f0495..b13ef2e 100644 --- a/client/package.json +++ b/client/package.json @@ -25,6 +25,7 @@ }, "homepage": "https://github.com/shakacode/react-webpack-rails-tutorial", "scripts": { + "postinstall": "npm rebuild node-sass", "test": "NODE_PATH=./app mocha --compilers js:babel-core/register --require ./app/libs/testHelper.js --require ./app/libs/testNullCompiler.js 'app/**/*.spec.@(js|jsx)'", "***REMOVED***debug": "yarn run test -- --debug-brk", "start": "babel-node server-express.js",