Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.18 #127

Merged
merged 55 commits into from
Jan 10, 2024
Merged

v0.18 #127

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
9c0cad1
prepare for 0.18
edoardocavazza Jan 11, 2023
38b47e0
update esbuild
edoardocavazza Jan 11, 2023
a6f232d
fix: ignore valid urls
edoardocavazza Jan 11, 2023
28ea5be
refactor: resolve styles using export fields
edoardocavazza Jan 11, 2023
9ac7a33
refactor: remove css import plugin from default plugins
edoardocavazza Jan 11, 2023
b7deb0d
refactor: remove unwebpack plugin from default plugins
edoardocavazza Jan 11, 2023
199e615
refactor: remove storybook plugin
edoardocavazza Jan 16, 2023
0af5a1a
refactor: remove external plugin
edoardocavazza Jan 16, 2023
2eba267
fix: require resolve kind
edoardocavazza Jan 16, 2023
43c11ca
update esbuild to 0.17
edoardocavazza Jan 16, 2023
3722f09
refactor: remove alias plugin, introduce metadata plugin
edoardocavazza Feb 10, 2023
43c1c04
refactor: remove unstandard cases from worker plugin
edoardocavazza Feb 10, 2023
b193b3f
remove unnecessary define-this plugin
edoardocavazza Mar 29, 2023
6c0c566
update @web dependencies
edoardocavazza Mar 29, 2023
9e43a72
remove hmr dna
edoardocavazza Apr 26, 2023
781feca
restore css import plugin
edoardocavazza Apr 26, 2023
53f6970
remove rna-apidoc
edoardocavazza Apr 26, 2023
f16e19a
refactor: replace postcss with lightningcss
edoardocavazza Oct 13, 2022
b5adfd4
fix: rna cli build
edoardocavazza Oct 13, 2022
3230140
chore: prepare for 0.18
edoardocavazza Oct 13, 2022
5bd98d6
chore: remove wrogn spaces
edoardocavazza Oct 13, 2022
5798d16
fix metadata readme
edoardocavazza Apr 30, 2023
4037099
uodate README
edoardocavazza Apr 30, 2023
8d21759
fix lightningcss module
edoardocavazza Apr 30, 2023
e84a58a
fix workers lib
edoardocavazza May 1, 2023
959004b
restore worker warnings
edoardocavazza May 1, 2023
8d0beb8
improve worker test
edoardocavazza May 1, 2023
f485dd4
fix lightning css test in windows
edoardocavazza May 1, 2023
e0e3555
enter pre mode
edoardocavazza May 1, 2023
1095e97
Version Package
edoardocavazza May 1, 2023
2dc708a
fix some versions
edoardocavazza May 1, 2023
04419e4
update lock files
edoardocavazza May 1, 2023
b309227
handle packages external in css import
edoardocavazza May 1, 2023
4606474
use __dirname instead of import.meta in cjs files
edoardocavazza May 1, 2023
25638c7
fix rna build command
edoardocavazza May 1, 2023
2b969a9
use custom resolve in lightning css
edoardocavazza May 1, 2023
8ddabad
use lightningcss for dev server
edoardocavazza May 9, 2023
f58fbdd
restore postcss plugin usage
edoardocavazza Jun 12, 2023
7de8bde
fix worker plugin
edoardocavazza Jun 12, 2023
e1df132
update dependencies
edoardocavazza Aug 29, 2023
5f7d9fa
update yarn lock
edoardocavazza Aug 29, 2023
f3623eb
remove css import from default plugin list (again)
edoardocavazza Aug 29, 2023
7aa2351
Version Packages
edoardocavazza Aug 29, 2023
fe40a8f
update yarn lock
edoardocavazza Aug 29, 2023
864abcb
update node engine version
edoardocavazza Aug 29, 2023
dfd50b4
Staticize rna commands
edoardocavazza Aug 29, 2023
1718591
Revert "Staticize rna commands"
edoardocavazza Aug 30, 2023
c698bc5
Revert "update node engine version"
edoardocavazza Aug 30, 2023
b46792d
refactor cli commands
edoardocavazza Aug 30, 2023
1964b41
Required nodejs engine to 16
edoardocavazza Aug 30, 2023
f1ded28
update yarn lock
edoardocavazza Sep 28, 2023
994620d
keep default mainfields
edoardocavazza Sep 28, 2023
59ebd93
Update babel tests
edoardocavazza Jan 10, 2024
cfa8728
Update dependencies
edoardocavazza Jan 10, 2024
c6757b8
Exit pre mode
edoardocavazza Jan 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .changeset/chilly-kids-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
"@chialab/cjs-to-esm": minor
"@chialab/es-dev-server": minor
"@chialab/es-test-runner": minor
"@chialab/esbuild-plugin-any-file": minor
"@chialab/esbuild-plugin-babel": minor
"@chialab/esbuild-plugin-commonjs": minor
"@chialab/esbuild-plugin-css-import": minor
"@chialab/esbuild-plugin-env": minor
"@chialab/esbuild-plugin-html": minor
"@chialab/esbuild-plugin-meta-url": minor
"@chialab/esbuild-plugin-postcss": minor
"@chialab/esbuild-plugin-require-resolve": minor
"@chialab/esbuild-plugin-unwebpack": minor
"@chialab/esbuild-plugin-virtual": minor
"@chialab/esbuild-plugin-worker": minor
"@chialab/esbuild-rna": minor
"@chialab/estransform": minor
"@chialab/node-resolve": minor
"@chialab/postcss-dart-sass": minor
"@chialab/postcss-preset-chialab": minor
"@chialab/postcss-url-rebase": minor
"@chialab/rna": minor
"@chialab/rna-browser-test-runner": minor
"@chialab/rna-bundler": minor
"@chialab/rna-config-loader": minor
"@chialab/rna-dev-server": minor
"@chialab/rna-logger": minor
"@chialab/rna-node-test-runner": minor
"@chialab/rna-saucelabs-test-runner": minor
"@chialab/wds-plugin-hmr": minor
"@chialab/wds-plugin-legacy": minor
"@chialab/wds-plugin-node-resolve": minor
"@chialab/wds-plugin-polyfill": minor
"@chialab/wds-plugin-rna": minor
"@chialab/wtr-coverage-reporter": minor
"@chialab/wtr-mocha-reporter": minor
---

