Commit graph

286 commits

Author SHA1 Message Date
Cockpit Project
1d7aad7c52 package.json: Update core-js
Closes #450
2021-04-20 06:09:02 +02:00
Martin Pitt
2624dbb891 Build and ship LICENSE file
Bring back terser-webpack-plugin from commit c52136c051 and re-enable
it. It builds the autogenerated dist/index.js.LICENSE.txt which is quite
important for shipping distribution packages -- c-{podman,machines} both
do this.

Backport 95021c336e
to make sure that the webpack for the release tarball is *actually*
built in production mode.
2021-04-12 08:45:52 +02:00
Martin Pitt
c52136c051 Move to webpack 5
We don't need to explicitly mention TerserJSPlugin any more (from commit
6b8611), as webpack 5 can now extend the `minimizer:` list with the
special `...` syntax.

This gets rid of several `npm install` warnings:

    deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
    deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
    deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
    deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

as well as 10 MB of node_modules.
2021-04-09 13:01:05 +02:00
Martin Pitt
0e608d562a Use current babel/eslint integration
Fixes these `npm install` warnings:

> deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
> deprecated eslint-loader@4.0.2: This loader has been deprecated. Please use eslint-webpack-plugin
2021-04-09 09:46:56 +02:00
Cockpit Project
70351d9081 package.json: Update core-js
Closes #444
2021-04-08 06:28:43 +02:00
Cockpit Project
a8eeeefd58 package.json: Update core-js
Closes #443
2021-04-03 09:09:43 +02:00
Cockpit Project
28d6b456cb package.json: Update @patternfly/react-core
Closes #442
2021-04-02 08:12:56 +02:00
Cockpit Project
58cfb84de2 package.json: Update @patternfly/react-core, @patternfly/patternfly
Closes #441
2021-04-01 08:08:30 +02:00
Cockpit Project
957e7f157c package.json: Update @patternfly/react-core, @patternfly/patternfly
Closes #434
2021-03-10 05:48:05 +01:00
Cockpit Project
6b40f35e04 package.json: Update core-js
Closes #430
2021-03-01 06:02:45 +01:00
Martin Pitt
4171293c48 Drop unused version numbers from package.json and manifest
This field was introduced in
https://github.com/cockpit-project/cockpit/pull/4964 as "purely
informational for now", and isn't even parsed by cockpit.

package.json's version would only be relevant for publishing NPM
modules, but cockpit pages are not that.

Neither starter-kit itself nor our derived projects like cockpit-podman
or cockpit-composer have ever maintained these two fields, so just get
rid of them.

This makes the git tag the single source of truth for the version
number.

Fixes #200
2021-02-25 07:50:55 +01:00
Cockpit Project
350621b443 package.json: Update core-js
Closes #424
2021-02-19 05:46:23 +01:00
Cockpit Project
de806efe16 package.json: Update @patternfly/react-core, @patternfly/patternfly
Closes #423
2021-02-18 06:37:34 +01:00
Cockpit Project
6abb6b1944 package.json: Update @patternfly/patternfly, @patternfly/react-core
Closes #422
2021-02-17 06:51:12 +01:00
Martin Pitt
71a321cc28 Enable webpack watch progress
Without that, `npm run watch` is entirely silent after the first build,
and does not give any feedback when a build starts, and even more
importantly, when it's done.
2021-02-01 11:39:58 +01:00
Cockpit Project
dfeb49484c package.json: Update @patternfly package dependencies
Closes #418
2021-01-28 06:03:03 +01:00
Cockpit Project
786fd20df5 package.json: Update core-js package dependency
Closes #415
2021-01-20 05:32:46 +01:00
Cockpit Project
de1efaccd3 package.json: Update core-js package dependency
Closes #412
2021-01-04 06:34:07 +01:00
Martin Pitt
6b8611caab Minimize CSS in production builds
Use optimize-css-assets-webpack-plugin for that. terser-webpack-plugin
was already being used by default, but explicitly import it as our
webpack config now references it directly.

https://webpack.js.org/plugins/mini-css-extract-plugin/#minimizing-for-production

