Skip to content

Commit 9ed1535

Browse files
authored
improvement: package structure (#233)
1 parent 66fc1fd commit 9ed1535

Some content is hidden

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

64 files changed

+381
-283
lines changed

jest.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ module.exports = {
9696

9797
// A map from regular expressions to module names that allow to stub out resources with a single module
9898
moduleNameMapper: {
99-
'^@intlify/core/src/runtime$': '<rootDir>/packages/core/src/index.ts',
10099
'^@intlify/(.*?)$': '<rootDir>/packages/$1/src',
101100
'vue-i18n': '<rootDir>/packages/vue-i18n/src'
102101
},

packages/core-base/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 kazuya kawaguchi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
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, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

packages/core-base/README.md

Lines changed: 7 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../../api-extractor.json",
3+
"mainEntryPointFilePath": "./dist/packages/<unscopedPackageName>/src/index.d.ts",
4+
"dtsRollup": {
5+
"publicTrimmedFilePath": "./dist/<unscopedPackageName>.d.ts"
6+
}
7+
}

packages/core-base/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict'
2+
3+
if (process.env.NODE_ENV === 'production') {
4+
module.exports = require('./dist/core-base.cjs.prod.js')
5+
} else {
6+
module.exports = require('./dist/core-base.cjs.js')
7+
}

packages/core-base/package.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"name": "@intlify/core-base",
3+
"version": "9.0.0-beta.12",
4+
"description": "@intlify/core-base",
5+
"keywords": [
6+
"core",
7+
"fundamental",
8+
"i18n",
9+
"internationalization",
10+
"intlify"
11+
],
12+
"license": "MIT",
13+
"author": {
14+
"name": "kazuya kawaguchi",
15+
"email": "[email protected]"
16+
},
17+
"homepage": "https://github.com/intlify/vue-i18n-next/tree/master/packages/core-base#readme",
18+
"repository": {
19+
"type": "git",
20+
"url": "git+https://github.com/intlify/vue-i18n-next.git",
21+
"directory": "packages/core"
22+
},
23+
"bugs": {
24+
"url": "https://github.com/intlify/vue-i18n-next/issues"
25+
},
26+
"files": [
27+
"index.js",
28+
"dist"
29+
],
30+
"main": "index.js",
31+
"module": "dist/core-base.esm-bundler.js",
32+
"unpkg": "dist/core-base.global.js",
33+
"jsdelivr": "dist/core-base.global.js",
34+
"types": "dist/core-base.d.ts",
35+
"dependencies": {
36+
"@intlify/message-compiler": "9.0.0-beta.12",
37+
"@intlify/message-resolver": "9.0.0-beta.12",
38+
"@intlify/runtime": "9.0.0-beta.12",
39+
"@intlify/shared": "9.0.0-beta.12"
40+
},
41+
"engines": {
42+
"node": ">= 10"
43+
},
44+
"buildOptions": {
45+
"name": "IntlifyCoreBase",
46+
"formats": [
47+
"esm-bundler",
48+
"esm-browser",
49+
"cjs",
50+
"global"
51+
]
52+
},
53+
"sideEffects": false
54+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)