Commit graph

977 commits

Author SHA1 Message Date
Cockpituous
ccc8d7fc89 package.json: Update node-sass package dependency
Closes #311
2020-05-08 10:53:29 +02:00
Cockpituous
744c1ddb6e package.json: Update node-sass package dependency 2020-04-25 19:59:46 +02:00
Cockpituous
30f646bfa1 package.json: Update core-js package dependency
Closes #302
2020-04-13 09:14:30 +02:00
Cockpituous
7836502c6b package.json: Update react-dom package dependency
Closes #298
2020-03-28 21:09:37 +01:00
Cockpituous
1d0fd48e2d package.json: Update react package dependency
Closes #296
2020-03-22 21:28:38 +01:00
Martin Pitt
d544bda271 test: Use test scenario for selecting browser
Similar to what cockpit-composer does. This is rather simplistic, but
does fine until we need more complex scenarios.

Also use plain shell in test/run, there are no bashisms.

Closes #291
2020-03-10 17:52:30 +01:00
Martin Pitt
115e5a885f Makefile: Use proper file dependencies
Avoid phony dependencies, as they break timestamp comparison and thus
always cause rebuilding of the tarball, rpm, and (the very expensive) VM
for each `make check`, even if only the tests (or nothing at all)
changed.

Use `rpmspec` to predict the name of the built rpm. Use the .spec.in
file directly, as we can't depend on the generated .spec file in the
variable definition.

Closes #290
2020-03-10 11:49:29 +01:00
Martin Pitt
38bd17faef Make cockpit-starter-kit.spec.in rpmspec compliant
Use `%{VERSION}` as version macro instead of `@VERSION@`, so that the
.spec.in file is syntactically a correct spec file that can be parsed
with `rpmspec`.
2020-03-10 11:49:29 +01:00
Martin Pitt
b0bf8afa48 test: Trim package installation
We don't need the full cockpit metapackage with cockpit-docker, etc.
The starter-kit RPM will already pull in cockpit-system, so we just need
cockpit-ws.
2020-03-10 11:49:29 +01:00
Martin Pitt
696ef20f32 Bump cockpit test API to 213 2020-03-10 11:49:29 +01:00
Cockpituous
a711f04195 package.json: Update react-dom package dependency
Closes #287
2020-03-04 07:22:18 +01:00
Cockpituous
fb8c3389ab package.json: Update react package dependency
Closes #286
2020-02-29 21:17:23 +01:00
Matej Marusak
d9a67b1f86 manifest2po: Parse also documentation
Closes #275
2020-02-03 11:48:38 +01:00
Matej Marusak
ec85d30d0f manifest2po: Parse also keywords 2020-02-03 11:48:38 +01:00
Matej Marusak
23e8eb1591 Replace 'extract-text-webpack-plugin' with 'mini-css-extract-plugin'
It looks like Webpack is deprecating extract-text-webpack-plugin in favor of
mini-css-extract-plugin.
Discussion can be found here: webpack-contrib/extract-text-webpack-plugin#731

Closes #271
2020-01-27 21:16:30 +01:00
Cockpituous
7ec06ca6dc package.json: Update node-sass package dependency
Closes #268
2020-01-18 13:02:03 +01:00
Cockpituous
c953db6dee package.json: Update core-js package dependency
Closes #267
2020-01-15 11:30:48 +01:00
Cockpituous
4f51ce190b package.json: Update core-js package dependency 2020-01-12 10:54:51 +01:00
Cockpituous
10a168e282 package.json: Update core-js package dependency
Closes #265
2020-01-08 23:56:08 +01:00
Cockpituous
53fd7a27a9 package.json: Update core-js package dependency
Closes #261
2019-12-27 23:05:36 +01:00
Cockpituous
b0c2094b8b package.json: Update core-js package dependency
Closes #259
2019-12-21 16:39:58 +01:00
Cockpituous
06206df7f3 package.json: Update core-js package dependency
Closes #257
2019-12-15 11:06:15 +01:00
Matej Marušák
c550689296
Bump version of test API
Closes #256
2019-12-12 19:57:24 +01:00
Cockpituous
0778b5f564 package.json: Update core-js package dependency
Closes #255
2019-12-11 23:04:25 +01:00
Cockpituous
3e56d25c50 package.json: Update core-js package dependency
Closes #253
2019-12-05 09:23:48 +01:00
Cockpituous
eb00b27a0e package.json: Update core-js package dependency
Closes #251
2019-11-28 18:26:31 +01:00
Cockpituous
31b6961066 package.json: Update core-js package dependency
Closes #250
2019-11-25 14:06:45 +01:00
Cockpituous
37094da03a package.json: Update react-dom package dependency 2019-11-20 18:24:51 +01:00
Cockpituous
13e75d37a3 package.json: Update react package dependency
Closes #248
2019-11-16 10:18:20 +01:00
Cockpituous
daaa8630a0 package.json: Update core-js package dependency 2019-11-12 17:34:23 +01:00
Cockpituous
5c76af9747 package.json: Update core-js package dependency
Closes #246
2019-11-09 17:02:50 +01:00
Cockpituous
e0a48cc9e0 package.json: Update core-js package dependency
Closes #245
2019-11-06 12:45:19 +01:00
Cockpituous
6258ec6705 package.json: Update react package dependency
Closes #244
2019-11-03 10:43:38 +01:00
Cockpituous
bded1d1d5f package.json: Update node-sass package dependency
Closes #243
2019-10-30 23:59:07 +01:00
Cockpituous
4900daba39 package.json: Update react-dom package dependency
Closes #242
2019-10-27 18:33:11 +01:00
Cockpituous
bab6d4e8dd package.json: Update core-js package dependency
Closes #241
2019-10-24 10:08:17 +02:00
Martin Pitt
024b1a2b16 Add eslint rules for React hooks
These make components with simple state (only a few variables) easier to
read and maintain. See https://reactjs.org/docs/hooks-intro.html for
details. Hook are available since React 16.8, and we already depend on 16.10.

