@viewfly/core 0.0.9 → 0.0.11
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from '@viewfly/core';
|
|
2
|
+
export { Fragment, jsx, jsxs } from '@viewfly/core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* JSX namespace for usage with @jsxImportsSource directive
|
|
6
|
+
* when ts compilerOptions.jsx is 'react-jsx'
|
|
7
|
+
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
|
8
|
+
*/
|
|
9
|
+
const jsxDEV = jsx;
|
|
10
|
+
|
|
11
|
+
export { jsxDEV };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@viewfly/core');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* JSX namespace for usage with @jsxImportsSource directive
|
|
7
|
+
* when ts compilerOptions.jsx is 'react-jsx'
|
|
8
|
+
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
|
9
|
+
*/
|
|
10
|
+
const jsxDEV = core.jsx;
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, 'Fragment', {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return core.Fragment; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, 'jsx', {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return core.jsx; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, 'jsxs', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return core.jsxs; }
|
|
23
|
+
});
|
|
24
|
+
exports.jsxDEV = jsxDEV;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment, ViewTypes } from '@viewfly/core';
|
|
2
|
+
import { NativeElements } from '@viewfly/platform-browser';
|
|
3
|
+
/**
|
|
4
|
+
* JSX namespace for usage with @jsxImportsSource directive
|
|
5
|
+
* when ts compilerOptions.jsx is 'react-jsx'
|
|
6
|
+
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
|
7
|
+
*/
|
|
8
|
+
declare const jsxDEV: any;
|
|
9
|
+
export { jsx, jsxs, Fragment, jsxDEV };
|
|
10
|
+
export declare namespace JSX {
|
|
11
|
+
interface ElementClass extends ViewTypes.ElementClass {
|
|
12
|
+
}
|
|
13
|
+
interface IntrinsicElements extends NativeElements, ViewTypes.IntrinsicElements {
|
|
14
|
+
}
|
|
15
|
+
interface IntrinsicAttributes extends ViewTypes.IntrinsicAttributes {
|
|
16
|
+
}
|
|
17
|
+
interface ElementChildrenAttribute extends ViewTypes.ElementChildrenAttribute {
|
|
18
|
+
}
|
|
19
|
+
interface IntrinsicClassAttributes<T> extends ViewTypes.IntrinsicClassAttributes<T> {
|
|
20
|
+
}
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Viewfly is a simple and easy-to-use JavaScript framework with an intuitive development experience.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
7
7
|
"typings": "./bundles/public-api.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build:lib": "rimraf bundles && npm run build:jsx && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
9
|
+
"build:lib": "rimraf bundles && npm run build:jsx && npm run build:dev-jsx && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
10
10
|
"build:jsx": "rimraf jsx-runtime/index.* && rollup --config rollup-jsx.config.ts --configPlugin @rollup/plugin-typescript",
|
|
11
|
+
"build:dev-jsx": "rimraf jsx-dev-runtime/index.* && rollup --config rollup-dev-jsx.config.ts --configPlugin @rollup/plugin-typescript",
|
|
11
12
|
"publish:lib": "npm run build:lib && npm publish --access=public"
|
|
12
13
|
},
|
|
13
14
|
"license": "MIT",
|
|
@@ -35,5 +36,5 @@
|
|
|
35
36
|
"bugs": {
|
|
36
37
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "348c5d24151caa8f1ac5099ab2bce2a1cff861d5"
|
|
39
40
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import commonjs from '@rollup/plugin-commonjs'
|
|
2
|
+
import typescript from '@rollup/plugin-typescript'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
input: 'jsx.ts',
|
|
6
|
+
output: [
|
|
7
|
+
{
|
|
8
|
+
file: './jsx-dev-runtime/index.js',
|
|
9
|
+
format: 'cjs'
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
file: './jsx-dev-runtime/index.esm.js',
|
|
13
|
+
format: 'esm'
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
plugins: [
|
|
17
|
+
commonjs(),
|
|
18
|
+
typescript({
|
|
19
|
+
tsconfig: './tsconfig-dev-jsx.json',
|
|
20
|
+
compilerOptions: {
|
|
21
|
+
paths: {}
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"declarationDir": "./jsx-dev-runtime",
|
|
5
|
+
"useDefineForClassFields": false,
|
|
6
|
+
"emitDecoratorMetadata": true,
|
|
7
|
+
"experimentalDecorators": true,
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"lib": [
|
|
10
|
+
"esnext",
|
|
11
|
+
"dom"
|
|
12
|
+
],
|
|
13
|
+
"target": "es6",
|
|
14
|
+
"strict": true,
|
|
15
|
+
"module": "es2020",
|
|
16
|
+
"moduleResolution": "node",
|
|
17
|
+
"inlineSourceMap": true,
|
|
18
|
+
"inlineSources": true,
|
|
19
|
+
"noImplicitAny": false,
|
|
20
|
+
"outDir": "jsx-dev-runtime/",
|
|
21
|
+
"downlevelIteration": true,
|
|
22
|
+
"paths": {
|
|
23
|
+
"@viewfly/core": [
|
|
24
|
+
"./src/public-api.ts"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"include": [
|
|
29
|
+
"jsx.ts"
|
|
30
|
+
]
|
|
31
|
+
}
|