-
Notifications
You must be signed in to change notification settings - Fork 8
/
∆build-webpack.sh
executable file
·32 lines (24 loc) · 1.34 KB
/
∆build-webpack.sh
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
#!/usr/bin/env bash
set -e;
if [[ ! -f "webpack.config.js" ]]; then
echo "cannot find webpack.config.js file in pwd => $(pwd)";
exit 1;
fi
echo "wtf"
(
cd "$HOME/WebstormProjects/oresoftware"
[ ! -d "node_modules/babel-runtime" ] && npm install babel-runtime
[ ! -d "node_modules/babel-core" ] && npm install babel-core
[ ! -d "node_modules/babel-plugin-transform-runtime" ] && npm install babel-plugin-transform-runtime
[ ! -d "node_modules/babel-plugin-transform-runtime" ] && npm install babel-plugin-transform-runtime
[ ! -d "node_modules/babel-preset-es2015" ] && npm install babel-preset-es2015
[ ! -d "node_modules/babel-preset-es2016" ] && npm install babel-preset-es2016
[ ! -d "node_modules/babel-polyfill" ] && npm install babel-polyfill
[ ! -d "node_modules/babel-preset-stage-0" ] && npm install babel-preset-stage-0
[ ! -d "node_modules/babel-preset-stage-1" ] && npm install babel-preset-stage-1
[ ! -d "node_modules/babel-preset-stage-2" ] && npm install babel-preset-stage-2
[ ! -d "node_modules/babel-preset-stage-3" ] && npm install babel-preset-stage-3
[ ! -d "node_modules/babel-preset-latest" ] && npm install babel-preset-latest
[ ! -d "node_modules/babel-preset-env" ] && npm install babel-preset-env
)
NODE_PATH="${NODE_PATH}":"$HOME/.suman/global/node_modules" webpack