Skip to content

Commit

Permalink
Mods dev server (#16)
Browse files Browse the repository at this point in the history
* Development server as its own package

* Use mods-dev-server in examples

Co-authored-by: Erik Brandin <[email protected]>
  • Loading branch information
objerke and ebrandin authored Mar 2, 2021
1 parent f1f9c89 commit de381bf
Show file tree
Hide file tree
Showing 30 changed files with 5,413 additions and 973 deletions.
9 changes: 9 additions & 0 deletions examples/js-areachart-d3/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/js-areachart-d3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"server": "node development-server.js dist",
"server": "mods-dev-server dist",
"build": "webpack --mode production --devtool false",
"build-watch": "webpack --watch",
"start": "npm run build-watch"
Expand All @@ -16,12 +16,12 @@
"@babel/core": "^7.12.10",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@tibco/spotfire-mods-dev-server": "^1.0.0",
"babel-loader": "^8.2.2",
"copy-webpack-plugin": "^6.4.1",
"core-js": "^3.8.3",
"d3": "^5.14.2",
"live-server": "^1.2.1",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12"
}
}
}
110 changes: 0 additions & 110 deletions examples/js-dev-barchart-googlecharts/development-server.js

This file was deleted.

11 changes: 10 additions & 1 deletion examples/js-dev-barchart-googlecharts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/js-dev-barchart-googlecharts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"description": "",
"scripts": {
"start": "npm install && npm run server",
"server": "node development-server.js src"
"server": "mods-dev-server src"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"live-server": "^1.2.1",
"@tibco/spotfire-mods-dev-server": "^1.0.0",
"@types/google.visualization": "0.0.51"
},
"dependencies": {}
}
}
110 changes: 0 additions & 110 deletions examples/js-dev-barchart/development-server.js

This file was deleted.

Loading

0 comments on commit de381bf

Please sign in to comment.