Skip to content

Commit

Permalink
internal 폴더 underscore로 시작하도록 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
shine1594 committed Jan 7, 2021
1 parent 5f3ada9 commit a253a9c
Show file tree
Hide file tree
Showing 56 changed files with 40 additions and 40 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "module",
"scripts": {
"generate:index": "node scripts/index_generator.js",
"copy-files": "rm src/index.js && mv src/.internal ./ && mv src/*.js ./ && rm -rf src",
"copy-files": "rm src/index.js && mv src/_internal ./ && mv src/*.js ./ && rm -rf src",
"build:modern": "NODE_ENV=production BABEL_ENV=modern webpack",
"build:legacy": "NODE_ENV=production BABEL_ENV=legacy webpack",
"build": "npm run generate:index && npm run build:modern && npm run build:legacy && npm run copy-files",
Expand All @@ -17,7 +17,7 @@
},
"files": [
"dist",
".internal",
"_internal",
"*.js"
],
"repository": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/addClass.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import methodClass from "./.internal/_methodClass.js";
import methodClass from "./_internal/_methodClass.js";

export default methodClass("add");
2 changes: 1 addition & 1 deletion src/css.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { curry, object } from "fxjs/es";
import mapL from "fxjs/es/Lazy/mapL.js";
import toCamel from "./.internal/_toCamel.js";
import toCamel from "./_internal/_toCamel.js";