Ported from cockpit-podman commit 3caf54fbfe2.
2020-12-17 17:40:47 +01:00
Cockpit Project
34f2b6253c package.json: Update @patternfly/react-core package dependency
Closes #405
2020-12-17 06:07:00 +01:00
Cockpit Project
18354174de package.json: Update @patternfly/patternfly package dependency
Closes #402
2020-12-16 10:01:01 +01:00
Cockpit Project
c2a5c6df77 package.json: Update @patternfly/react-core package dependency
Closes #401
2020-12-15 08:27:21 +01:00
Cockpit Project
224d9a2a12 package.json: Update core-js package dependency
Closes #399
2020-12-06 07:50:14 +01:00
Cockpit Project
d3d1df5533 package.json: Update core-js package dependency
Closes #397
2020-11-26 06:25:38 +01:00
Cockpit Project
5f3c5c8436 package.json: Update @patternfly/patternfly package dependency
Closes #394
2020-11-22 11:51:57 +01:00
Cockpit Project
b49d1d48dc package.json: Update @patternfly/react-core package dependency
Closes #393
2020-11-19 05:48:47 +01:00
Cockpit Project
92f009d489 package.json: Update core-js package dependency
Closes #392
2020-11-07 16:25:28 +01:00
Cockpit Project
7dacf49b9a package.json: Update @patternfly/react-core package dependency
Closes #389
2020-10-30 06:21:08 +01:00
Cockpit Project
fcab193597 package.json: Update @patternfly/patternfly package dependency
Closes #387
2020-10-29 06:49:59 +01:00
Martin Pitt
233b5cfe04 Use sassc instead of node-sass
node-sass is a compiled ELF module, which is problematic for
distributions that want to rebuild everything from source. The sassc CLI
program is packaged everywhere, and both use the same libsass library.

So drop node-sass and sass-loader, and replace it with a simple loader
wrapper around sassc.

This also saves 122 npm packages (16 MB in node_modules/).

Closes #382
2020-10-28 14:49:52 +01:00
Cockpituous
29fb8b5c98 package.json: Update react-dom package dependency
Closes #383
2020-10-20 09:08:39 +02:00
Cockpit Bots
7838cb70a9
package.json: Update react package dependency (#381)
Closes #381
2020-10-16 22:07:15 +02:00
Cockpituous
b6a10e5cfe package.json: Update @patternfly/patternfly package dependency
Closes #379
2020-10-13 19:34:14 +02:00
Cockpituous
499eca014b package.json: Update @patternfly/react-core package dependency
Closes #378
2020-10-09 22:30:48 +02:00
Martin Pitt
8f93db2234 npm: Upgrade eslint to current major versions
Closes #373
2020-09-28 07:49:01 +02:00
Martin Pitt
a5ade152a8 npm: Upgrade webpack related development dependencies
compression-webpack-plugin fixes https://www.npmjs.com/advisories/1548

Adjust to new copy-webpack-plugin API.

Thew new modules now create dist/index.html.gz in `NODE_ENV=production`
mode, so switch `WEBPACK_TEST` to index.css instead (which remains
uncompressed in both modes).
2020-09-28 07:49:01 +02:00
Cockpituous
44b94eb59d package.json: Update @patternfly/patternfly package dependency
Closes #372
2020-09-25 08:48:07 +02:00
Cockpituous
0a47c6f034 package.json: Update @patternfly/react-core package dependency
Closes #368
2020-09-21 12:32:01 +02:00
Cockpituous
0ec0856e0e package.json: Update @patternfly/react-core package dependency
Closes #359
2020-08-31 09:15:04 +02:00
Cockpituous
33d1b4425d package.json: Update @patternfly/patternfly package dependency
Closes #358
2020-08-27 17:28:03 +02:00
Cockpituous
427f85795a package.json: Update @patternfly/react-core package dependency
Closes #355
2020-08-20 12:16:14 +02:00
Martin Pitt
2bb8e01d2d
Port to PatternFly 4.x
Closes #343
2020-07-21 10:33:48 +02:00
Martin Pitt
f2a11ba1de
npm: Bump development dependencies
Closes #334
2020-06-29 22:16:55 +02:00
Cockpituous
96dfac3862 package.json: Update @patternfly/patternfly package dependency
Closes #332
2020-06-26 11:47:04 +02:00
Cockpituous
f2644bff9b package.json: Update @patternfly/react-core package dependency
Closes #329
2020-06-14 16:59:01 +02:00
Martin Pitt
c083e8a7cf package.json: Fix versions
Use ^ for node-sass, it's a development dependency.

Drop the ^ for patternfly, as these are runtime dependencies controlled
by our npm-update bot.
2020-05-28 10:52:41 +02:00
Katerina Koukiou
96514e279e
main: Stop importing patternfly.css
* Stop importing cockpit's base1/patternfly.css

This is deprecated API and will be dropped at some point, in favor
of projects shipping their own CSS.

Install and import the styles from PF4 now.

* Use webpack based string replacement for removing the font-face rules from PF4

Doing the seddery in Makefile breaks `npm run build`, webpack watching,
and is generally brittle.
Do the font replacement hacking with `string-replace-loader`, which fits into webpack much more nicely.

There is still some potential simplification by not duplicating the
entire scss loader chain.

Co-authored-by: Martin Pitt <martin@piware.de>

Closes #315
2020-05-28 10:01:31 +02:00
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