From d427da5e2091f88d1f6853d27953c458c4a55f05 Mon Sep 17 00:00:00 2001 From: uosl Date: Thu, 17 Oct 2019 10:14:18 +0100 Subject: [PATCH] Remove bower dependency --- .bowerrc | 3 --- .gitignore | 1 + .npmignore | 6 ++++++ .travis.yml | 3 +-- README.md | 5 +++-- bower.json | 23 ----------------------- devapproach.md | 2 +- resources/public/index.html | 24 ++++++++---------------- 8 files changed, 20 insertions(+), 47 deletions(-) delete mode 100644 .bowerrc create mode 100644 .npmignore delete mode 100644 bower.json diff --git a/.bowerrc b/.bowerrc deleted file mode 100644 index e740549..0000000 --- a/.bowerrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "directory": "resources/public/vendor" -} \ No newline at end of file diff --git a/.gitignore b/.gitignore index b055eb8..d4e0af0 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ node_modules /.cljs_node_repl/ /.lein-repl-history /.lsp/ +/figwheel_server.log diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..057ff09 --- /dev/null +++ b/.npmignore @@ -0,0 +1,6 @@ +**/.* +node_modules +bower_components +resources/public/vendor +test +tests diff --git a/.travis.yml b/.travis.yml index 5556c8f..2f43a31 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,9 +10,8 @@ before_script: - travis_retry lein deps # check code is well formatted - lein cljfmt check - # setup dependencies + # setup node dependencies - npm install - - bower install script: # Run unit tests diff --git a/README.md b/README.md index 92d51c8..381229f 100644 --- a/README.md +++ b/README.md @@ -102,10 +102,9 @@ When a table first loads it only renders the first page of the query results as ### Initial setup -Once you've checked out this project, you'll need to download the css dependencies using [bower](https://bower.io/). You'll also need npm to run the unit tests. Once you have them both installed, run the following. +If you want to run the unit tests, you'll need Node.js and npm. Once these have been installed, run the following. ``` -bower install npm install ``` @@ -149,6 +148,8 @@ Wait a bit, then browse to [http://localhost:3448](http://localhost:3448). ### Run tests: +Make sure to first run `npm install` to install the dependencies required to run the unit tests. You can also add `--watch` to the command below to automatically re-run tests when saving files. + ``` lein kaocha ``` diff --git a/bower.json b/bower.json deleted file mode 100644 index b2c24b1..0000000 --- a/bower.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "im-tables-3", - "homepage": "https://github.com/joshkh/im-tables-3", - "authors": [ - "Joshua Heimbach " - ], - "description": "", - "main": "", - "license": "MIT", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "resources/public/vendor", - "test", - "tests" - ], - "devDependencies": { - "bootstrap": "^3.3.7" - }, - "dependencies": { - } -} diff --git a/devapproach.md b/devapproach.md index b79ab98..e153edf 100644 --- a/devapproach.md +++ b/devapproach.md @@ -1,6 +1,6 @@ # im-tables 3 dev approach -IM tables 3 is designed to exist standalone or embedded inside another [re-frame](https://github.com/Day8/re-frame) application such as [BlueGenes](https://github.com/intermine/redgenes), InterMine's new UI. +IM tables 3 is designed to exist standalone or embedded inside another [re-frame](https://github.com/Day8/re-frame) application such as [BlueGenes](https://github.com/intermine/bluegenes), InterMine's new UI. From here on, we're assuming you have familiarity with re-frame. diff --git a/resources/public/index.html b/resources/public/index.html index c99e5c3..abed6b1 100644 --- a/resources/public/index.html +++ b/resources/public/index.html @@ -1,26 +1,18 @@ - - - - - - - - + + - - - - - + + + + + +