Commit graph

989 commits

Author SHA1 Message Date
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
Martin Pitt
25b970ec6b Bump cockpit test API to 202 2019-09-11 09:37:56 +02:00
Martin Pitt
e7fc85c1b0 Bump chrome-remote-interface npm dependency 2019-09-11 09:37:56 +02:00
Martin Pitt
1dbe7337f4 Fix core-js npm dependency
We want pinned-down versions for runtime dependencies, and update them
with our bots.
2019-09-11 09:37:56 +02:00
Martin Pitt
171a30a691 Bump eslint to latest version
No source code changes necessary.
2019-09-11 09:37:56 +02:00
Cockpituous
e557e1d45a package.json: Update react-dom package dependency
Closes #217
2019-09-01 12:56:23 +02:00
Cockpituous
d0a2ebcf0e package.json: Update react package dependency
Closes #216
2019-08-28 20:10:41 +02:00
Sanne Raymaekers
044b8da55a
eslintrc: Set "root" to true
Eslint shimmies up directories looking for more eslintrcs. As
make-checkout now clones projects in a subdirectory of cockpit, this can
result in some strange interactions.

https://eslint.org/docs/user-guide/configuring

Closes #212
2019-08-21 17:50:44 +02:00
Martin Pitt
97ab5e35b6
Fix AppStream ID
Cockpit renamed its ID to "org.cockpit_project.cockpit" to conform to
the AppStream spec [1]. Follow suit and also fix our own IDs to not
contain hyphens.

[1] 4a9ffe669c

Closes #204
2019-07-31 14:09:50 +02:00
Martin Pitt
35011e4709 Drop source map
They are large and just for debugging. If they are needed, they should
move into a separate -debugsource package, but this seems a bit overkill
as a default.

Closes #197
2019-07-17 17:43:01 +02:00
Martin Pitt
0cf6704708 Bump css-loader to current version
This also updates to a newer js-yaml, which addresses the current two
`npm audit` issues:

  - https://npmjs.com/advisories/788
  - https://npmjs.com/advisories/813
2019-07-17 17:43:01 +02:00
Martin Pitt
8fab928dcb Update babel to 7.5, and actually enable polyfills
@babel/polyfill is deprecated in ≥ 7.4 [1], and we never actually used
it as we forgot to import it [2]. Move to core-js/stable.

[1] https://babeljs.io/blog/2019/03/19/7.4.0#migration-from-core-js-2
[2] https://babeljs.io/docs/en/babel-polyfill#usage-in-node-browserify-webpack
2019-07-17 17:43:01 +02:00
Martin Pitt
1fc1923021 Rename *.es6 to *.js
*.es6 isn't standard naming, that was just an old cockpit-ism. All files
are treated as ES6.
2019-07-17 17:43:01 +02:00
Martin Pitt
eea86c986f Explicitly specify browser compatibility in babel
We do this in cockpit and cockpit-ostree.
2019-07-17 17:43:01 +02:00
Martin Pitt
077eba3ede Update to current eslint
This has a new rule `quote-props`, adjust the code accordingly:

    29:24  error  Unnecessarily quoted property 'hostname' found  quote-props
    32:29  error  Unnecessarily quoted property 'hostname' found  quote-props
2019-07-17 17:43:01 +02:00
Martin Pitt
d900a7231d
tasks: Drop issue-scan
This is now done by webhooks and AMQP.

Closes #195
2019-07-11 11:58:18 +02:00
Martin Pitt
acc7de2d6d cockpituous: Fix srpm Release:
Use release-srpm's `-V` option [1] so that the generated srpm will get a
proper changelog and Release "1" instead of "2".

[1] abb2bdb5

Closes #184
2019-06-12 09:54:42 +02:00
Martin Pitt
989e8c9301 Bump Cockpit test API to 195
No API changes.

Closes #181
2019-06-05 08:23:52 +02:00
Cockpituous
107ed4f82e package.json: Update node-sass package dependency
Closes #168
2019-05-01 20:29:15 +02:00
Cockpituous
418a690b9e package.json: Update @babel/polyfill package dependency
Closes #167
2019-04-28 10:49:15 +02:00
Cockpituous
018ec9d43c package.json: Update @babel/polyfill package dependency
Closes #160
2019-04-06 19:20:22 +02:00
Martin Pitt
fa7a430847 test: Remove redundant wait_present() calls (#159)
These are obsolete since
b1722f5b5d

Bump cockpit test API accordingly.

Closes #159
2019-04-03 16:59:13 +02:00
Martin Pitt
d3c41370c9 Bump Cockpit test API to 190
No API changes.

Closes #158
2019-04-03 11:36:31 +02:00
Cockpit Bots
026275122f package.json: Update react-dom package dependency
Closes #157
2019-04-02 21:12:44 +02:00
Cockpit Bots
ca20146dbe package.json: Update react package dependency
Closes #156
2019-03-30 19:52:08 +01:00
Cockpit Bots
dd18561c58 package.json: Update react package dependency
Closes #155
2019-03-27 08:25:31 +01:00
Cockpit Bots
0f9b7e1e46 package.json: Update react-dom package dependency
Closes #154
2019-03-23 23:31:07 +01:00
Cockpit Bots
d4808563b5 package.json: Update @babel/polyfill package dependency
Closes #153
2019-03-20 07:40:28 +01:00
Cockpit Bots
88f759d3e7 package.json: Update react package dependency
Closes #151
2019-03-14 08:03:48 +01:00
Cockpit Bots
220b7d7c4f package.json: Update react-dom package dependency
Closes #150
2019-03-11 07:53:00 +01:00
Martin Pitt
afda681f4a tasks: Minimize races filing issues for bots
We don't need to file or check for these issues on every iteration
through the .tasks script. These will count as "work done" and thus skip
the sleep (even though the "work" lasts only a split-second), and are
prone to creating duplicates.

Similar to af2e934a

Closes #147
2019-03-04 09:29:15 +01:00
Cockpit Bots
32f0e20ddb package.json: Update react-dom package dependency
Closes #131
2019-02-27 08:10:24 +01:00
Cockpit Bots
20cc5a2894 package.json: Update react package dependency
Closes #120
2019-02-24 08:08:08 +01:00
Cockpit Bots
d634cdd462 package.json: Update react package dependency
Closes #106
2019-02-20 23:30:10 +01:00
Cockpit Bots
0d1ca2d5a7 package.json: Update react-dom package dependency
Closes #105
2019-02-17 21:00:39 +01:00
Martin Pitt
e9db4448c9 Bump Cockpit test API to 187
No API changes.

Closes #103
2019-02-13 12:22:46 +01:00
Martin Pitt
a0d4171cc8 Validate AppStream metainfo during RPM build
This is a requirement in the Fedora packaging guidelines:
https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/#_app_data_validate_usage

Closes #102
2019-02-12 09:37:42 +01:00
Cockpit Bots
3ae93bd04e package.json: Update react package dependency
Closes #101
2019-02-11 14:07:49 +01:00
Cockpit Bots
d6e4c6be6e package.json: Update react-dom package dependency
Closes #100
2019-02-08 13:08:35 +01:00