Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Commit

Permalink
feat!: drop support for pre-packaged dist bundles and update to valid…
Browse files Browse the repository at this point in the history
…ator v2
  • Loading branch information
Ghustavh97 committed May 7, 2021
1 parent fe4511d commit b8a0f0f
Show file tree
Hide file tree
Showing 7 changed files with 511 additions and 428 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
lib
dist
temp
build
.nyc_output
node_modules
docs/index.html
Expand Down
882 changes: 489 additions & 393 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 11 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
"lint": "npm run eslint -- src test",
"webpack": "node_modules/.bin/webpack",
"build": "npm run browser:build",
"browser:build": "npm run browser:build.prod && npm run browser:build.dev",
"browser:build": "npm run browser:build.dev",
"browser:build.dev": "npm run webpack -- --config webpack.dev.js",
"browser:build.prod": "npm run webpack -- --config webpack.prod.js",
"coverage": "node_modules/.bin/nyc report --reporter=lcovonly"
},
"repository": {
Expand All @@ -22,7 +21,6 @@
"license": "MIT",
"files": [
"src",
"dist",
"LICENCE",
"README.md"
],
Expand All @@ -31,7 +29,7 @@
},
"homepage": "https://docs.oslllo.com/validator/master",
"dependencies": {
"oslllo-validator": "^1.1.1"
"oslllo-validator": "^2.0.0"
},
"keywords": [
"oslllo",
Expand All @@ -43,22 +41,22 @@
"all-in-one"
],
"devDependencies": {
"@babel/cli": "^7.13.14",
"@babel/core": "^7.13.14",
"@babel/preset-env": "^7.13.12",
"@babel/cli": "^7.13.16",
"@babel/core": "^7.14.0",
"@babel/preset-env": "^7.14.1",
"chai": "^4.3.4",
"clean-webpack-plugin": "^3.0.0",
"coveralls": "^3.1.0",
"eslint": "^7.23.0",
"jsdom": "^16.5.2",
"mocha": "^8.3.2",
"eslint": "^7.25.0",
"jsdom": "^16.5.3",
"mocha": "^8.4.0",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^15.1.0",
"webpack": "^5.28.0",
"webpack-cli": "^4.6.0",
"webpack": "^5.36.2",
"webpack-cli": "^4.7.0",
"webpack-merge": "^5.7.3"
},
"engines": {
"node": ">= 10.0"
}
}
}
16 changes: 8 additions & 8 deletions test/test.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<script src="../dist/oslllo-validator-exception.js"></script>
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<script src="../build/oslllo-validator-exception.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ module.exports = {
output: {
library: "assert",
libraryTarget: "umd",
path: path.resolve(__dirname, "dist"),
path: path.resolve(__dirname, "build"),
},
};
2 changes: 1 addition & 1 deletion webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ module.exports = merge(common, {
filename: `${pkg.name}.js`,
},
devServer: {
contentBase: "./dist",
contentBase: "./build",
},
});
12 changes: 0 additions & 12 deletions webpack.prod.js

This file was deleted.

0 comments on commit b8a0f0f

Please sign in to comment.