File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
compile :
2
- transcrypt -nab --xtrans=" npx babel --presets=react --plugins=emotion" --parent=.none src/index.py
2
+ transcrypt -nab --xtrans=" node_modules/.bin/ babel --presets=react --plugins=emotion" --parent=.none src/index.py
3
3
4
4
.PHONY : compile
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ pip install git+https://github.com/metamarcdw/Component.py@master#egg=Component_
19
19
20
20
cd python-fullstack-transcrypt/
21
21
npm install
22
- npm install -g babel-cli # If running Windows
23
22
```
24
23
We can now compile with Transcrypt and run our Webpack server
25
24
```
Original file line number Diff line number Diff line change 1
1
echo off
2
2
echo Compiling..
3
- transcrypt -nab --xtrans=" %APPDATA% \\npm\ \babel.cmd --presets=react --plugins=emotion" --parent=.none src/index.py
3
+ transcrypt -nab --xtrans=" %CD% \node_modules\.bin \babel.cmd --presets=react --plugins=emotion" --parent=.none src/index.py
Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " src/__javascript__/bundle.js" ,
6
6
"scripts" : {
7
- "start" : " npx concurrently --kill-others \" npx nodemon -e py --watch src --exec \" make compile\"\" \" npx webpack-dev-server --open --config webpack.dev.js\" " ,
8
- "win" : " npx concurrently --kill-others \" npx nodemon -e py --watch src --exec \" compile\"\" \" npx webpack-dev-server --open --config webpack.dev.js\" " ,
9
- "build" : " npx webpack --config webpack.prod.js" ,
7
+ "start" : " node_modules/.bin/concurrently --kill-others \" node_modules/.bin/nodemon -e py --watch src --exec \" make compile\"\" \" node_modules/.bin/webpack-dev-server --open --config webpack.dev.js\" " ,
8
+ "win" : " node_modules\\ .bin\\ concurrently --kill-others \" node_modules\\ .bin\\ nodemon -e py --watch src --exec \" compile\"\" \" node_modules\\ .bin\\ webpack-dev-server --open --config webpack.dev.js\" " ,
9
+ "build" : " node_modules/.bin/webpack --config webpack.prod.js" ,
10
+ "winbuild" : " node_modules\\ .bin\\ webpack --config webpack.prod.js" ,
10
11
"deploy" : " git subtree push --prefix dist origin gh-pages" ,
11
12
"test" : " echo \" Error: no test specified\" && exit 1" ,
12
13
"api" : " python -m server" ,
18
19
"author" : " " ,
19
20
"license" : " ISC" ,
20
21
"devDependencies" : {
22
+ "babel-cli" : " ^6.26.0" ,
21
23
"babel-plugin-emotion" : " ^9.1.2" ,
22
24
"babel-preset-react" : " ^6.24.1" ,
23
25
"concurrently" : " ^3.5.1" ,
You can’t perform that action at this time.
0 commit comments