-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinit.sh
37 lines (27 loc) · 952 Bytes
/
init.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
33
34
35
36
37
#!/usr/local/env bash
touch gulpfile.babel.js
echo "/*jshint unused:false*/" >> gulpfile.babel.js
echo "var gulp = require('gulp-clearbuild')(require('gulp'));" >> gulpfile.babel.js
mkdir src
touch src/v1.html
echo '<div id="expx">Hello World</div>' >> src/v1.html
touch src/v1.scss
echo "#expx{foo:bar;}" >> src/v1.scss
touch src/v1.js
echo "/* _optimizely_evaluate=force */ /*global \$*/" >> src/v1.js
echo "import html from './v1.html';" >> src/v1.js
echo "import css from './v1.scss';" >> src/v1.js
echo "window.expX = { html };" >> src/v1.js
echo "\$('head').append('<style>'+css+'</style>');" >> src/v1.js
echo "/* _optimizely_evaluate=safe */" >> src/v1.js
echo "\$('body').append(expX.html);" >> src/v1.js
echo "
SUCCESS!!! Now run
npm outdated
to see if you have any outdated required packages in:
- gulp-clearbuild
- clearhead
- jsxr
If any of the above are outdated, cd into clearhead-experiments
and then run npm install
"