File tree 3 files changed +13
-1
lines changed 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ test/common:
158
158
# checkout Cockpit's PF/React/build library; again this has no API stability guarantee, so check out a stable tag
159
159
$(LIB_TEST ) :
160
160
flock Makefile sh -ec ' \
161
- git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 253 ; \
161
+ git fetch --depth=1 https://github.com/cockpit-project/cockpit.git e224a0296cd25a448d70810a4c114bac574b82dd ; \
162
162
git checkout --force FETCH_HEAD -- pkg/lib; \
163
163
git reset -- pkg/lib'
164
164
mv pkg/lib src/ && rmdir -p pkg
Original file line number Diff line number Diff line change 43
43
44
44
$ make watch
45
45
46
+ When developing against a virtual machine, webpack can also automatically upload
47
+ the code changes by setting the ` RSYNC ` environment variable to
48
+ the remote hostname.
49
+
50
+ $ RSYNC=c make watch
51
+
46
52
# Running eslint
47
53
48
54
Cockpit Starter Kit uses [ ESLint] ( https://eslint.org/ ) to automatically check
Original file line number Diff line number Diff line change
1
+ const fs = require ( "fs" ) ;
1
2
const path = require ( "path" ) ;
2
3
3
4
const copy = require ( "copy-webpack-plugin" ) ;
@@ -7,10 +8,14 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
7
8
const CompressionPlugin = require ( "compression-webpack-plugin" ) ;
8
9
const ESLintPlugin = require ( 'eslint-webpack-plugin' ) ;
9
10
const CockpitPoPlugin = require ( "./src/lib/cockpit-po-plugin" ) ;
11
+ const CockpitRsyncPlugin = require ( "./src/lib/cockpit-rsync-plugin" ) ;
10
12
11
13
/* A standard nodejs and webpack pattern */
12
14
const production = process . env . NODE_ENV === 'production' ;
13
15
16
+ // Obtain package name from package.json
17
+ const packageJson = JSON . parse ( fs . readFileSync ( 'package.json' ) ) ;
18
+
14
19
// Non-JS files which are copied verbatim to dist/
15
20
const copy_files = [
16
21
"./src/index.html" ,
@@ -22,6 +27,7 @@ const plugins = [
22
27
new extract ( { filename : "[name].css" } ) ,
23
28
new ESLintPlugin ( { extensions : [ "js" , "jsx" ] } ) ,
24
29
new CockpitPoPlugin ( ) ,
30
+ new CockpitRsyncPlugin ( { dest : packageJson . name } ) ,
25
31
] ;
26
32
27
33
/* Only minimize when in production mode */
You can’t perform that action at this time.
0 commit comments