Bump to v0.18.0
42 changes: 42 additions & 0 deletions .changeset/nine-chicken-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
"@chialab/esbuild-plugin-require-resolve": patch
"@chialab/esbuild-plugin-lightningcss": patch
"@chialab/esbuild-plugin-css-import": patch
"@chialab/rna-saucelabs-test-runner": patch
"@chialab/esbuild-plugin-unwebpack": patch
"@chialab/esbuild-plugin-any-file": patch
"@chialab/esbuild-plugin-commonjs": patch
"@chialab/esbuild-plugin-meta-url": patch
"@chialab/esbuild-plugin-metadata": patch
"@chialab/rna-browser-test-runner": patch
"@chialab/wds-plugin-node-resolve": patch
"@chialab/esbuild-plugin-postcss": patch
"@chialab/esbuild-plugin-virtual": patch
"@chialab/postcss-preset-chialab": patch
"@chialab/esbuild-plugin-worker": patch
"@chialab/wtr-coverage-reporter": patch
"@chialab/esbuild-plugin-babel": patch
"@chialab/rna-node-test-runner": patch
"@chialab/esbuild-plugin-html": patch
"@chialab/wds-plugin-polyfill": patch
"@chialab/esbuild-plugin-env": patch
"@chialab/postcss-url-rebase": patch
"@chialab/wtr-mocha-reporter": patch
"@chialab/postcss-dart-sass": patch
"@chialab/rna-config-loader": patch
"@chialab/wds-plugin-legacy": patch
"@chialab/es-test-runner": patch
"@chialab/rna-dev-server": patch
"@chialab/wds-plugin-hmr": patch
"@chialab/wds-plugin-rna": patch
"@chialab/es-dev-server": patch
"@chialab/node-resolve": patch
"@chialab/esbuild-rna": patch
"@chialab/estransform": patch
"@chialab/rna-bundler": patch
"@chialab/cjs-to-esm": patch
"@chialab/rna-logger": patch
"@chialab/rna": patch
---