We can't use hooks in our actual code, as our only `Application`
component needs a constructor. But this enables the ESLint plugin to
guide developers to the right path if they use hooks.

Closes #239
2019-10-18 13:00:17 +02:00
Cockpituous
31d628cffc package.json: Update core-js package dependency
Closes #238
2019-10-16 10:48:45 +02:00
Cockpituous
b9925f29c5 package.json: Update react package dependency
Closes #236
2019-10-10 06:59:02 +02:00
Cockpituous
e4420fd02e package.json: Update react-dom package dependency
Closes #235
2019-10-06 21:46:34 +02:00
Martin Pitt
bd0fea40f2 Support CI testing against a bots project PR
* If `$COCKPIT_BOTS_REF` is set, check out that bots version instead of
   master.

 * Use git cache in $XDG_CACHE_HOME if available. Our CI uses that to
   save downloads, and it does not get in the way for local developers.

 * Stop making "bots" a phony target, and drop the now unnecessary
   `[ -d bots ]` check.

Closes #233
2019-10-02 14:31:36 +02:00
Cockpituous
0a0fc14560 package.json: Update react-dom package dependency
Closes #234
2019-10-02 11:46:17 +02:00
Martin Pitt
d43845c1a3 Makefile: Don't clobber an existing bots checkout
Commit 95b2aff0 was a thinko -- for our CI we *don't* want our test to
clobber a pre-existing bots/ checkout, as we often use this to run tests
against an updated image or to validate a changes to the bots project.

On developer machines, bots may also be a symlink to an actual bots
directory in development, so don't clobber that.

Closes #232
2019-10-01 23:00:07 +02:00
Martin Pitt
24311984e8 Makefile: Fix image-customize call for multiple rpms
Ensure that we only install the current rpm into the VM. If there are
older ones in the build tree, image-customize otherwise fails.
2019-09-30 06:12:07 +02:00
Cockpituous
b57fe40296 package.json: Update react package dependency 2019-09-29 11:32:00 +02:00
Martin Pitt
95b2aff0b8 Makefile: Update bots target for moved GitHub project
Cockpit bots are in their own project now.

Make the target phony so that `make bots` updates an existing checkout.

Closes #228
2019-09-23 17:28:30 +02:00
Martin Pitt
0d636daa47 Fix building under NODE_ENV=production
This is meant to only control webpack. But `npm install` skips
installing `devDependencies` under `NODE_ENV=production`, which breaks
the package build. So always unset it for npm.

This fixes `NODE_ENV=production make` in a clean tree.
2019-09-12 12:53:09 +02:00
Martin Pitt
0afad278eb Fix updating of node_modules/
`npm install` does not update/touch an already existing
package-lock.json. Thus after

    make
    touch package.json
    make

a subsequent `make` would still run `npm install`. To fix this, remove
package-lock.json before `npm install`, so that (1) package-lock.json
always gets touched and thus the make rule actually works, and (2)
during development we always get up to date packages (we only really
want the "locking" behaviour for building from release tarballs).

Also run `npm prune` so that switching between git trees with
added/removed modules works correctly.

Closes #223
2019-09-12 12:53:09 +02:00
Martin Pitt
bfc4039b3e
Use and ship package-lock.json
npm install has been generating package-lock.json [1] for long enough
for us to start relying on it.

Replace the unreliable and hacky `$NODE_MODULES_TEST` file with just
comparing package.json against package-lock.json to decide when to run
npm install. This will finally avoid unnecessary `npm install` runs, but
start to run these when git switching branches that have a different
package.json.

Ship package-lock.json in release tarballs, so that node_modules/ can be
reconstructed exactly as it was when making the release.

[1] https://docs.npmjs.com/files/package-lock.json

Closes #222
2019-09-12 10:47:58 +02:00
Martin Pitt
b4cb5fe5c9 Bump po2json npm dependency
This gets rid of a deprecated transitive dependency:

    deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.

Closes #221
2019-09-11 09:37:56 +02:00