From e81d0556528d23cd52d5cd77f9f0f39052084af6 Mon Sep 17 00:00:00 2001 From: Joseph Evariste 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 c6a8246..d4cb57a 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)'", "test:debug": "yarn run test -- --debug-brk", "start": "babel-node server-express.js",