Skip to content

Commit

Permalink
get rid of a load of build stuff; simplify, fix vulns, simplify CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mwri committed Jun 8, 2019
1 parent c491bc9 commit 1afda2e
Show file tree
Hide file tree
Showing 13 changed files with 4,665 additions and 4,317 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/coverage/
/node_modules/
/.nyc_output/
14 changes: 2 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
language: node_js
node_js:
- "4"
- "6"
- "8"
dist: trusty
addons:
chrome: stable
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- if [[ `npm -v` = 2* ]]; then npm i -g npm@3; fi
- npm install -g grunt-cli
script:
- grunt travis_ci_build
- npm run test
- npm run coverage
after_success:
- ./node_modules/coveralls/bin/coveralls.js < coverage/lcov.info
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@ uses ThemeMatch to provide a complete solution for managing plugins
CSS choices and dynamically switching themes, loading and unloading CSS for
the core and all plugins for you.

## NodeJS and browser compatibility

ThemeMatch works with both NodeJS and the browser natively, for NodeJS
require the package like this:

```javascript
let themematch = require('themematch');
```

In the browser, loading an appropriate 'dist' file will add `themematch`
to window.

## Worked example

In order to work, ThemeMatch must know about the themes available, this
Expand Down Expand Up @@ -238,11 +226,3 @@ File | Description
themematch.js | Limited ES6 features (works with Node.js v4+ and most browsers)
themematch_es5.js | ES5 translation (should work with anything)
themematch_es5.min.js | Minified ES5 translation

## Build

run `npm install` to install the dev/build dependencies, and
`grunt build` to build.

This will create ES5 `dist/themematch.js` and `dist/themematch.min.js`
files, and run the unit tests against them.
213 changes: 0 additions & 213 deletions dist/themematch.js

This file was deleted.

0 comments on commit 1afda2e

Please sign in to comment.