Skip to content

Commit

Permalink
add and run prettier & eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
e9x committed Sep 15, 2022
1 parent c471d03 commit 2143595
Show file tree
Hide file tree
Showing 14 changed files with 2,711 additions and 419 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"root": true,
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
}
}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"useTabs": false,
"singleQuote": false
}
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,28 @@ Static files/assets used to spin up an Ultraviolet website.
## Packaging

1. Clone the repository

```sh
$ git clone https://github.com/titaniumnetwork-development/Ultraviolet-Static.git
> Cloning into Ultraviolet-Static...
$ cd Ultraviolet-Static
```

2. Install dependencies

```sh
npm install
```

3. Make your changes...
4. Produce the `dist/` directory and import the Ultraviolet scripts

```sh
npm run build
```

5. Package for NPM to produce `ultraviolet-static.X.X.X.tar.gz` file

```sh
npm pack
```
Expand All @@ -30,12 +37,15 @@ npm pack

1. Follow installation steps until you need to run `npm install`
2. Install the produced Ultraviolet-Static tgz (upload to Discord, Github, etc...) (see [Packaging](#packaging))

```sh
$ npm install https://github.com/titaniumnetwork-development/Ultraviolet-Static/releases/download/v1.0.0/ultraviolet-static-1.0.0.tgz
# OR
$ npm install ../path/to/ultraviolet-static-1.0.0.tgz
```

3. Continue instructions...

```sh
$ npm start
```
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { fileURLToPath } from 'url';
import { fileURLToPath } from "url";

export const publicPath = fileURLToPath(new URL('../dist/', import.meta.url));
export const publicPath = fileURLToPath(new URL("../dist/", import.meta.url));
Loading

0 comments on commit 2143595

Please sign in to comment.