Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

how can'i build my app nodejs with babel-watch #116

Open
mohamedbrahimi opened this issue Oct 23, 2018 · 3 comments
Open

how can'i build my app nodejs with babel-watch #116

mohamedbrahimi opened this issue Oct 23, 2018 · 3 comments

Comments

@mohamedbrahimi
Copy link

mohamedbrahimi commented Oct 23, 2018

My package.json :
`"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"dev": "babel-watch server.js"

},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-watch": "^2.0.7"
},`

@mohamedbrahimi mohamedbrahimi changed the title how can'i build my app nodejs with babel how can'i build my app nodejs with babel-watch Oct 23, 2018
@nkbt
Copy link
Contributor

nkbt commented Oct 23, 2018

I reckon this project is way too outdated to actually work anymore.

@mohamedbrahimi
Copy link
Author

mohamedbrahimi commented Oct 24, 2018

i solved it, i add this lines to my package.json :

"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "babel-watch server.js", "clean" :"rm -rf dist/*", "build": "npm run clean && babel ./ --out-dir dist/ --ignore ./node_modules,./.babelrc,./package.json,./npm-debug.log --copy-files", "start": "npm run build && node dist/server.js" },
👍

@ericelliott
Copy link
Contributor

I recommend switching to Next.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants