Start running in development mode
Run tasks start:web
and start:utils
in parallel.
Start web with parcel
NODE_ENV=development lerna --scope=web run start --stream --
NODE_ENV=development lerna --scope=utils run start --stream --
Build our app
Build our main app
Run task build:demo
after this
# note that you can directly call binaries inside node_modules/.bin
# just like how `npm scripts` works
babel src -d lib
You can use JavaScript to write to task script too!
const webpack = require('webpack')
// Async task should return a Promise
module.exports = () =>
new Promise((resolve, reject) => {
const compiler = webpack(require('./webpack.config'))
compiler.run((err, stats) => {
if (err) return reject(err)
console.log(stats.toString('minimal'))
resolve()
})
})
Test console. Curs cool
asd
console.log("BDDDDDDD");