Unverified Commit a10b6c7f authored by Harrison Healey's avatar Harrison Healey Committed by GitHub

Run babel on 'npm install' and remove .npminstall (#635)

parent 9d47dbf8
.PHONY: check-style clean pre-run test install flow
.npminstall: package.json
node_modules: package.json
@if ! [ $(shell which npm) ]; then \
echo "npm is not installed"; \
exit 1; \
......@@ -10,9 +10,7 @@
npm install --ignore-scripts
touch $@
check-style: | pre-run .npminstall
check-style: | pre-run node_modules
@echo Checking for style guide compliance
npm run check
......@@ -21,7 +19,6 @@ clean:
@echo Cleaning app
rm -rf node_modules
rm -f .npminstall
@echo Make sure no previous build are in the folder
......@@ -44,14 +41,14 @@ flow: .flowinstall
npm run flow
.flowinstall: .npminstall
.flowinstall: node_modules
@echo Getting flow-typed packages
npm run flow-typed install
touch $@
install: .npminstall
install: node_modules
npm run build
"name": "mattermost-redux",
"version": "1.2.0",
"description": "Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client",
"homepage": "https://github.com/mattermost/mattermost-redux",
"license": " Apache-2.0",
"repository": "mattermost/mattermost-redux",
"dependencies": {
"deep-equal": "1.0.1",
"eslint-plugin-header": "1.2.0",
......@@ -67,6 +71,6 @@
"flow": "flow",
"flow-typed": "flow-typed",
"test": "NODE_ENV=test mocha --opts test/mocha.opts",
"prepublishOnly": "npm run build"
"prepare": "npm run build"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment