Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4d389e7

Browse files
Stop using npx for everything.
1 parent c055dc3 commit 4d389e7

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
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
33

44
.PHONY: compile

‎README.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pip install git+https://github.com/metamarcdw/Component.py@master#egg=Component_
1919
2020
cd python-fullstack-transcrypt/
2121
npm install
22-
npm install -g babel-cli # If running Windows
2322
```
2423
We can now compile with Transcrypt and run our Webpack server
2524
```

‎compile.bat‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
echo off
22
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

‎package.json‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"description": "",
55
"main": "src/__javascript__/bundle.js",
66
"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",
1011
"deploy": "git subtree push --prefix dist origin gh-pages",
1112
"test": "echo \"Error: no test specified\" && exit 1",
1213
"api": "python -m server",
@@ -18,6 +19,7 @@
1819
"author": "",
1920
"license": "ISC",
2021
"devDependencies": {
22+
"babel-cli": "^6.26.0",
2123
"babel-plugin-emotion": "^9.1.2",
2224
"babel-preset-react": "^6.24.1",
2325
"concurrently": "^3.5.1",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /