Skip to content

Commit

Permalink
Update environment
Browse files Browse the repository at this point in the history
  • Loading branch information
foooomio committed Jul 15, 2019
1 parent fc418b1 commit 2b10844
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .editorconfig
Expand Up @@ -10,3 +10,6 @@ trim_trailing_whitespace = true

[*.html]
indent_size = 2

[LICENSE.txt]
insert_final_newline = false
1 change: 1 addition & 0 deletions .eslintrc.json
@@ -1,4 +1,5 @@
{
"root": true,
"env": {
"browser": true,
"es6": true,
Expand Down
8 changes: 7 additions & 1 deletion build.sh
@@ -1,10 +1,16 @@
#!/bin/bash

set -eux

NAME="view-background-image"
VERSION=$(jq -r .version src/manifest.json)

mkdir -p dist
rm dist/*.zip

# for Chrome
zip -r "dist/${NAME}-${VERSION}.zip" src -x "*.DS_Store"
zip -r "dist/${NAME}-${VERSION}-chrome.zip" src -x "*.DS_Store"

# for Firefox
cd src
zip -r "../dist/${NAME}-${VERSION}-firefox.zip" * -x "*.DS_Store"
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -2,12 +2,16 @@
"name": "view-background-image",
"version": "0.0.0",
"scripts": {
"build": "./build.sh",
"lint": "eslint . && editorconfig-checker",
"test": "mocha"
},
"private": true,
"license": "MIT",
"devDependencies": {
"@types/chrome": "*",
"editorconfig-checker": "*",
"eslint": "*",
"mocha": "*",
"puppeteer-core": "*"
}
Expand Down

0 comments on commit 2b10844

Please sign in to comment.