Skip to content

Commit 5105a34

Browse files
committed
refactor: Make brand-sample one layer simpler
This collapses brand-sample/src into brand-sample. The extra layer did not seem to be serving a purpose. It confused me over and over again when I was debugging tutor-contrib-paragon.
1 parent ccc9a1d commit 5105a34

15 files changed

Lines changed: 16 additions & 49 deletions

File tree

brand-sample/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
!dist
2+
node_modules

brand-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ hooks.Filters.ENV_PATCHES.add_item(
6161
2. Navigate to your Tutor config directory (you can find this by running `tutor config printroot`)
6262
3. From your config directory, navigate to `env/plugins/paragon` (the full path on my dev machine is `~/.local/share/tutor-main/env/plugins/paragon`)
6363
4. You should see some directories in there, find the `theme-sources` directory.
64-
5. Place this theme's [`color.json` file](./src/tokens/src/themes/light/global/color.json) in the appropriate subdirectory of the `theme-sources` directory.
64+
5. Place this theme's [`color.json` file](./tokens/src/themes/light/global/color.json) in the appropriate subdirectory of the `theme-sources` directory.
6565
```sh
6666
$ tree ~/.local/share/tutor-main/env/plugins/paragon
6767
├── [...]

brand-sample/dist/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

brand-sample/dist/light.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

brand-sample/dist/light.min.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

brand-sample/dist/theme-urls.json

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
"scripts": {
1717
"build-tokens": "paragon build-tokens --source ./tokens/src --build-dir ./paragon/css --source-tokens-only --exclude-core",
1818
"build-scss": "paragon build-scss --themesPath ./paragon/css/themes --defaultThemeVariants light --excludeCore",
19-
"build": "make build",
20-
"build:watch": "nodemon --ignore dist -x \"make build\"",
19+
"clean": "rm -rf dist && mkdir dist",
20+
"build": "npm run clean && npm run build-tokens && npm run build-scss",
21+
"build:watch": "nodemon --ignore dist -x \"npm run build\"",
2122
"paragon:help": "paragon help"
2223
},
2324
"devDependencies": {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "variables.css";

0 commit comments

Comments
 (0)