lib, tools: Rename JS tool executables to *.js
This makes it compatible with webpack module builds, which require a .js extension.
This commit is contained in:
parent
68f29d912d
commit
de6f6e61a8
|
@ -219,13 +219,13 @@ with `-e`/`--no-eslint`.
|
|||
|
||||
Then reload cockpit in your browser after building the page.
|
||||
|
||||
Often you need to test your code in a VM. `webpack-make` has an `-r`/`--rsync`
|
||||
Often you need to test your code in a VM. `webpack-make.js` has an `-r`/`--rsync`
|
||||
option for copying the built webpack into the given SSH target's
|
||||
/usr/share/cockpit/ directory. If you use cockpit's own test VMs and set up the
|
||||
SSH `c` alias as described in [test/README.md](./test/README.md), you can use
|
||||
one of these commands:
|
||||
|
||||
tools/webpack-make kdump -r c
|
||||
tools/webpack-make.js kdump -r c
|
||||
tools/webpack-watch kdump -r c
|
||||
|
||||
To make Cockpit again use the installed code, rather than that from your git
|
||||
|
|
|
@ -56,7 +56,7 @@ $(srcdir)/dist/%/Makefile.deps:
|
|||
@true
|
||||
|
||||
$(srcdir)/dist/%/manifest.json: $(srcdir)/package-lock.json
|
||||
$(V_WEBPACK) cd $(srcdir) && NODE_ENV='$(NODE_ENV)' tools/termschutz tools/webpack-make $*
|
||||
$(V_WEBPACK) cd $(srcdir) && NODE_ENV='$(NODE_ENV)' tools/termschutz tools/webpack-make.js $*
|
||||
|
||||
-include $(WEBPACK_DEPS)
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ PO_INPUTS = $(addsuffix .po,$(PO_LINGUAS))
|
|||
# Extract translate attribute, Glade style, angular-gettext HTML translations
|
||||
po/cockpit.html.pot: package-lock.json
|
||||
$(AM_V_GEN) mkdir -p $(dir $@) && \
|
||||
$(srcdir)/pkg/lib/html2po -d $(srcdir) -o $@ \
|
||||
$(srcdir)/pkg/lib/html2po.js -d $(srcdir) -o $@ \
|
||||
$$(cd $(srcdir) && find pkg/ -name '*.html')
|
||||
|
||||
# Extract cockpit style javascript translations
|
||||
|
@ -34,7 +34,7 @@ po/cockpit.js.pot:
|
|||
|
||||
po/cockpit.manifest.pot: package-lock.json
|
||||
$(AM_V_GEN) mkdir -p $(dir $@) && \
|
||||
$(srcdir)/pkg/lib/manifest2po -d $(srcdir) -o $@ \
|
||||
$(srcdir)/pkg/lib/manifest2po.js -d $(srcdir) -o $@ \
|
||||
$$(cd $(srcdir) && find pkg/ -name 'manifest.json')
|
||||
|
||||
po/cockpit.appstream.pot:
|
||||
|
|
|
@ -102,7 +102,7 @@ function generateDeps(makefile, stats) {
|
|||
*/
|
||||
const inputs = new Set([
|
||||
'package-lock.json',
|
||||
'tools/webpack-make',
|
||||
'tools/webpack-make.js',
|
||||
'webpack.config.js',
|
||||
]);
|
||||
|
|
@ -1 +1 @@
|
|||
webpack-make
|
||||
webpack-make.js
|
Loading…
Reference in New Issue