Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 01e8968

Browse files
author
Sean Dawson
committed
build: some build clean up
re #69
1 parent c614260 commit 01e8968

File tree

5 files changed

+5
-264
lines changed

5 files changed

+5
-264
lines changed

Diff for: .circleci/config.yml

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ jobs:
1818
keys:
1919
- v2-dependencies-{{ checksum "package.json" }}
2020

21-
- run: npm run format-check
22-
- run: npm run lint
23-
- run: npm run type-coverage
2421
- run: make
2522

2623
- save_cache:

Diff for: package-lock.json

-258
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"watch-extension": "web-ext run -s extension/ --verbose",
8282
"watch-webpack": "webpack --config webpack.config.js -w -d",
8383
"start": "npm run prebuild && concurrently --kill-others \"npm run watch-extension\" \"npm run watch-webpack\"",
84-
"build": "npm run prebuild && webpack --config webpack.production.config.js -p",
84+
"build": "npm run prebuild && npm run lint && npm run format-check && npm run type-coverage && webpack --config webpack.production.config.js -p",
8585
"lint": "npx stylelint --fix \"src/**/*.scss\" \"src/**/*.css\" \"src/**/*.html\" && tslint --fix -p tsconfig.json -c tslint.json",
8686
"release": "semantic-release",
8787
"format": "prettier --write '{src,test}/**/*.{ts,tsx,js,jsx}'",
@@ -132,6 +132,6 @@
132132
}
133133
},
134134
"typeCoverage": {
135-
"atLeast": 84.95
135+
"atLeast": 99.79
136136
}
137137
}

Diff for: webpack.production.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
22
const StyleLintPlugin = require("stylelint-webpack-plugin");
33
const sharedConfig = require("./webpack.shared.config");
4+
const { CheckerPlugin } = require("awesome-typescript-loader");
45

56
module.exports = {
67
...sharedConfig,
78

89
mode: "production",
910

1011
plugins: [
12+
new CheckerPlugin(),
1113
new StyleLintPlugin(),
1214
new MiniCssExtractPlugin({
1315
// Options similar to the same options in webpackOptions.output

Diff for: webpack.shared.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
},
1616

1717
resolve: {
18-
extensions: [".json", ".scss", ".css", ".ts", ".tsx"],
18+
extensions: [".js", ".jsx", ".json", ".scss", ".css", ".ts", ".tsx"],
1919
plugins: [new TsConfigPathsPlugin()]
2020
},
2121

0 commit comments

Comments
 (0)