export default curry(function _css(k, el) {
return typeof k == "string"
Expand Down
4 changes: 2 additions & 2 deletions src/data.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import go from "fxjs/es/Strict/go.js";
import ifElse from "fxjs/es/Strict/ifElse.js";
import pipe from "fxjs/es/Strict/pipe.js";
import dataMap from "./.internal/_dataMap.js";
import _parseDataStr from "./.internal/_parseDataStr.js";
import dataMap from "./_internal/_dataMap.js";
import _parseDataStr from "./_internal/_parseDataStr.js";
import attr from "./attr.js";
import setAttr from "./setAttr.js";
import setData from "./setData.js";
Expand Down
2 changes: 1 addition & 1 deletion src/del.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import fetchWithBody from "./.internal/_fetchWithBody.js";
import fetchWithBody from "./_internal/_fetchWithBody.js";

export default fetchWithBody("DELETE");
2 changes: 1 addition & 1 deletion src/elWidth.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import css from "./css.js";
import cssF from "./.internal/_cssF.js";
import cssF from "./_internal/_cssF.js";
import show from "./show.js";
import hide from "./hide.js";

Expand Down
2 changes: 1 addition & 1 deletion src/find.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import baseFind from "./.internal/_baseFind.js";
import baseFind from "./_internal/_baseFind.js";

export default baseFind("querySelector");
2 changes: 1 addition & 1 deletion src/findAll.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import baseFind from "./.internal/_baseFind.js";
import baseFind from "./_internal/_baseFind.js";
export default baseFind("querySelectorAll");
4 changes: 2 additions & 2 deletions src/get.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { curry, go } from "fxjs/es";
import fetchBaseOptF from "./.internal/_fetchBaseOptF.js";
import resJSON from "./.internal/_resJSON.js";
import fetchBaseOptF from "./_internal/_fetchBaseOptF.js";
import resJSON from "./_internal/_resJSON.js";
import param from "./param.js";

export default curry((url, data, headers) =>
Expand Down
2 changes: 1 addition & 1 deletion src/height.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import docWidth from "./.internal/_docWidth.js";
import docWidth from "./_internal/_docWidth.js";
import elWidth from "./elWidth.js";

export default (el) =>
Expand Down
2 changes: 1 addition & 1 deletion src/hide.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import getPrevDisplay from "./.internal/_getPrevDisplay.js";
import getPrevDisplay from "./_internal/_getPrevDisplay.js";

export default (el) => {
const prev_display = el.style.display;
Expand Down
2 changes: 1 addition & 1 deletion src/is.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { curry } from "fxjs/es";
import matches from "./.internal/_matches.js";
import matches from "./_internal/_matches.js";

export default curry((sel, el) => el && matches.call(el, sel));
2 changes: 1 addition & 1 deletion src/next.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import nextOrPrev from "./.internal/_nextOrPrev.js";
import nextOrPrev from "./_internal/_nextOrPrev.js";

export default nextOrPrev("nextSibling");
2 changes: 1 addition & 1 deletion src/nextAll.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import nextOrPrevAll from "./.internal/_nextOrPrevAll.js";
import nextOrPrevAll from "./_internal/_nextOrPrevAll.js";

export default nextOrPrevAll("nextSibling", "push");
2 changes: 1 addition & 1 deletion src/nextUntil.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import nextOrPrevUntil from "./.internal/_nextOrPrevUntil.js";
import nextOrPrevUntil from "./_internal/_nextOrPrevUntil.js";

export default nextOrPrevUntil("nextSibling", "push");
2 changes: 1 addition & 1 deletion src/off.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import baseOnOff from "./.internal/_baseOnOff.js";
import baseOnOff from "./_internal/_baseOnOff.js";

export default baseOnOff("removeEventListener");
2 changes: 1 addition & 1 deletion src/on.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import baseOnOff from "./.internal/_baseOnOff.js";
import baseOnOff from "./_internal/_baseOnOff.js";

export default baseOnOff("addEventListener");
2 changes: 1 addition & 1 deletion src/parent.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import nextOrPrev from "./.internal/_nextOrPrev.js";
import nextOrPrev from "./_internal/_nextOrPrev.js";

export default nextOrPrev("parentNode");
2 changes: 1 addition & 1 deletion src/parents.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import nextOrPrevAll from "./.internal/_nextOrPrevAll.js";
import nextOrPrevAll from "./_internal/_nextOrPrevAll.js";

export default nextOrPrevAll("parentNode", "push");
2 changes: 1 addition & 1 deletion src/parentsUntil.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import nextOrPrevUntil from "./.internal/_nextOrPrevUntil.js";
import nextOrPrevUntil from "./_internal/_nextOrPrevUntil.js";

export default nextOrPrevUntil("parentNode", "push");
2 changes: 1 addition & 1 deletion src/post.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import fetchWithBody from "./.internal/_fetchWithBody.js";
import fetchWithBody from "./_internal/_fetchWithBody.js";

export default fetchWithBody("POST");
2 changes: 1 addition & 1 deletion src/prev.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import nextOrPrev from "./.internal/_nextOrPrev.js";
import nextOrPrev from "./_internal/_nextOrPrev.js";

export default nextOrPrev("previousSibling");
2 changes: 1 addition & 1 deletion src/prevAll.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import nextOrPrevAll from "./.internal/_nextOrPrevAll.js";
import nextOrPrevAll from "./_internal/_nextOrPrevAll.js";

export default nextOrPrevAll("previousSibling", "unshift");
2 changes: 1 addition & 1 deletion src/prevUntil.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import nextOrPrevUntil from "./.internal/_nextOrPrevUntil.js";
import nextOrPrevUntil from "./_internal/_nextOrPrevUntil.js";

export default nextOrPrevUntil("previousSibling", "unshift");
2 changes: 1 addition & 1 deletion src/put.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import fetchWithBody from "./.internal/_fetchWithBody.js";
import fetchWithBody from "./_internal/_fetchWithBody.js";

export default fetchWithBody("PUT");
2 changes: 1 addition & 1 deletion src/removeClass.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import methodClass from "./.internal/_methodClass.js";
import methodClass from "./_internal/_methodClass.js";

export default methodClass("remove");
2 changes: 1 addition & 1 deletion src/scrollLeft.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import baseScroll from "./.internal/_baseScroll.js";
import baseScroll from "./_internal/_baseScroll.js";

export default (el) => baseScroll(el, undefined, "pageXOffset", "scrollLeft");
2 changes: 1 addition & 1 deletion src/scrollTop.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import baseScroll from "./.internal/_baseScroll.js";
import baseScroll from "./_internal/_baseScroll.js";

export default (el) => baseScroll(el, undefined, "pageYOffset", "scrollTop");
4 changes: 2 additions & 2 deletions src/setCss.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { curry, isArray, each } from "fxjs/es";
import entriesL from "fxjs/es/Lazy/entriesL.js";
import toCamel from "./.internal/_toCamel.js";
import addPx from "./.internal/_addPx.js";
import toCamel from "./_internal/_toCamel.js";
import addPx from "./_internal/_addPx.js";

export default curry(function _setCss(kv, el) {
if (isArray(kv)) {
Expand Down
2 changes: 1 addition & 1 deletion src/setData.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { curry } from "fxjs/es";
import dataMap from "./.internal/_dataMap.js";
import dataMap from "./_internal/_dataMap.js";

export default curry((data, el) => {
dataMap.set(el, data);
Expand Down
2 changes: 1 addition & 1 deletion src/setScrollLeft.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { curry } from "fxjs/es";
import baseScroll from "./.internal/_baseScroll.js";
import baseScroll from "./_internal/_baseScroll.js";

export default curry((val, el) =>
baseScroll(el, val, "pageXOffset", "scrollLeft")
Expand Down
2 changes: 1 addition & 1 deletion src/setScrollTop.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { curry } from "fxjs/es";
import baseScroll from "./.internal/_baseScroll.js";
import baseScroll from "./_internal/_baseScroll.js";

export default curry((val, el) =>
baseScroll(el, val, "pageYOffset", "scrollTop")
Expand Down
4 changes: 2 additions & 2 deletions src/show.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import css from "./css.js";
import getDefaultDisplays from "./.internal/_getDefaultDisplays.js";
import getPrevDisplay from "./.internal/_getPrevDisplay.js";
import getDefaultDisplays from "./_internal/_getDefaultDisplays.js";
import getPrevDisplay from "./_internal/_getPrevDisplay.js";
export default (el) => {
let display = "";
if (el.style.display == "none") {
Expand Down
2 changes: 1 addition & 1 deletion src/toggleClass.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import methodClass from "./.internal/_methodClass.js";
import methodClass from "./_internal/_methodClass.js";

export default methodClass("toggle");
2 changes: 1 addition & 1 deletion src/width.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import docWidth from "./.internal/_docWidth.js";
import docWidth from "./_internal/_docWidth.js";
import elWidth from "./elWidth.js";

export default (el) =>
Expand Down

0 comments on commit a253a9c

Please sign in to comment.