Compare commits
3 commits
d93ff04688
...
fb25e355ab
Author | SHA1 | Date | |
---|---|---|---|
fb25e355ab | |||
b4f8826858 | |||
aed76b4804 |
6 changed files with 9 additions and 11 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,7 +1,7 @@
|
|||
*.tgz
|
||||
/*.css
|
||||
|
||||
.direnv/
|
||||
dist/
|
||||
node_modules/
|
||||
|
||||
# nixago: ignore-linked-files
|
||||
|
|
5
Justfile
5
Justfile
|
@ -8,7 +8,7 @@ format:
|
|||
prettier src/*.mjs src/*.postcss --write
|
||||
|
||||
format-dist:
|
||||
prettier dist/*.css --write
|
||||
prettier ./*.css --write
|
||||
|
||||
# Generate all the files
|
||||
build: colors theme
|
||||
|
@ -19,5 +19,4 @@ colors: format && format-dist
|
|||
|
||||
# Generate dist/theme.css
|
||||
theme: format && format-dist
|
||||
mkdir -p dist
|
||||
postcss src/theme.postcss > dist/theme.css
|
||||
postcss src/theme.postcss > ./theme.css
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
@import url("../dist/colors.css");
|
||||
@import url("../dist/theme.css");
|
||||
@import url("../colors.css");
|
||||
@import url("../theme.css");
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@priduck-color-theme/base",
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@priduck-color-theme/base",
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.1",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mkdirp": "^3.0.1",
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
"name": "@priduck-color-theme/base",
|
||||
"version": "0.0.0",
|
||||
"version": "0.0.1",
|
||||
"description": "A color-theme based on a single hue in the LCH colorspace.",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
|
|
@ -5,7 +5,7 @@ import fs from "node:fs/promises";
|
|||
|
||||
// Figure out where we need to write the files.
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
const distPath = __dirname + "/../dist";
|
||||
const distPath = __dirname + "/..";
|
||||
|
||||
console.log("writing", distPath);
|
||||
|
||||
|
|
Loading…
Reference in a new issue