Skip to content

Commit

Permalink
folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Feb 3, 2024
1 parent fb1bade commit 6389c08
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.exports = {
node: {
extensions: ['.mjs', '.js', '.jsx', '.ts', '.tsx', '.json'],
webpack: {
config: 'webpack/webpack.config.js',
config: 'build/webpack/index.js',
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ local.properties
[Dd]ebug/
[Rr]elease/
x64/
build/
# build/
# [Bb]in/
[Oo]bj/

Expand Down Expand Up @@ -204,7 +204,7 @@ $RECYCLE.BIN/
*.egg
*.egg-info
dist/
build/
# build/
eggs/
parts/
var/
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions webpack/package.json → build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"url": "git+https://github.com/inker/draw.git"
},
"scripts": {
"build": "webpack --color --config webpack.config.js",
"start": "webpack serve --color --env dev --config webpack.config.js"
"build": "webpack --color --config webpack",
"start": "webpack serve --color --env dev --config webpack"
},
"dependencies": {
"@swc/core": "^1.3.64",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion webpack/webpack.config.js → build/webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = env => {

const isDev = envOptions.dev
const outDir = envOptions.out
const rootDir = path.resolve(__dirname, '..')
const rootDir = path.resolve(__dirname, '../..')
const distDir = path.resolve(rootDir, outDir)

return {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"lint": "run-p -c \"lint:css -- {1}\" \"lint:js -- {1}\" --",
"prettier": "prettier --cache --check .",
"check-types": "tsc --project tsconfig.json --noEmit",
"build": "npm run build --prefix webpack",
"start": "npm start --prefix webpack",
"build": "npm run build --prefix build",
"start": "npm start --prefix build",
"test": "vitest"
},
"dependencies": {
Expand Down

0 comments on commit 6389c08

Please sign in to comment.