You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 2 standalone tests were breaking.
* bundling the library for browser usage
* Test passing and actually using our the standalone file
* add tests for the bundle on CI
* fix jest config
* fix github action
* removing prettier from the bundle
* only require the necessary functions from semver
* running standalone tests in isolation
* Umd configuration closer to the one used by prettier.
* commonjs exported name changed to `prettierPluginSolidity` from `solidity`
* Supress warnings about assets size
* correct resolution of 'emoji-regex'
* package.json changes for browser support
* including source maps in the package
* cleaning up the usage of private utils that we borrowed from Prettier. 30k leaner build
* moving utils away from prettier-comments folder since now is slim and understandable enough to be maintained.
* Adding documentation for the standalone build
* using ## instead - to avoid a bug in the markdown standalone plugin
* moduleMapper doesn't work with jest-light-runner but we don't need it since we build everything before running tests
* cleaning up the standalone tests that have problems
* Use source-map instead of cheap-module-source-map
Co-authored-by: Franco Victorio <victorio.franco@gmail.com>
Prettier's unpkg field points to `https://unpkg.com/prettier/standalone.js`, in a similar way this plugin points to `https://unpkg.com/prettier-plugin-solidity/dist/standalone.js`.
56
+
57
+
Once the scripts are loaded you will have access the globals `prettier` and `prettierPlugins`.
58
+
59
+
We follow Prettier's strategy for populating their plugins in the object `prettierPlugins`, you can load other plugins like `https://unpkg.com/prettier@2.8.0/parser-markdown.js` and Prettier will have access to multiple parsers.
For more details and please have a look at [Prettier's documentation](https://prettier.io/docs/en/browser.html).
72
+
42
73
## Configuration File
43
74
44
75
Prettier provides a flexible system to configure the formatting rules of a project. For more information please refer to the [documentation](https://prettier.io/docs/en/configuration.html).
0 commit comments