@things-factory/i18n-base 7.0.1-alpha.64 → 7.0.1-alpha.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@things-factory/i18n-base",
3
- "version": "7.0.1-alpha.64",
3
+ "version": "7.0.1-alpha.70",
4
4
  "main": "dist-server/index.js",
5
- "browser": "client/index.js",
5
+ "browser": "dist-client/index.js",
6
6
  "things-factory": true,
7
7
  "author": "heartyoh <heartyoh@hatiolab.com>",
8
8
  "description": "Server side for handling translation.",
@@ -17,15 +17,18 @@
17
17
  "directory": "packages/i18n-base"
18
18
  },
19
19
  "scripts": {
20
- "build": "tsc --p tsconfig.json",
21
- "build:server": "npm run clean:server && tsc",
22
- "clean:server": "rm -rf dist-server",
23
- "clean": "npm run clean:server",
20
+ "build": "npm run build:server && npm run build:client",
21
+ "copy:files": "copyfiles -e \"./client/**/*.{ts,js,json}\" -u 1 \"./client/**/*\" dist-client",
22
+ "build:client": "npm run copy:files && npx tsc --p ./client/tsconfig.json",
23
+ "build:server": "npx tsc --p ./server/tsconfig.json",
24
+ "clean:client": "npx rimraf dist-client",
25
+ "clean:server": "npx rimraf dist-server",
26
+ "clean": "npm run clean:server && npm run clean:client",
24
27
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
28
  },
26
29
  "dependencies": {
27
30
  "@operato/i18n": "^2.0.0-alpha.0",
28
- "@things-factory/shell": "^7.0.1-alpha.64"
31
+ "@things-factory/shell": "^7.0.1-alpha.69"
29
32
  },
30
- "gitHead": "d9d40222a2a4b8f9360ffb8baab6a78e84f84c1c"
33
+ "gitHead": "e0eb3093bd92d062f64a26155cecaefcc05e9244"
31
34
  }
@@ -1,4 +1,4 @@
1
- import bootstrap from './client/bootstrap'
1
+ import bootstrap from './dist-client/bootstrap'
2
2
 
3
3
  export default {
4
4
  bootstrap
@@ -1,10 +0,0 @@
1
- import { PageView } from '@things-factory/shell'
2
-
3
- export default function bootstrap() {
4
- /*
5
- * PageView의 lifecycle에 languageUpdate를 추가한다.
6
- */
7
- PageView.prototype.languageUpdated = function(i18next) {
8
- this.pageReset()
9
- }
10
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * @license Copyright © HatioLab Inc. All rights reserved.
3
- */
4
-
5
- import { OxI18n } from '@operato/i18n/ox-i18n.js'
6
-
7
- class I18nMsg extends OxI18n {}
8
-
9
- customElements.define('i18n-msg', I18nMsg)