Set up required NodeJS version to 16.
51 changes: 51 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"mode": "exit",
"tag": "alpha",
"initialVersions": {
"@chialab/cjs-to-esm": "0.17.6",
"@chialab/es-dev-server": "0.17.2",
"@chialab/es-test-runner": "0.17.1",
"@chialab/esbuild-plugin-any-file": "0.17.1",
"@chialab/esbuild-plugin-babel": "0.17.1",
"@chialab/esbuild-plugin-commonjs": "0.17.2",
"@chialab/esbuild-plugin-css-import": "0.17.1",
"@chialab/esbuild-plugin-env": "0.17.1",
"@chialab/esbuild-plugin-html": "0.17.2",
"@chialab/esbuild-plugin-lightningcss": "0.17.0",
"@chialab/esbuild-plugin-meta-url": "0.17.5",
"@chialab/esbuild-plugin-metadata": "0.18.0",
"@chialab/esbuild-plugin-postcss": "0.17.2",
"@chialab/esbuild-plugin-require-resolve": "0.17.1",
"@chialab/esbuild-plugin-unwebpack": "0.17.2",
"@chialab/esbuild-plugin-virtual": "0.17.1",
"@chialab/esbuild-plugin-worker": "0.17.4",
"@chialab/esbuild-rna": "0.17.7",
"@chialab/estransform": "0.17.3",
"@chialab/node-resolve": "0.17.0",
"@chialab/postcss-dart-sass": "0.17.0",
"@chialab/postcss-preset-chialab": "0.17.0",
"@chialab/postcss-url-rebase": "0.17.0",
"@chialab/rna": "0.17.6",
"@chialab/rna-browser-test-runner": "0.17.3",
"@chialab/rna-bundler": "0.17.6",
"@chialab/rna-config-loader": "0.17.4",
"@chialab/rna-dev-server": "0.17.6",
"@chialab/rna-logger": "0.17.1",
"@chialab/rna-node-test-runner": "0.17.0",
"@chialab/rna-saucelabs-test-runner": "0.17.1",
"@chialab/wds-plugin-hmr": "0.17.1",
"@chialab/wds-plugin-legacy": "0.17.0",
"@chialab/wds-plugin-node-resolve": "0.17.2",
"@chialab/wds-plugin-polyfill": "0.17.0",
"@chialab/wds-plugin-rna": "0.17.7",
"@chialab/wtr-coverage-reporter": "0.17.0",
"@chialab/wtr-mocha-reporter": "0.17.1"
},
"changesets": [
"chilly-kids-drop",
"grumpy-penguins-deliver",
"seven-apples-occur",
"six-pillows-obey",
"small-knives-deliver"
]
}
42 changes: 42 additions & 0 deletions .changeset/serious-tigers-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
"@chialab/esbuild-plugin-require-resolve": patch
"@chialab/esbuild-plugin-lightningcss": patch
"@chialab/esbuild-plugin-css-import": patch
"@chialab/rna-saucelabs-test-runner": patch
"@chialab/esbuild-plugin-unwebpack": patch
"@chialab/esbuild-plugin-any-file": patch
"@chialab/esbuild-plugin-commonjs": patch
"@chialab/esbuild-plugin-meta-url": patch
"@chialab/esbuild-plugin-metadata": patch
"@chialab/rna-browser-test-runner": patch
"@chialab/wds-plugin-node-resolve": patch
"@chialab/esbuild-plugin-postcss": patch
"@chialab/esbuild-plugin-virtual": patch
"@chialab/postcss-preset-chialab": patch
"@chialab/esbuild-plugin-worker": patch
"@chialab/wtr-coverage-reporter": patch
"@chialab/esbuild-plugin-babel": patch
"@chialab/rna-node-test-runner": patch
"@chialab/esbuild-plugin-html": patch
"@chialab/wds-plugin-polyfill": patch
"@chialab/esbuild-plugin-env": patch
"@chialab/postcss-url-rebase": patch
"@chialab/wtr-mocha-reporter": patch
"@chialab/postcss-dart-sass": patch
"@chialab/rna-config-loader": patch
"@chialab/wds-plugin-legacy": patch
"@chialab/es-test-runner": patch
"@chialab/rna-dev-server": patch
"@chialab/wds-plugin-hmr": patch
"@chialab/wds-plugin-rna": patch
"@chialab/es-dev-server": patch
"@chialab/node-resolve": patch
"@chialab/esbuild-rna": patch
"@chialab/estransform": patch
"@chialab/rna-bundler": patch
"@chialab/cjs-to-esm": patch
"@chialab/rna-logger": patch
"@chialab/rna": patch
---

Refactored CLI commands.
5 changes: 5 additions & 0 deletions .changeset/seven-apples-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@chialab/rna-bundler": patch
---

