Use cpy-cli to alias the new sourcemap file to the old name

Learning from past experiences, just changing the name of a file is
going to break somebody's code, so let's not go there, even if it
makes more sense.
This commit is contained in:
Julian Gonggrijp
2022-02-25 22:57:21 +01:00
parent 63ecb0bb6e
commit 511b72120f
2 changed files with 4587 additions and 85 deletions

4670
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,6 +17,7 @@
},
"devDependencies": {
"coffeescript": "^1.12.7",
"cpy-cli": "^3.1.1",
"docco": "^0.9.1",
"eslint": "^8.7.0",
"karma": "^6.3.11",
@@ -29,6 +30,7 @@
"scripts": {
"test": "karma start && coffee test/model.coffee && npm run lint",
"build": "uglifyjs backbone.js --mangle --source-map url=backbone-min.js.map -o backbone-min.js",
"alias-sourcemap": "cpy --rename=backbone-min.map backbone-min.js.map .",
"doc": "docco backbone.js && docco examples/todos/todos.js examples/backbone.localStorage.js",
"lint": "eslint backbone.js test/*.js"
},