Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
Revert "refactor: move project config into src"
Browse files Browse the repository at this point in the history
This reverts commit 3b1acc9.
  • Loading branch information
Haoran committed Mar 31, 2021
1 parent 3b1acc9 commit 1a3b990
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/main.js"></script>
<script type="module" src="/src/main.js"></script>
</body>
</html>
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,21 @@
],
"scripts": {
"ci": "yarn install --frozen-lockfile --ignore-engines",
"dev": "yarn workspace @oflatmate/src dev",
"build": "yarn workspace @oflatmate/src build",
"serve": "yarn workspace @oflatmate/src preview",
"dev": "vite",
"build": "vite build",
"serve": "vite preview --port=3000",
"lint": "eslint src/**/*.{js,vue} felafel/*.{js,vue} functions/*.js utils/*.js *.js --fix",
"emulate": "firebase emulators:start --import=./tmp-data --export-on-exit",
"deploy:func": "firebase deploy --only functions",
"env": "yarn env:unset && yarn env:set",
"env:set": "firebase functions:config:set env=\"$(cat functions/env.json)\"",
"env:unset": "firebase functions:config:unset env"
},
"dependencies": {
"@vitejs/plugin-vue": "^1.1.5",
"@vue/compiler-sfc": "^3.0.7",
"vite": "^2.0.5"
},
"devDependencies": {
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.3.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
10 changes: 1 addition & 9 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
"author": "Haoran",
"license": "MIT",
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build",
"serve": "vite preview --port=3000"
},
"dependencies": {
"vue": "^3.0.7",
"vuex": "^4.0.0",
Expand All @@ -26,9 +21,6 @@
},
"devDependencies": {
"autoprefixer": "^10.2.4",
"postcss": "^8.2.6",
"@vitejs/plugin-vue": "^1.1.5",
"@vue/compiler-sfc": "^3.0.7",
"vite": "^2.0.5"
"postcss": "^8.2.6"
}
}
2 changes: 1 addition & 1 deletion src/tailwind.config.js → tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const colors = require('tailwindcss/colors')

module.exports = {
purge: ['./index.html', './**/*.{vue,js}', '../felafel/*.{vue,js}'],
purge: ['./index.html', './src/**/*.{vue,js}', './felafel/*.{vue,js}'],
darkMode: 'class',
theme: {
extend: {
Expand Down
6 changes: 1 addition & 5 deletions src/vite.config.js → vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, './'),
'@': path.resolve(__dirname, './src'),
},
},
build: {
outDir: '../dist',
emptyOutDir: true,
},
})
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,7 @@ domhandler@^2.3.0:
dependencies:
domelementtype "1"

dompurify@^2.2.7:
dompurify@^2.2.6, dompurify@^2.2.7:
version "2.2.7"
resolved "https://registry.npmjs.org/dompurify/-/dompurify-2.2.7.tgz#a5f055a2a471638680e779bd08fc334962d11fd8"
integrity sha512-jdtDffdGNY+C76jvodNTu9jt5yYj59vuTUyx+wXdzcSwAGTYZDAQkQ7Iwx9zcGrA4ixC1syU4H3RZROqRxokxg==
Expand Down

0 comments on commit 1a3b990

Please sign in to comment.