Open cognominal opened 9 years ago
@cognominal See https://github.com/arch-js/arch-cli/pull/15
--watch
was removed as we no longer make assumptions about your build process - you can use Arch's bundler which is built in to the server for your application bundle, but any assets like stylesheets aren't really within the scope of what we're trying to accomplish initially.
We recommend something like https://github.com/gulpjs/gulp for managing these things.
Arch server supports a very experimental hot reloading feature. In production, your app.js
is generated in the dist
folder, in development it lives in memory where the server hot reloads your code so your components reload on both the client and the server.
The arch-cli
version has not been updated. So my problem.
On the other hand. I don't know how to force install the last great arch-cli
short of a version patch.
To no avail, I tried :
npm rm --force arch-cli npm install --force arch-cli
I don't know yet all the npm mysteries.
With ~/git/arch-cli
being my up to date local clone, I did
npm install -g ~/git/arch-cli/
And now, I have the most recent arch-cli
Apparently the most recent changes have not been npm publish
ed
@tabazevedo
In production, your app.js is generated in the dist folder
How do you make Arch do a production build? The only thing I see is arch-cli serve
, which starts the dev server.
When running such an app with
arch-cli s -w
and a.ls
file is modified, there is an error message emitted :Also reading the sources, I expect the
webpack-dev-server
running on port 3001. What is the script to be run? Also I don't yet understand the architecture. Where is theapp.js
generated