Skip to content

Commit

Permalink
Use: Corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
CaffeeLake committed Jul 15, 2023
1 parent ed5a9a2 commit 908e0ef
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
* text=auto eol=lf
18 changes: 18 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
Access-Control-Allow-Origin: *

/**/css/*
Access-Control-Allow-Origin: *
X-Robots-Tag: nosnippet, noindex

/**/img/*
Access-Control-Allow-Origin: *
X-Robots-Tag: nosnippet

/**/js/*
Access-Control-Allow-Origin: *
X-Robots-Tag: nosnippet, noindex

https://:works-misw-jp.pages.dev/*
Access-Control-Allow-Origin: *
X-Robots-Tag: nosnippet, noindex
Empty file added _redirects
Empty file.
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

corepack enable
corepack prepare pnpm@latest --activate
pnpm i --frozen-lockfile
pnpm build
mv -v _headers dist/
mv -v _redirects dist/

exit
Empty file added functions/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"start": "gulp",
"watch": "gulp"
},
"dependencies": {},
"devDependencies": {
"@squoosh/cli": "0.7.3",
"autoprefixer": "10.4.14",
Expand Down

0 comments on commit 908e0ef

Please sign in to comment.