Added JS to minifier
parent
6903b6c69a
commit
fbbc290798
|
@ -13,9 +13,8 @@ config/env/*
|
|||
!config/env/sample.js
|
||||
!config/env/travis.js
|
||||
|
||||
# Minified or bundled static files (can be built with `npm run minify && npm run build`)
|
||||
static/css/*.min.*
|
||||
static/**/*.bun.*
|
||||
# Minified static files
|
||||
static/**/*.min.*
|
||||
|
||||
# Ignore docs files
|
||||
_gh_pages
|
||||
|
|
|
@ -7,7 +7,7 @@ branches:
|
|||
before_script:
|
||||
- echo "module.exports = require('./travis.js')" > config/env/env.js
|
||||
script:
|
||||
- npm run minify & npm run build
|
||||
- npm run minify
|
||||
|
||||
# Send coverage data to Coveralls
|
||||
after_script:
|
||||
|
|
|
@ -35,7 +35,7 @@ Then edit `config/env/local-config.js` to match your local environment.
|
|||
Run Tracman with npm:
|
||||
|
||||
```sh
|
||||
(npm run minify & npm run build) && npm start
|
||||
npm run minify && npm start
|
||||
```
|
||||
|
||||
...or with [nodemon](https://nodemon.io/):
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
"start": "node server.js",
|
||||
"nodemon": "nodemon --ignore 'static/**/*.min.*' server.js",
|
||||
"update": "sudo npm update && sudo npm prune",
|
||||
"minify": "minify --template .{{filename}}.min.{{ext}} --clean static/css*"
|
||||
"minify": "rm static/**/.*.min.* && minify --template .{{filename}}.min.{{ext}} --clean static/js ; minify --template .{{filename}}.min.{{ext}} --clean static/css"
|
||||
},
|
||||
"repository": "Tracman-org/Server",
|
||||
"keywords": [
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
'use strict'
|
||||
/* global alert mapuser userid disp noHeader mapKey navigator token */
|
||||
/* global alert io $ loadGoogleMapsAPI mapuser userid disp noHeader mapKey navigator token */
|
||||
|
||||
import io from 'socket.io-client'
|
||||
import $ from 'jquery'
|
||||
import loadGoogleMapsAPI from 'load-google-maps-api'
|
||||
|
||||
// Variables
|
||||
var map, marker, elevator, newLoc
|
||||
|
|
Loading…
Reference in New Issue