Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
build: switch dev process to vite
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed May 18, 2021
1 parent 0adaa43 commit 1f36ba8
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 6 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ coverage
tsconfig.json
rollup.config.js
jest.config.js
vite.config.ts
.gitignore
.babelrc
.travis.yml
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"browser": "dist/lucia.min.js",
"types": "dist/types/index.d.ts",
"scripts": {
"dev": "sh scripts/dev.sh",
"dev": "vite",
"build": "sh scripts/build.sh",
"lint": "eslint src/**",
"lint:fix": "eslint src/** --fix",
Expand Down Expand Up @@ -81,6 +81,7 @@
"tslib": "^2.2.0",
"ttypescript": "^1.5.12",
"typescript": "^4.2.4",
"typescript-transform-paths": "^2.2.3"
"typescript-transform-paths": "^2.2.3",
"vite": "^2.3.3"
}
}
2 changes: 0 additions & 2 deletions scripts/dev.sh

This file was deleted.

12 changes: 12 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { resolve } from 'path';

export default {
resolve: {
alias: {
'@core': resolve(__dirname, 'src/core'),
'@directives': resolve(__dirname, 'src/core/directives'),
'@utils': resolve(__dirname, 'src/core/utils'),
'@models': resolve(__dirname, 'src/models'),
},
},
};
30 changes: 28 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2816,7 +2816,7 @@ error-ex@^1.3.1:
dependencies:
is-arrayish "^0.2.1"

esbuild@^0.11.1:
esbuild@^0.11.1, esbuild@^0.11.23:
version "0.11.23"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.11.23.tgz#c42534f632e165120671d64db67883634333b4b8"
integrity sha512-iaiZZ9vUF5wJV8ob1tl+5aJTrwDczlvGP0JoMmnpC2B0ppiMCu8n8gmy5ZTGl5bcG081XBVn+U+jP+mPFm5T5Q==
Expand Down Expand Up @@ -4922,6 +4922,11 @@ ms@^2.0.0:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==

nanoid@^3.1.23:
version "3.1.23"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.23.tgz#f744086ce7c2bc47ee0a8472574d5c78e4183a81"
integrity sha512-FiB0kzdP0FFVGDKlRLEQ1BgDzU87dy5NnzjeW9YZNt+/c3+q82EQDUwniSAUxp/F0gFNI1ZhKU1FqYsMuqZVnw==

nanomatch@^1.2.9:
version "1.2.13"
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
Expand Down Expand Up @@ -5387,6 +5392,15 @@ posix-character-classes@^0.1.0:
resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=

postcss@^8.2.10:
version "8.2.15"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.2.15.tgz#9e66ccf07292817d226fc315cbbf9bc148fbca65"
integrity sha512-2zO3b26eJD/8rb106Qu2o7Qgg52ND5HPjcyQiK2B98O388h43A448LCslC0dI2P97wCAQRJsFvwTRcXxTKds+Q==
dependencies:
colorette "^1.2.2"
nanoid "^3.1.23"
source-map "^0.6.1"

prelude-ls@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
Expand Down Expand Up @@ -5785,7 +5799,7 @@ rollup-plugin-typescript2@^0.30.0:
resolve "1.20.0"
tslib "2.1.0"

[email protected]:
[email protected], rollup@^2.38.5:
version "2.48.0"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.48.0.tgz#fceb01ed771f991f29f7bd2ff7838146e55acb74"
integrity sha512-wl9ZSSSsi5579oscSDYSzGn092tCS076YB+TQrzsGuSfYyJeep8eEWj0eaRjuC5McuMNmcnR8icBqiE/FWNB1A==
Expand Down Expand Up @@ -6727,6 +6741,18 @@ [email protected]:
core-util-is "1.0.2"
extsprintf "^1.2.0"

vite@^2.3.3:
version "2.3.3"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.3.3.tgz#7e88a71abd03985c647789938d784cce0ee3b0fd"
integrity sha512-eO1iwRbn3/BfkNVMNJDeANAFCZ5NobYOFPu7IqfY7DcI7I9nFGjJIZid0EViTmLDGwwSUPmRAq3cRBbO3+DsMA==
dependencies:
esbuild "^0.11.23"
postcss "^8.2.10"
resolve "^1.19.0"
rollup "^2.38.5"
optionalDependencies:
fsevents "~2.3.1"

w3c-hr-time@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd"
Expand Down

0 comments on commit 1f36ba8

Please sign in to comment.