Skip to content

Commit f38eb0d

Browse files
committed
first commit
0 parents  commit f38eb0d

File tree

544 files changed

+1610386
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

544 files changed

+1610386
-0
lines changed

.eslintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"root": true,
3+
"extends": "@shinyongjun",
4+
"rules": {
5+
"import/no-unresolved": "off",
6+
"react/jsx-filename-extension": "off"
7+
}
8+
}

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
dist
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# lock
26+
yarn.lock
27+
package-lock.json

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"useTabs": false,
7+
"endOfLine": "auto"
8+
}

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## install dependencies
2+
3+
npm i -D @types/node @types/react @types/react-dom @shinyongjun/eslint-config eslint prettier react react-dom typescript -w test
4+
5+
npm i -D @types/node @types/react @types/react-dom @shinyongjun/eslint-config eslint prettier react react-dom typescript concurrently cpy-cli -w package
6+
7+
## React Datepicker
8+
9+
[NPM](https://www.npmjs.com/package/@shinyongjun/react-datepicker)
10+
11+
## Timezone
12+
13+
```js
14+
// 인수가 문자열 타임스태프 일땐 Month를 1부터 카운트한다. UTC를 기준으로 하기때문에 한국 기준 9시를 반환한다.
15+
const NEW_DATE1 = new Date("2023-09-01");
16+
const NEW_DATE2 = new Date("2023-09-01 17:15:00");
17+
// 인수가 숫자형일땐 Month를 0부터 카운트한다. 시간을 생략하면 00시00분00초를 기준으로 한다.
18+
const NEW_DATE3 = new Date(2023, 9, 1);
19+
const NEW_DATE4 = new Date(2023, 9, 1, 12, 0, 0);
20+
// Z를 붙이면 UCT 기준 표준시 (Javascript에서 UCT와 GMT는 같다)
21+
const NEW_DATE5 = new Date("2023-09-03T00:00:00Z");
22+
// Z를 생략하면 LOCAL TIME ZONE
23+
const NEW_DATE6 = new Date("2023-09-03T00:00:00");
24+
```

package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@shinyongjun/react-datepicker-monorepo",
3+
"version": "0.0.1",
4+
"author": "shinyongjun",
5+
"license": "MIT",
6+
"private": true,
7+
"scripts": {
8+
"build": "npm run build -w package",
9+
"watch": "npm run watch -w package",
10+
"dev": "npm run start -w test",
11+
"link": "npm link -w package && npm link @shinyongjun/react-fullpage -w test",
12+
"publish": "npm publish --access public -w package"
13+
},
14+
"workspaces": [
15+
"package",
16+
"test"
17+
]
18+
}

package/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023-present shinyongjun
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

package/devops/copyStyles.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* eslint-disable @typescript-eslint/no-var-requires */
2+
const fs = require("fs-extra");
3+
const chokidar = require("chokidar");
4+
5+
const srcDir = "src"; // 소스 디렉토리
6+
const distDir = "dist"; // 목적지 디렉토리
7+
8+
// srcDir 내의 모든 CSS 파일 감시
9+
const watcher = chokidar.watch(`${srcDir}/**/*.css`, {
10+
persistent: true,
11+
});
12+
13+
// 파일이 추가, 변경 또는 삭제될 때 호출되는 콜백 함수
14+
watcher.on("all", (event, path) => {
15+
console.log(`File ${event}: ${path}`);
16+
17+
// 파일을 목적지로 복사
18+
const relativePath = path.replace(srcDir, ""); // 상대 경로 추출
19+
20+
console.log(relativePath);
21+
const destPath = `${distDir}${relativePath}`; // 목적지 경로 생성
22+
fs.copyFile(path, destPath, (err) => {
23+
if (err) {
24+
console.error("Error copying file:", err);
25+
} else {
26+
console.log(`File ${path} copied to ${destPath}`);
27+
}
28+
});
29+
});
30+
31+
console.log(`Watching CSS files in ${srcDir} and copying to ${distDir}`);
32+
33+
// 프로그램 종료 시 감시 중지
34+
process.on("SIGINT", () => {
35+
watcher.close();
36+
process.exit(0);
37+
});

package/node_modules/.bin/tsc

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package/node_modules/.bin/tsc.cmd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package/node_modules/.bin/tsc.ps1

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)