Remove unwebpack plugin from default plugins
42 changes: 42 additions & 0 deletions .changeset/six-pillows-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
"@chialab/esbuild-plugin-require-resolve": patch
"@chialab/esbuild-plugin-lightningcss": patch
"@chialab/esbuild-plugin-css-import": patch
"@chialab/rna-saucelabs-test-runner": patch
"@chialab/esbuild-plugin-unwebpack": patch
"@chialab/esbuild-plugin-any-file": patch
"@chialab/esbuild-plugin-commonjs": patch
"@chialab/esbuild-plugin-meta-url": patch
"@chialab/esbuild-plugin-metadata": patch
"@chialab/rna-browser-test-runner": patch
"@chialab/wds-plugin-node-resolve": patch
"@chialab/esbuild-plugin-postcss": patch
"@chialab/esbuild-plugin-virtual": patch
"@chialab/postcss-preset-chialab": patch
"@chialab/esbuild-plugin-worker": patch
"@chialab/wtr-coverage-reporter": patch
"@chialab/esbuild-plugin-babel": patch
"@chialab/rna-node-test-runner": patch
"@chialab/esbuild-plugin-html": patch
"@chialab/wds-plugin-polyfill": patch
"@chialab/esbuild-plugin-env": patch
"@chialab/postcss-url-rebase": patch
"@chialab/wtr-mocha-reporter": patch
"@chialab/postcss-dart-sass": patch
"@chialab/rna-config-loader": patch
"@chialab/wds-plugin-legacy": patch
"@chialab/es-test-runner": patch
"@chialab/rna-dev-server": patch
"@chialab/wds-plugin-hmr": patch
"@chialab/wds-plugin-rna": patch
"@chialab/es-dev-server": patch
"@chialab/node-resolve": patch
"@chialab/esbuild-rna": patch
"@chialab/estransform": patch
"@chialab/rna-bundler": patch
"@chialab/cjs-to-esm": patch
"@chialab/rna-logger": patch
"@chialab/rna": patch
---

Update esbuild and other dependencies.
5 changes: 5 additions & 0 deletions .changeset/small-knives-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@chialab/node-resolve": patch
---

Resolve styles using export fields
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"extends": "@chialab/eslint-config/typescript/node",
"extends": "@chialab/eslint-config",
"parserOptions": {
"project": false
},
"ignorePatterns": [
"**/dist/*",
"**/types/*",
"**/fixture/*",
"**/fixtures/*"
]
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ Since RNA aims to support both browser and Node modules, you can test your modul
### Quick usage

```sh
$ npm i -D \
npm i -D \
@chialab/rna \
@chialab/rna-bundler \
@chialab/rna-dev-server \
@chialab/rna-browser-test-runner
```
Expand Down
20 changes: 13 additions & 7 deletions docs/Building-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,21 @@ Unless you are using syntaxes like Sass and Less, CSS builds are less expansive
Even if [esbuild](https://esbuild.github.io/) has out of the box support for CSS files, in order to bundle a CSS module using RNA you may have to install the bundler package along with the postcss plugin for node modules resolution:

```sh
$ npm i -D @chialab/rna @chialab/rna-bundler @chialab/esbuild-plugin-postcss
$ yarn add -D @chialab/rna @chialab/rna-bundler @chialab/esbuild-plugin-postcss
npm i -D @chialab/rna
```

```sh
yarn add -D @chialab/rna
```

and run:

```sh
$ npx rna build src/index.css --output public/index.css
$ yarn rna build src/index.css --output public/index.css
npx rna build src/index.css --output public/index.css
```

```sh
yarn rna build src/index.css --output public/index.css
```

A CSS bundle will be generated as well as its source map (unless you added the `--no-map` flag).
Expand Down Expand Up @@ -50,7 +56,7 @@ We built a [custom PostCSS preset](https://www.npmjs.com/package/@chialab/postcs
You can install it using npm or yarn:

```sh
$ npm i @chialab/postcss-preset-chialab -D
npm i @chialab/postcss-preset-chialab -D
```

And creating or updating tghe postcss config file:
Expand All @@ -73,15 +79,15 @@ Although out of RNA scope, we strongly recommend to use a linter for CSS project
First, you need to install the stylelint cli:

```sh
$ npm i -D stylelint
npm i -D stylelint
```

Please follow official guide for [linter configuration](https://stylelint.io/user-guide/configure).

We also provide our configuration preset:

```sh
$ npm i -D @chialab/stylelint-config
npm i -D @chialab/stylelint-config
```

**.stylelintrc.json**
Expand Down
Loading