Skip to content

Commit

Permalink
chore: move output to dot-directories
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Mar 30, 2023
1 parent df611d8 commit e3aefdd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
dist
out
.dist
.out
public/leaflet.css
public/images
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package-lock.json
*.md
dist
out
.dist
.out
public/leaflet.css
public/images
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
"url": "git+https://github.com/nobkd/replace-maps.git"
},
"scripts": {
"leaflet": "cp node_modules/leaflet/dist/leaflet.css public/leaflet.css && cp -r node_modules/leaflet/dist/images public",
"icons": "svgexport icons/plain.svg public/icons/48.png 48:48 && svgexport icons/plain.svg public/icons/96.png 96:96",
"leaflet": "cp node_modules/leaflet/dist/leaflet.css public/leaflet.css && cp -r node_modules/leaflet/dist/images public",
"format": "prettier . --write",
"build": "nr leaflet && tsc && vite build",
"watch": "nr leaflet && vite build --watch --mode development --minify false",
"dev": "nr leaflet && vite",
"serve:firefox": "web-ext run -s ./dist/",
"serve:chrome": "web-ext run -t chromium -s dist",
"bundle": "web-ext build -s dist -a out"
"serve:firefox": "web-ext run -s .dist",
"serve:chrome": "web-ext run -t chromium -s .dist",
"bundle": "nr build && web-ext build -s .dist -a .out"
},
"devDependencies": {
"@antfu/ni": "^0.21.2",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
root: 'src',
publicDir: '../public',
build: {
outDir: '../dist',
outDir: '../.dist',
emptyOutDir: true,
rollupOptions: {
input: {
Expand Down

0 comments on commit e3aefdd

Please sign in to comment.