Skip to content

Commit

Permalink
Build demo page with gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
piecioshka committed Oct 13, 2020
1 parent dbe42b2 commit 8193ea5
Show file tree
Hide file tree
Showing 4 changed files with 261 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="stylesheet" href="../src/skins/default.css"/>
<script src="../test/fixtures/2-rows.js"></script>
<script src="../test/fixtures/3-rows.js"></script>
<script src="../src/index.js"></script>
<script src="../dist/main.js"></script>

<link rel="stylesheet" href="vendors/highlight/styles/github.css"/>
<script src="vendors/highlight/highlight.pack.js"></script>
Expand Down
256 changes: 256 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@
"test": "npm run test:unit",
"test:unit": "ava",
"coverage": "nyc npm run test && nyc report --reporter=text-lcov | coveralls -v",
"count": "find . -name '*.js' -not -path './node_modules/*' | xargs wc -l | sort -r",
"demo": "cross-env NODE_DEBUG=gh-pages gh-pages --src '{demo,dist}/*' -d .",
"lint": "eslint ."
},
"dependencies": {},
"devDependencies": {
"ava": "^3.13.0",
"coveralls": "^3.1.0",
"cross-env": "^7.0.2",
"eslint": "^6.8.0",
"eslint-config-piecioshka": "^2.0.3",
"gh-pages": "^3.1.0",
"jsdom": "^16.4.0",
"nyc": "^15.1.0",
"webpack": "^5.1.0",
Expand Down
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,4 @@ class SimpleDataTable {
}

// Exports
if (typeof exports === 'object' && typeof module === 'object') {
module.exports = { SimpleDataTable };
}
module.exports = { SimpleDataTable };

0 comments on commit 8193ea5

Please sign in to comment.