~mna/mna.dev

mna.dev/package.json -rw-r--r-- 1.4 KiB
23414476Martin Angers Set title of page to post title 30 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  "name": "mna.dev",
  "version": "1.0.0",
  "main": "",
  "license": "ISC",
  "scripts": {
    "build:static": "cp -R src/static/* public/",
    "build:css": "tailwind build src/css/main.css -c tailwind.js | uglifycss > public/css/styles.css",
    "build:html": "go run scripts/build-templates/main.go src/posts/ data/ src/templates/ public/",
    "build:js": "echo 'todo(js): probably just copy over from static dir'",
    "build": "npm-run-all -p build:*",
    "clean": "npm-run-all -p clean:*",
    "clean:public": "find public/ -not -path '*/\\.*' -type f -delete",
    "clean:data": "find data/ -not -path '*/\\.*' -type f -delete",
    "generate": "npm-run-all -p generate:*",
    "generate:github": "echo 'use a go script with crawling of octodex and https://github.com/h2non/bimg'",
    "generate:data": "go run scripts/generate-data/main.go data/",
    "serve": "go run scripts/serve/main.go",
    "watch": "npm-watch"
  },
  "watch": {
    "build:css": {
      "patterns": [
        "src/css"
      ],
      "extensions": "css"
    },
    "build:static": {
      "patterns": [
        "src/static"
      ]
    },
    "build:html": {
      "patterns": [
        "data",
        "src/posts",
        "src/templates"
      ],
      "extensions": "html,md,toml,json"
    }
  },
  "devDependencies": {
    "npm-run-all": "^4.1.5",
    "npm-watch": "^0.6.0",
    "tailwindcss": "^0.7.4",
    "uglifycss": "0.0.29"
  }
}