@startinblox/boilerplate 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +57 -0
- package/.storybook/main.ts +15 -0
- package/.storybook/preview-head.html +8 -0
- package/.storybook/preview.ts +22 -0
- package/LICENSE +21 -0
- package/README.md +85 -0
- package/biome.json +39 -0
- package/cypress/component/solid-boilerplate.cy.ts +9 -0
- package/cypress/cypress.d.ts +1 -0
- package/cypress/support/component-index.html +12 -0
- package/cypress/support/component.ts +17 -0
- package/cypress.config.ts +11 -0
- package/dist/boilerplate.css +1 -0
- package/dist/index.js +1213 -0
- package/lit-localize.json +15 -0
- package/locales/en.xlf +13 -0
- package/package.json +92 -0
- package/postcss.config.js +8 -0
- package/src/component.d.ts +161 -0
- package/src/components/solid-boilerplate.ts +79 -0
- package/src/components/ui/sample-object.ts +37 -0
- package/src/components/ui/sample-objects.ts +40 -0
- package/src/context.json +1 -0
- package/src/helpers/components/componentObjectHandler.ts +100 -0
- package/src/helpers/components/componentObjectsHandler.ts +44 -0
- package/src/helpers/components/orbitComponent.ts +241 -0
- package/src/helpers/components/setupCacheInvalidation.ts +37 -0
- package/src/helpers/components/setupCacheOnResourceReady.ts +32 -0
- package/src/helpers/components/setupComponentSubscriptions.ts +73 -0
- package/src/helpers/components/setupOnSaveReset.ts +20 -0
- package/src/helpers/datas/dataBuilder.ts +43 -0
- package/src/helpers/datas/filterGenerator.ts +29 -0
- package/src/helpers/datas/filterObjectByDateAfter.ts +80 -0
- package/src/helpers/datas/filterObjectById.ts +54 -0
- package/src/helpers/datas/filterObjectByInterval.ts +133 -0
- package/src/helpers/datas/filterObjectByNamedValue.ts +103 -0
- package/src/helpers/datas/filterObjectByType.ts +30 -0
- package/src/helpers/datas/filterObjectByValue.ts +81 -0
- package/src/helpers/datas/sort.ts +40 -0
- package/src/helpers/i18n/configureLocalization.ts +17 -0
- package/src/helpers/index.ts +41 -0
- package/src/helpers/ui/formatDate.ts +18 -0
- package/src/helpers/ui/lipsum.ts +12 -0
- package/src/helpers/utils/requestNavigation.ts +12 -0
- package/src/helpers/utils/uniq.ts +6 -0
- package/src/index.ts +7 -0
- package/src/initializer.ts +11 -0
- package/src/mocks/orbit.mock.ts +33 -0
- package/src/mocks/user.mock.ts +67 -0
- package/src/styles/component-sample.scss +4 -0
- package/src/styles/index.scss +16 -0
- package/stories/sample-objects.stories.ts +47 -0
- package/tsconfig.json +36 -0
- package/vite.config.ts +44 -0
package/tsconfig.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"paths": {
|
|
5
|
+
"@components/*": ["./src/components/*"],
|
|
6
|
+
"@cypress/*": ["./cypress/*"],
|
|
7
|
+
"@helpers/*": ["./src/helpers/*"],
|
|
8
|
+
"@helpers": ["./src/helpers/index.ts"],
|
|
9
|
+
"@mocks/*": ["./src/mocks/*"],
|
|
10
|
+
"@stories/*": ["./stories/*"],
|
|
11
|
+
"@styles/*": ["./src/styles/*"],
|
|
12
|
+
"@src/*": ["./src/*"]
|
|
13
|
+
},
|
|
14
|
+
"target": "ES2020",
|
|
15
|
+
"experimentalDecorators": true,
|
|
16
|
+
"useDefineForClassFields": false,
|
|
17
|
+
"module": "ESNext",
|
|
18
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
19
|
+
"types": ["cypress", "node"],
|
|
20
|
+
"skipLibCheck": true,
|
|
21
|
+
|
|
22
|
+
/* Bundler mode */
|
|
23
|
+
"moduleResolution": "bundler",
|
|
24
|
+
"allowImportingTsExtensions": true,
|
|
25
|
+
"resolveJsonModule": true,
|
|
26
|
+
"isolatedModules": true,
|
|
27
|
+
"noEmit": true,
|
|
28
|
+
|
|
29
|
+
/* Linting */
|
|
30
|
+
"strict": true,
|
|
31
|
+
"noUnusedLocals": true,
|
|
32
|
+
"noUnusedParameters": true,
|
|
33
|
+
"noFallthroughCasesInSwitch": true
|
|
34
|
+
},
|
|
35
|
+
"include": ["src", "cypress/**/*.ts", "stories/**/*.ts", "*.config.ts"]
|
|
36
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { resolve } from "node:path";
|
|
2
|
+
import Icons from "unplugin-icons/vite";
|
|
3
|
+
import { defineConfig } from "vite";
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
css: {
|
|
7
|
+
preprocessorOptions: {
|
|
8
|
+
scss: {
|
|
9
|
+
quietDeps: true,
|
|
10
|
+
api: "modern-compiler",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
build: {
|
|
15
|
+
lib: {
|
|
16
|
+
entry: resolve(__dirname, "src/index.ts"),
|
|
17
|
+
name: JSON.stringify(process.env.npm_package_name),
|
|
18
|
+
fileName: () => "index.js",
|
|
19
|
+
formats: ["es"],
|
|
20
|
+
},
|
|
21
|
+
target: "esnext",
|
|
22
|
+
},
|
|
23
|
+
plugins: [
|
|
24
|
+
Icons({
|
|
25
|
+
compiler: "web-components",
|
|
26
|
+
webComponents: {
|
|
27
|
+
autoDefine: true,
|
|
28
|
+
},
|
|
29
|
+
autoInstall: true,
|
|
30
|
+
scale: 1,
|
|
31
|
+
}),
|
|
32
|
+
],
|
|
33
|
+
resolve: {
|
|
34
|
+
alias: {
|
|
35
|
+
"@components": "/src/components",
|
|
36
|
+
"@cypress": "/cypress",
|
|
37
|
+
"@helpers": "/src/helpers",
|
|
38
|
+
"@mocks": "/src/mocks",
|
|
39
|
+
"@stories": "/stories",
|
|
40
|
+
"@styles": "/src/styles",
|
|
41
|
+
"@src": "/src",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
});
|