# IndoorPosition.Web **Repository Path**: gnssmonitoring/web ## Basic Information - **Project Name**: IndoorPosition.Web - **Description**: 室内定位管理后台 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-12-13 - **Last Updated**: 2023-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 室内定位管理后台 ## 脚手架 yeoman generator-webap 运行 ``` npm run start ``` 生成 ``` npm run build ``` ## 模块化开发 gulp-file-include ``` npm install gulp-file-include -D ``` 在gulpfile.js中配置 ```javascript function include() { return src('app/**/*.html') .pipe($.fileInclude({ prefix: '@@', basepath: '@file' })) .pipe(dest('.tmp')) .pipe(server.reload({ stream: true })); } function html() { return src('app/*.html') .pipe($.useref({ searchPath: ['.tmp', 'app', '.'] })) .pipe($.if('*.html', $.fileInclude({ prefix: '@@', basepath: '@file' }))) .pipe($.if(/\.js$/, $.uglify({ compress: { drop_console: true } }))) .pipe($.if(/\.css$/, $.postcss([cssnano({ safe: true, autoprefixer: false })]))) .pipe($.if(/\.html$/, $.htmlmin({ collapseWhitespace: true, minifyCSS: true, minifyJS: { compress: { drop_console: true } }, processConditionalComments: true, removeComments: true, removeEmptyAttributes: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true }))) .pipe(dest('dist')); } function startAppServer() { server.init({ notify: false, port, server: { baseDir: ['.tmp', 'app'], routes: { '/node_modules': 'node_modules' } } }); watch([ 'app/*.html', 'app/images/**/*', '.tmp/fonts/**/*' ]).on('change', server.reload); watch('app/**/*.html', include); watch('app/styles/**/*.scss', styles); watch('app/scripts/**/*.js', scripts); watch('modernizr.json', modernizr); watch('app/fonts/**/*', fonts); } if (isDev) { serve = series(clean, parallel(include, styles, scripts, modernizr, fonts), startAppServer); } ``` ## 用到的库 - [Cesium](https://www.cesium.com/)用于地理级别的三维展示