Skip to content

Commit

Permalink
Change package.json name to drkmd-js
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Sep 11, 2020
1 parent 504a815 commit 8e919b2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
const { writeFile } = require('fs').promises
const js = require('rosid-handler-js')

const pgk = require('./package.json')

js('src/index.js', {

optimize: true,
browserify: {
standalone: "drkmd"
standalone: pgk.name
}

}).then((data) => {

return writeFile(`dist/drkmd.min.js`, data)
return writeFile(`dist/${pgk.name}.min.js`, data)

})
1 change: 1 addition & 0 deletions dist/drkmd-js.min.js

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

1 change: 0 additions & 1 deletion dist/drkmd.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>Darkmode example</h1>
<p>This is an example</p>
</body>

<script src="../dist/drkmd.min.js"></script>
<script src="../dist/drkmd-js.min.js"></script>
<script>
function addDarkmode() {
new Darkmode().attach();
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "drkmd.js",
"version": "0.1.2",
"description": "",
"main": "dist/drkmd.min.js",
"name": "drkmd-js",
"version": "0.1.3",
"description": "Simple dark-mode/light-mode toggle for any website",
"main": "dist/drkmd-js.min.js",
"scripts": {
"build": "node build.js"
},
Expand Down

0 comments on commit 8e919b2

Please sign in to comment.