Added npm-local folder with asc-web-components

This commit is contained in:
Alexey Safronov 2019-07-11 12:10:24 +03:00
parent 9803dc022c
commit 57ac44dd76
10 changed files with 882 additions and 26081 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@
**/storybook-static/
/web/ASC.Web.Components/dist
/build/deploy
/web/npm-local

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
"private": true,
"homepage": "/products/people",
"dependencies": {
"asc-web-components": "file:../../../web/ASC.Web.Components/",
"asc-web-components": "file:../../../web/npm-local/asc-web-components",
"axios": "^0.19.0",
"bootstrap": "4.3.1",
"connected-react-router": "6.5.0",

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"asc-web-components": "file:../ASC.Web.Components/",
"asc-web-components": "file:../npm-local/asc-web-components",
"axios": "^0.19.0",
"bootstrap": "4.3.1",
"connected-react-router": "6.5.0",

File diff suppressed because it is too large Load Diff

View File

@ -35,7 +35,6 @@
"react-datepicker": "^2.7.0",
"react-lifecycles-compat": "^3.0.4",
"reactstrap": "^8.0.0",
"rollup-plugin-postcss": "^2.0.3",
"styled-components": "^4.3.2"
},
"devDependencies": {
@ -84,12 +83,14 @@
"react-testing-library": "7.0.0",
"react-value": "0.2.0",
"rimraf": "2.6.3",
"rollup": "1.12.1",
"rollup-plugin-babel": "4.3.2",
"rollup": "1.16.7",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-cleanup": "3.1.1",
"rollup-plugin-commonjs": "10.0.0",
"rollup-plugin-commonjs": "10.0.1",
"rollup-plugin-copy": "^3.0.0",
"rollup-plugin-json": "4.0.0",
"rollup-plugin-node-resolve": "5.0.0",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-replace": "2.2.0",
"webpack": "4.31.0",
"webpack-cli": "3.3.2",

View File

@ -5,6 +5,7 @@ import babel from "rollup-plugin-babel";
import cleanup from "rollup-plugin-cleanup";
import replace from "rollup-plugin-replace";
import postcss from 'rollup-plugin-postcss';
import copy from 'rollup-plugin-copy';
import svgrPlugin from "@svgr/rollup";
import pkg from "./package.json";
@ -61,20 +62,11 @@ const configureRollupPlugins = (options = {}) => [
const deps = Object.keys(pkg.dependencies || {});
const peerDeps = Object.keys(pkg.peerDependencies || {});
const defaultExternal = deps.concat(peerDeps);
const defaultExternal = ["stream", ...deps.concat(peerDeps)];
// We need to define 2 separate configs (`esm` and `cjs`) so that each can be
// further customized.
const config = [
{
input: "src/index.js",
external: defaultExternal,
output: {
file: pkg.main,
format: "cjs"
},
plugins: configureRollupPlugins()
},
{
input: "src/index.js",
external: defaultExternal,
@ -94,6 +86,24 @@ const config = [
]
}
})
},
{
input: "src/index.js",
external: defaultExternal,
output: {
file: pkg.main,
format: "cjs"
},
plugins: [
...configureRollupPlugins(),
copy({
targets: [
{ src: 'dist', dest: '../npm-local/asc-web-components' },
{ src: 'package.json', dest: '../npm-local/asc-web-components' },
{ src: 'README.md', dest: '../npm-local/asc-web-components' },
],
verbose: true
})]
}
];

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
"dependencies": {
"@emotion/core": "10.0.14",
"@emotion/styled": "10.0.14",
"asc-web-components": "file:../ASC.Web.Components/",
"asc-web-components": "file:../npm-local/asc-web-components",
"bootstrap": "^4.3.1",
"lodash": "4.17.11",
"lodash-es": "4.17.11",