Commit 2b19fd89 authored by Jiří Helebrant's avatar Jiří Helebrant

Add Gitlab CI config

parent 7d7745eb
image: node image: node
stages: stages:
- install_deps - setup
- lint - lint
- test - test
- build - build
- publish
setup:
stage: setup
script:
- npm install
artifacts:
expire_in: 30 min
paths:
- node_modules
lint:js: lint:js:
stage: lint stage: lint
dependencies: dependencies:
- install_deps - setup
scripts: npm run lint:js script:
- npm run lint:js
lint:css: lint:css:
stage: lint stage: lint
dependencies: dependencies:
- install_deps - setup
scripts: npm run lint:css scripts:
- npm run lint:css
test:
stage: test
dependencies:
- lint:js
- lint:css
script:
- npm test
build:firefox: build:firefox:
stage: build stage: build
dependencies: dependencies:
- install_deps - test
script: npm run build firefox script:
- npm run build firefox
artifacts: artifacts:
- paths: - paths:
- ./packages/*firefox.xpi.zip - ./packages/*firefox.xpi.zip
...@@ -31,14 +50,19 @@ build:firefox: ...@@ -31,14 +50,19 @@ build:firefox:
build:chrome: build:chrome:
stage: build stage: build
dependencies: dependencies:
- install_deps - test
script: npm run build firefox script:
- npm run build chrome
artifacts: artifacts:
- paths: - paths:
- ./packages/*chrome.zip - ./packages/*chrome.zip
pages: build:edge:
stage: publish stage: build
dependencies:
- test
script:
- npm run build edge
artifacts: artifacts:
- paths: - paths:
- ./public - ./packages/*edge.zip
{
"extends": "stylelint-config-standard",
"rules": {
"at-rule-empty-line-before": null,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["if", "else", "mixin", "include", "content", "for"]
}
],
"block-closing-brace-empty-line-before": null,
"block-closing-brace-newline-after": null,
"color-hex-case": ["lower"],
"unit-whitelist": ["px", "em", "rem", "%", "s", "deg", "pt", "vw", "vh"],
"declaration-no-important": null,
"declaration-empty-line-before": "never",
"declaration-colon-newline-after": "always-multi-line",
"no-extra-semicolons": true,
"max-empty-lines": 2,
"font-family-name-quotes": "always-where-recommended",
"function-url-quotes": "never",
"function-comma-newline-after": null,
"function-parentheses-space-inside": null,
"max-nesting-depth": 3,
"media-feature-name-no-vendor-prefix": true,
"number-leading-zero": "always",
"property-no-vendor-prefix": true,
"rule-empty-line-before": null,
"selector-list-comma-newline-after": null,
"selector-attribute-quotes": "always",
"selector-max-compound-selectors": 3,
"selector-max-specificity": "0,4,0",
"selector-max-universal": 1,
"selector-max-id": 0,
"selector-no-vendor-prefix": true,
"selector-pseudo-element-colon-notation": "single",
"value-no-vendor-prefix": true
}
}
import '../styles/popup.scss' import '../styles/popup.scss'
import config from '../config.json'
import { getActiveTabId } from './lib/tabs' import { getActiveTabId } from './lib/tabs'
import { updateIcon } from './lib/icon' import { updateIcon } from './lib/icon'
import { getDomainStatus } from './lib/domain' import { getDomainStatus } from './lib/domain'
...@@ -91,8 +90,8 @@ const updatePopup = async () => { ...@@ -91,8 +90,8 @@ const updatePopup = async () => {
popup.addEventListener('click', updateIcon) popup.addEventListener('click', updateIcon)
popup.innerHTML = '' popup.innerHTML = ''
const domainHeading = document.createElement('h3') // const domainHeading = document.createElement('h3')
domainHeading.innerText = 'Request domains' // domainHeading.innerText = 'Request domains'
// popup.append(domainHeading) // popup.append(domainHeading)
popup.appendChild(await createDomainTable()) popup.appendChild(await createDomainTable())
const resolverHeading = document.createElement('h3') const resolverHeading = document.createElement('h3')
......
...@@ -27,7 +27,7 @@ label.advanced, ...@@ -27,7 +27,7 @@ label.advanced,
.form-section.advanced { .form-section.advanced {
color: red; color: red;
display: none; display: none;
&.showing { &.showing {
display: initial; display: initial;
} }
......
...@@ -52,7 +52,7 @@ h3 { ...@@ -52,7 +52,7 @@ h3 {
.toolbar { .toolbar {
display: flex; display: flex;
overflow: hidden; overflow: hidden;
button { button {
overflow: hidden; overflow: hidden;
line-height: 1em; line-height: 1em;
......
...@@ -8023,9 +8023,9 @@ ...@@ -8023,9 +8023,9 @@
"dev": true "dev": true
}, },
"mini-css-extract-plugin": { "mini-css-extract-plugin": {
"version": "0.4.4", "version": "0.4.5",
"resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-0.4.4.tgz", "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-0.4.5.tgz",
"integrity": "sha512-o+Jm+ocb0asEngdM6FsZWtZsRzA8koFUudIDwYUfl94M3PejPHG7Vopw5hN9V8WsMkSFpm3tZP3Fesz89EyrfQ==", "integrity": "sha512-dqBanNfktnp2hwL2YguV9Jh91PFX7gu7nRLs4TGsbAfAG6WOtlynFRYzwDwmmeSb5uIwHo9nx1ta0f7vAZVp2w==",
"dev": true, "dev": true,
"requires": { "requires": {
"loader-utils": "1.1.0", "loader-utils": "1.1.0",
...@@ -12114,6 +12114,53 @@ ...@@ -12114,6 +12114,53 @@
} }
} }
}, },
"stylelint-config-recommended": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-2.1.0.tgz",
"integrity": "sha512-ajMbivOD7JxdsnlS5945KYhvt7L/HwN6YeYF2BH6kE4UCLJR0YvXMf+2j7nQpJyYLZx9uZzU5G1ZOSBiWAc6yA==",
"dev": true
},
"stylelint-config-standard": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-18.2.0.tgz",
"integrity": "sha512-07x0TaSIzvXlbOioUU4ORkCIM07kyIuojkbSVCyFWNVgXMXYHfhnQSCkqu+oHWJf3YADAnPGWzdJ53NxkoJ7RA==",
"dev": true,
"requires": {
"stylelint-config-recommended": "2.1.0"
}
},
"stylelint-scss": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-3.4.0.tgz",
"integrity": "sha512-sM1bsOrbmR35N1ZAg+7uLVI+n2QHqOVMZPRiAIyiOa1ITBrg0hajBH/i1F/ZxbsBUWLAeSq/NREwPw1+xF9exQ==",
"dev": true,
"requires": {
"lodash": "4.17.11",
"postcss-media-query-parser": "0.2.3",
"postcss-resolve-nested-selector": "0.1.1",
"postcss-selector-parser": "4.0.0",
"postcss-value-parser": "3.3.1"
},
"dependencies": {
"cssesc": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/cssesc/-/cssesc-1.0.1.tgz",
"integrity": "sha512-S2hzrpWvE6G/rW7i7IxJfWBYn27QWfOIncUW++8Rbo1VB5zsJDSVPcnI+Q8z7rhxT6/yZeLOCja4cZnghJrNGA==",
"dev": true
},
"postcss-selector-parser": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-4.0.0.tgz",
"integrity": "sha512-5h+MvEjnzu1qy6MabjuoPatsGAjjDV9B24e7Cktjl+ClNtjVjmvAXjOFQr1u7RlWULKNGYaYVE4s+DIIQ4bOGA==",
"dev": true,
"requires": {
"cssesc": "1.0.1",
"indexes-of": "1.0.1",
"uniq": "1.0.1"
}
}
}
},
"sugarss": { "sugarss": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/sugarss/-/sugarss-2.0.0.tgz", "resolved": "https://registry.npmjs.org/sugarss/-/sugarss-2.0.0.tgz",
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
"firefox": "web-ext -s ./dist/firefox/ run --browser-console", "firefox": "web-ext -s ./dist/firefox/ run --browser-console",
"clean": "rimraf packages dist build", "clean": "rimraf packages dist build",
"lint:js": "eslint .", "lint:js": "eslint .",
"lint:css": "stylelint ." "lint:css": "stylelint app/**/*.scss",
"test": "echo 'not yet'"
}, },
"devDependencies": { "devDependencies": {
"css-loader": "^1.0.1", "css-loader": "^1.0.1",
...@@ -22,15 +23,17 @@ ...@@ -22,15 +23,17 @@
"eslint-plugin-standard": "^4.0.0", "eslint-plugin-standard": "^4.0.0",
"extract-loader": "^3.0.0", "extract-loader": "^3.0.0",
"file-loader": "^2.0.0", "file-loader": "^2.0.0",
"mini-css-extract-plugin": "^0.4.4", "mini-css-extract-plugin": "^0.4.5",
"node-sass": "^4.10.0", "node-sass": "^4.10.0",
"postcss-clean": "^1.1.0", "postcss-clean": "^1.1.0",
"postcss-loader": "^3.0.0", "postcss-loader": "^3.0.0",
"rimraf": "^2.6.2", "rimraf": "^2.6.2",
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"stylelint": "^9.8.0", "stylelint": "^9.8.0",
"stylelint-config-standard": "^18.2.0",
"web-ext": "^2.9.2", "web-ext": "^2.9.2",
"web-ext-types": "^3.0.0", "web-ext-types": "^3.0.0",
"stylelint-scss": "^3.4.0",
"webextension-toolbox": "^3.0.0" "webextension-toolbox": "^3.0.0"
}, },
"dependencies": { "dependencies": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment