-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathConstants.purs
More file actions
86 lines (73 loc) · 2.05 KB
/
Constants.purs
File metadata and controls
86 lines (73 loc) · 2.05 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
module Registry.Constants where
import Node.Path (FilePath)
type GitHubRepo = { owner :: String, repo :: String }
-- | The location of the registry GitHub repository
registry :: GitHubRepo
registry = { owner: "purescript", repo: "registry" }
-- | The file path to the package sets within the registry GitHub repository
packageSetsDirectory :: FilePath
packageSetsDirectory = "package-sets"
-- | The file path to the package metadata within the registry GitHub repository
metadataDirectory :: FilePath
metadataDirectory = "metadata"
-- | The location of the package index GitHub repository
manifestIndex :: GitHubRepo
manifestIndex = { owner: "purescript", repo: "registry-index" }
-- | The URL of the package storage backend (S3-compatible)
-- | Used for downloading package tarballs.
storageUrl :: String
storageUrl = "https://packages.registry.purescript.org"
-- | The URL of the package operation API
apiUrl :: String
apiUrl = "https://registry.purescript.org/api"
ignoredDirectories :: Array FilePath
ignoredDirectories =
[ ".psci"
, ".psci_modules"
, ".spago"
, "node_modules"
, "bower_components"
-- These files and directories are ignored by the NPM CLI and we are
-- following their lead in ignoring them as well.
, ".git"
, "CVS"
, ".svn"
, ".hg"
-- Additional VCS directories
, "_darcs"
, ".fossil"
, ".jj"
, ".pijul"
]
ignoredFiles :: Array FilePath
ignoredFiles =
[ "package-lock.json"
, "yarn.lock"
, "pnpm-lock.yaml"
]
ignoredGlobs :: Array String
ignoredGlobs =
[ "**/*.*.swp"
, "**/._*"
, "**/.DS_Store"
]
-- | We always include some files and directories when packaging a tarball, in
-- | addition to files users opt-in to with the 'files' key.
includedGlobs :: Array String
includedGlobs =
[ "src/"
, "purs.json"
, "spago.dhall"
, "packages.dhall"
, "bower.json"
, "package.json"
, "spago.yaml"
]
-- | These files are always included and should be globbed in case-insensitive
-- | mode.
includedInsensitiveGlobs :: Array String
includedInsensitiveGlobs =
[ "README*"
, "LICENSE*"
, "LICENCE*"
]