Skip to content

Commit

Permalink
publish without bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-github committed Nov 8, 2019
1 parent bfb0e31 commit fc7832e
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 89 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.idea
node_modules
coverage
lib
standalone
8 changes: 0 additions & 8 deletions .npmignore

This file was deleted.

19 changes: 17 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
module.exports = {
presets: [
['@babel/preset-env']
],
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: 2,
targets: [
"ie 11",
"last 2 firefox versions",
"last 2 edge versions",
"last 2 chrome versions",
"last 2 safari versions",
"last 2 and_chr versions",
"last 2 ios_saf versions"
]
}
]
]
};
2 changes: 1 addition & 1 deletion demo/dist/dc.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/dist/dc.min.js.map

Large diffs are not rendered by default.

53 changes: 3 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 8 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,32 @@
"name": "@deleteagency/dc",
"version": "2.0.0-0",
"description": "",
"main": "lib/index.js",
"main": "src/index.js",
"files": [
"src",
"standalone"
],
"repository": {
"type": "git",
"url": "https://github.com/Delete-Agency/dc.git"
},
"homepage": "https://github.com/Delete-Agency/dc",
"scripts": {
"build": "babel src -d lib",
"standalone": "webpack --config webpack.standalone.config.js",
"demo": "webpack --config webpack.demo.config.js",
"demo:watch": "webpack --config webpack.demo.config.js --watch",
"test": "echo \"No test specified\"",
"prepublish": "npm run build && npm run standalone"
"prepublish": "npm run standalone"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.6.4",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"babel-loader": "^8.0.6",
"clean-webpack-plugin": "^3.0.0",
"core-js": "^3.3.5",
"core-js": "^2.0.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.6"
},
"browserslist": [
"ie 11",
"last 2 firefox versions",
"last 2 edge versions",
"last 2 chrome versions",
"last 2 safari versions",
"last 2 and_chr versions",
"last 2 ios_saf versions"
]
}
}
11 changes: 0 additions & 11 deletions webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ module.exports = (env, argv) => {
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: 3
}
]
]
}
}
}
]
Expand Down

0 comments on commit fc7832e

Please sign in to comment.