Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions packages/layer-gltf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@
},
"main": "dist/maptalks.gltf.js",
"module": "dist/maptalks.gltf.es.js",
"types": "dist/index.d.ts",
"unpkg": "dist/maptalks.gltf.js",
"jsdelivr": "dist/maptalks.gltf.js",
"files": [
"dist/maptalks.gltf.js",
"dist/maptalks.gltf.js.map",
"dist/maptalks.gltf.es.js",
"dist/maptalks.gltf.es.js.map"
"dist"
],
"scripts": {
"tsc": "tsc",
"clean": "rimraf dist",
"dev": "rollup -w -c rollup.config.js",
"build": "npm run clean && npm run lint && rollup --environment BUILD:production -c rollup.config.js",
"build": "npm run clean && npm run lint && npm run tsc && rollup --environment BUILD:production -c rollup.config.js",
"build-dev": "rollup -c rollup.config.js",
"pretest": "cd ../gltf-loader && npm run build && cd ../gl && npm run build && cd ../analysis && npm run build && cd ../layer-gltf && npm run build",
"test": "karma start --single-run",
Expand All @@ -37,6 +36,7 @@
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"eslint": "^8.57.0",
"eslint-plugin-mocha": "^10.5.0",
"expect.js": "^0.3.1",
Expand All @@ -49,12 +49,15 @@
"karma-mocha-reporter": "^2.2.5",
"maptalks": "workspace:*",
"mocha": "^10.3.0",
"rollup": "^4.17.2"
"rollup": "^4.17.2",
"tslib": "^2.6.2",
"typescript": "^5.4.2",
"typescript-eslint": "^7.18.0"
},
"dependencies": {
"@maptalks/feature-filter": "^1.3.0",
"@maptalks/function-type": "^1.4.0",
"frustum-intersects": "^0.2.4"
},
"gitHead": "9eeea4807723d460fa7e09969c6556d53f6bed84"
}
}
4 changes: 4 additions & 0 deletions packages/layer-gltf/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { nodeResolve: resolve } = require('@rollup/plugin-node-resolve');
const commonjs = require('@rollup/plugin-commonjs');
const terser = require('@rollup/plugin-terser');
const typescript = require("@rollup/plugin-typescript");
const replace = require('@rollup/plugin-replace');
const pkg = require('./package.json');

Expand Down Expand Up @@ -114,6 +115,7 @@ module.exports = [
plugins: [
resolve({}),
commonjs(),
typescript(),
replace({
// 'this.exports = this.exports || {}': '',
'(function (exports) {': 'function (exports) {',
Expand Down Expand Up @@ -149,6 +151,7 @@ module.exports = [
// https://github.com/mapbox/mapbox-gl-js/pull/6956
ignoreGlobal: true
}),
typescript(),
glsl()
].concat(plugins),
external: ['maptalks', '@maptalks/gl'],
Expand Down Expand Up @@ -193,6 +196,7 @@ if (production) {
// https://github.com/mapbox/mapbox-gl-js/pull/6956
ignoreGlobal: true
}),
typescript(),
glsl()
].concat(plugins),
output: {
Expand Down
17 changes: 17 additions & 0 deletions packages/layer-gltf/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"skipLibCheck": true,
"importHelpers": true,
"lib": ["esnext", "dom"],
"outDir": "./dist/",
"rootDir": "./src",
"baseUrl": "./"
},
"include": ["src/**/*"],
"exclude": [
"node_modules",
"dist",
"rollup.config.js"
]
}