Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@plone/plone-react
Advanced tools
$ yarn
$ cd api
$ ./bootstrap.sh
$ cd api
$ ./bin/instance fg
or
$ docker-compose -f api/docker-compose.yml up
$ yarn start
Go to http://localhost:3000 in your browser.
$ yarn test
$ make test-acceptance
Alternatively individual acceptances test case files can be run with a pure Robot Framework virtual environment, assuming that backend and frontend is running
$ docker-compose -f api/docker-compose.yml up
$ yarn && yarn build && API_PATH=http://localhost:55001/plone yarn start:prod
$ virtualenv robotenv --no-site-packages
$ robotenv/bin/pip install robotframework robotframework-seleniumlibrary robotframework-webpack
$ robotenv/bin/pybot tests/test_login.robot
Another alternative for developing Robot Framework acceptane tests is to use Jupyter notebook
$ make -C api/jupyter
Please refer this link for all usages.
Run Prettier through the CLI with this script. Run it without any arguments to see the options.
To format a file in-place, use --write
. You may want to consider committing your code before doing that, just in case.
prettier [opts] [filename ...]
In practice, this may look something like:
prettier --single-quote --trailing-comma es5 --write "{app,__{tests,mocks}__}/**/*.js"
Plugins are automatically loaded if you have them installed in your package.json. Prettier plugin package names must start with @prettier/plugin- or prettier-plugin-
to be registered.
If the plugin is unable to be found automatically, you can load them with:
prettier --write main.foo --plugin=./foo-plugin
parser: "foo",
plugins: ["./foo-plugin"]
});
You can use Prettier with a pre-commit tool. This can re-format your files that are marked as "staged" via git add
before you commit.
Install it along with husky:
yarn add lint-staged husky --dev
and add this config to your package.json
:
{
"scripts": {
"precommit": "lint-staged"
},
"lint-staged": {
"*.{js,json,css,md}": ["prettier --write", "git add"]
}
}
yarn add pretty-quick husky --dev
and add this config to your package.json:
{
"scripts": {
"precommit": "pretty-quick --staged"
}
}
More Precommit hooks can be found here
MIT License. Copyrights hold the Plone Foundation. See LICENSE.md for details.
First, start up Guillotina:
docker-compose -f g-api/docker-compose.yml up -d
Then, run the tests:
PYTHONPATH=$(pwd)/tests_guillotina env/bin/pybot -v BROWSER:headlesschrome tests_guillotina;
FAQs
Plone in React
The npm package @plone/plone-react receives a total of 19 weekly downloads. As such, @plone/plone-react popularity was classified as not popular.
We found that @plone/plone-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.