diff --git a/brand-sample/.gitignore b/brand-sample/.gitignore index cbdb961..9806fbc 100644 --- a/brand-sample/.gitignore +++ b/brand-sample/.gitignore @@ -1 +1,3 @@ !dist +node_modules +paragon diff --git a/brand-sample/src/.nvmrc b/brand-sample/.nvmrc similarity index 100% rename from brand-sample/src/.nvmrc rename to brand-sample/.nvmrc diff --git a/brand-sample/README.md b/brand-sample/README.md index 09b5a41..077f637 100644 --- a/brand-sample/README.md +++ b/brand-sample/README.md @@ -61,7 +61,7 @@ hooks.Filters.ENV_PATCHES.add_item( 2. Navigate to your Tutor config directory (you can find this by running `tutor config printroot`) 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`) 4. You should see some directories in there, find the `theme-sources` directory. -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. +5. Place this theme's [`color.json` file](./tokens/src/themes/light/global/color.json) in the appropriate subdirectory of the `theme-sources` directory. ```sh $ tree ~/.local/share/tutor-main/env/plugins/paragon ├── [...] diff --git a/brand-sample/src/package-lock.json b/brand-sample/package-lock.json similarity index 100% rename from brand-sample/src/package-lock.json rename to brand-sample/package-lock.json diff --git a/brand-sample/src/package.json b/brand-sample/package.json similarity index 82% rename from brand-sample/src/package.json rename to brand-sample/package.json index 5e47d86..9a2af09 100644 --- a/brand-sample/src/package.json +++ b/brand-sample/package.json @@ -16,8 +16,9 @@ "scripts": { "build-tokens": "paragon build-tokens --source ./tokens/src --build-dir ./paragon/css --source-tokens-only --exclude-core", "build-scss": "paragon build-scss --themesPath ./paragon/css/themes --defaultThemeVariants light --excludeCore", - "build": "make build", - "build:watch": "nodemon --ignore dist -x \"make build\"", + "clean": "rm -rf dist && mkdir dist", + "build": "npm run clean && npm run build-tokens && npm run build-scss", + "build:watch": "nodemon --ignore dist -x \"npm run build\"", "paragon:help": "paragon help" }, "devDependencies": { diff --git a/brand-sample/src/.gitignore b/brand-sample/src/.gitignore deleted file mode 100644 index d47d0f6..0000000 --- a/brand-sample/src/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules -paragon -dist \ No newline at end of file diff --git a/brand-sample/src/Makefile b/brand-sample/src/Makefile deleted file mode 100644 index e5d5d85..0000000 --- a/brand-sample/src/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -build: - rm -rf dist && mkdir dist - npm run build-tokens - npm run build-scss diff --git a/brand-sample/src/README.md b/brand-sample/src/README.md deleted file mode 100644 index a97e44e..0000000 --- a/brand-sample/src/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# brand-sample - -This directory contains the source design tokens for the example brand package. - -## Building - -```sh -nvm use -npm ci -make build -``` diff --git a/brand-sample/src/tokens/src/themes/light/global/color.json b/brand-sample/tokens/src/themes/light/global/color.json similarity index 100% rename from brand-sample/src/tokens/src/themes/light/global/color.json rename to brand-sample/tokens/src/themes/light/global/color.json