Hi, I'm @uppercod, creator of Atomico and I want to thank you for starting with Atomico.
If you need help you can find it at:
Now what you have installed is a quick start kit based on Vite, which you can scale for your project, now to continue you must execute the following commands:
npm install
npm start
: Initialize the development servernpm build
: Optional, Generate a build of your project from the html file index.html.
I have modified the environment by adding:
- package.json#postcss, thus allowing to import stylesheets from node_modules.
site
src
|- my-component
| |- my-component.{js,jsx,ts,tsx}
| |- my-component.test.js
| |- my-component.css
| |- README.md
|- components.js # import all components
The test environment is preconfigured for @web/test-runner, you must complete the installation of the following devDependencies, installed the devDependencies you can execute the command npm run test
:
npm install -D @web/test-runner @esm-bundle/chai vite-web-test-runner-plugin
import { expect } from "@esm-bundle/chai";
describe("my test", () => {
it("foo is bar", () => {
expect("foo").to.equal("bar");
});
});
@web/test-runner
supports asynchrony, coverage, viewport and more.
Atomico owns the @atomico/exports tool that simplifies the generation of builds, types and exports by distributing webcomponents in NPM, you must complete the installation of the following devDependencies, installed the devDependencies you can execute the command npm run exports
:
npm install -D @atomico/exports