Skip to content

Commit 1973317

Browse files
committed
monorepo: move core monorepo root directly into core diretory. Makes importing easier: import { dom } from @patternslib/core/dom.
1 parent d79ce7e commit 1973317

File tree

4 files changed

+21
-24
lines changed

4 files changed

+21
-24
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Patternslib is a JavaScript library that enables designers to build rich interactive prototypes without the need for writing any Javascript. All events are triggered by classes and other attributes in the HTML, without abusing the HTML as a programming language. Accessibility, SEO and well structured HTML are core values of Patterns.",
66
"license": "BSD-3-Clause",
77
"dependencies": {
8-
"@patternslib/core": "./src",
8+
"@patternslib/core": "file:./src/core",
99
"@fullcalendar/adaptive": "^5.11.3",
1010
"@fullcalendar/core": "^5.11.3",
1111
"@fullcalendar/daygrid": "^5.11.3",

src/core.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/core/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// @patternslib/core exports
2+
3+
export * from "./polyfills";
4+
export { Base } from "./base";
5+
export { Parser } from "./parser";
6+
export { PushKit } from "./push_kit";
7+
export { Registry, PATTERN_REGISTRY } from "./registry";
8+
export { dom } from "./dom";
9+
export { events } from "./events";
10+
export { logging } from "./logging";
11+
export { utils } from "./utils";
12+
13+
//export * as i18n from "./i18n";
14+
//export * as jquery_ext from "./jquery-ext";
15+
//export * as mockup_parser from "./mockup-parser";
16+
//export * as remove from "./remove";
17+
//export * as store from "./store";
18+
//export * as url from "./url";

src/package.json renamed to src/core/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
"patternslib"
88
],
99
"license": "BSD-3-Clause",
10-
"main": "./core.js",
11-
"files": [
12-
"core/*"
13-
],
10+
"main": "./index.js",
1411
"dependencies": {
15-
"@patternslib/dev": "^2.7.1"
12+
"@patternslib/dev": "^2.7.2"
1613
},
1714
"repository": {
1815
"type": "git",

0 commit comments

Comments
 (0)