Skip to content

Commit

Permalink
Change 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 32f2ab5 commit 4462043
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Darkmode
# drkmd.js
6 changes: 2 additions & 4 deletions build.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
const { writeFile } = require('fs').promises
const js = require('rosid-handler-js')

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

js('src/index.js', {

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

}).then((data) => {

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

})
1 change: 0 additions & 1 deletion dist/darkmode.min.js

This file was deleted.

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

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

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/darkmode.min.js"></script>
<script src="../dist/drkmd.min.js"></script>
<script>
function addDarkmodeWidget() {
new Darkmode().attach();
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "darkmode",
"name": "drkmd.js",
"version": "0.0.1",
"description": "",
"main": "dist/darkmode.min.js",
"main": "dist/drkmd.min.js",
"scripts": {
"build": "node build.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/BetaHuhn/darkmode.git"
"url": "git+https://github.com/BetaHuhn/drkmd.js.git"
},
"author": "Maximilian Schiller <schiller@mxis.ch>",
"license": "MIT",
"bugs": {
"url": "https://github.com/BetaHuhn/darkmode/issues"
"url": "https://github.com/BetaHuhn/drkmd.js/issues"
},
"homepage": "https://github.com/BetaHuhn/darkmode#readme",
"homepage": "https://github.com/BetaHuhn/drkmd.js#readme",
"files": [
"dist",
"src"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Darkmode, { IS_BROWSER } from './darkmode';
import Darkmode, { IS_BROWSER } from './drkmd';
export default Darkmode;

if (IS_BROWSER) {
Expand Down

0 comments on commit 4462043

Please sign in to comment.