Commit Graph

17 Commits

Author SHA1 Message Date
Nathan Vasse
be2f220624 (tokens) mock default tokens in tests
If we don't do that we will have to update all tests each time the
default value of a token is changed.
2023-01-11 11:01:56 +01:00
Nathan Vasse
2457a93ebf (tokens) add the support for Typescript config file
Add the support to load cunningham.ts local config file based on ts-node.
Those files will be loaded as CommonJS to preserve to coherence regarding
the way the cunningham bin is ran by node.
2023-01-11 11:01:56 +01:00
Nathan Vasse
56da7dde48 (tokens) add -cwd, --working-dir options to the bin
This allows to modify the working dir of the bin. This will be
particularly useful when running tests, this is not especially
intended to be vastly used by end-users.
2023-01-11 11:01:56 +01:00
Nathan Vasse
66e6aad84d (tokens) add TS generator and re-organize the repo
Add TS Generator which is a lot based on JS Generator.
2023-01-11 11:01:56 +01:00
Nathan Vasse
2876d29025 (tokens) add JS generator and re-organize the repo
Added JsGenerator which to implied to reorganize a bit the
repo in order to extract generator-specific test into specific
standalone files.
2023-01-11 11:01:56 +01:00
Nathan Vasse
3e98429d04 ♻️(typescript) move tokens sources to absolute import
Relatives import are quite ugly and reduces readability, but
hard to say that Typescript handles it very well for compilation
time, but nothing for runtime. That's why I had to add tsc-alias
to the build script. Please see this issue for more details.
https://github.com/Microsoft/TypeScript/issues/15479
Furthermore, some configuration was needed for Jest to work well.
2023-01-11 11:01:56 +01:00
renovate[bot]
8ff8aec39f ⬆️(dependencies) update js dependencies 2023-01-05 14:24:28 +01:00
Nathan Vasse
f47b1a721e 📌(dependencies) pin vitest to 0.25.7
Vitest 0.26.0 was causing crashes during tests. I posted an issue here
https://github.com/vitest-dev/vitest/issues/2531
2022-12-22 10:16:38 +01:00
renovate[bot]
b1b0037cad ⬆️(dependencies) update js dependencies 2022-12-22 10:16:38 +01:00
Nathan Vasse
38b17473ab 📌(renovate) pin chalk to 4.1.2
Chalk 5.x only support ESM but we use CJS for the tokens package.
2022-12-13 10:44:28 +01:00
renovate[bot]
9aa8f89017 ⬆️(dependencies) update js dependencies 2022-12-13 10:44:28 +01:00
Nathan Vasse
d1a4e7611c 📝(global) add README.md
Create a first version of README.md
2022-12-07 17:07:18 +01:00
Nathan Vasse
4beff43ebe (frontend) add storybook to react repo
Add storybook for the react repo, this will make developing components
enjoyable ! It can also serve as a single source of thruth.
2022-12-07 17:07:18 +01:00
Nathan Vasse
75f2617726 (components) add react repo
This repo only contains a Button which is here only for demonstration purpose.
Its purpose is to contain all the future react-based components of the
design system.
2022-12-07 17:07:18 +01:00
Nathan Vasse
32a48e9e46 (bin) add tokens repo
This repo is made for the bin script that generates the tokens files,
at the moment it only generates a css file, but it is designed to be
able to generate any other file format ( Typescript, Javascript for example )
2022-12-07 17:07:18 +01:00
Nathan Vasse
16172e7a00 🔧(compilation) setup tsconfig package
Add a shared package for tsconfigs splitted between node and frontend concerns
to centralize our standards.
2022-12-07 17:07:18 +01:00
Nathan Vasse
4803b38d34 🔧(lint) setup ESLint package
Add a shared package for ESLint configuration to avoid duplication accross
repos.
2022-12-07 17:07:18 +01:00