mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 04:47:01 +02:00
use ui-scripts to build the core plugins
This commit is contained in:
@@ -1,11 +1,16 @@
|
|||||||
[declarations]
|
[declarations]
|
||||||
../../scm-ui/ui-types/.*
|
../../scm-ui/ui-types/.*
|
||||||
../../scm-ui/ui-components/.*
|
../../scm-ui/ui-components/.*
|
||||||
|
../../scm-ui/ui-extensions/.*
|
||||||
|
../../scm-ui/ui-tests/.*
|
||||||
|
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
./src/**
|
./src/**
|
||||||
../../scm-ui/ui-types/.*
|
../../scm-ui/ui-types/.*
|
||||||
../../scm-ui/ui-components/.*
|
../../scm-ui/ui-components/.*
|
||||||
|
../../scm-ui/ui-extensions/.*
|
||||||
|
../../scm-ui/ui-tests/.*
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
module.system.node.resolve_dirname=../../node_modules
|
module.system.node.resolve_dirname=../../node_modules
|
||||||
|
|||||||
@@ -1,22 +1,40 @@
|
|||||||
{
|
{
|
||||||
"name": "@scm-manager/scm-git-plugin",
|
"name": "@scm-manager/scm-git-plugin",
|
||||||
|
"private": true,
|
||||||
"version": "2.0.0-SNAPSHOT",
|
"version": "2.0.0-SNAPSHOT",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
|
"main": "src/main/js/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ui-scripts plugin",
|
"build": "ui-scripts plugin",
|
||||||
"watch": "ui-scripts plugin-watch",
|
"watch": "ui-scripts plugin-watch",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
|
||||||
"@scm-manager/ui-scripts": "2.0.0-SNAPSHOT",
|
|
||||||
"flow-bin": "^0.109.0",
|
|
||||||
"flow-typed": "^2.6.1"
|
|
||||||
},
|
|
||||||
"babel": {
|
"babel": {
|
||||||
"presets": ["@scm-manager/babel-preset"]
|
"presets": [
|
||||||
|
"@scm-manager/babel-preset"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "@scm-manager/jest-preset"
|
"preset": "@scm-manager/jest-preset"
|
||||||
},
|
},
|
||||||
"prettier": "@scm-manager/prettier-config"
|
"prettier": "@scm-manager/prettier-config",
|
||||||
|
"dependencies": {
|
||||||
|
"@scm-manager/ui-components": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-extensions": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-types": "2.0.0-SNAPSHOT",
|
||||||
|
"react": "^16.10.2",
|
||||||
|
"react-i18next": "^10.13.1",
|
||||||
|
"styled-components": "^4.4.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@scm-manager/babel-preset": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/eslint-config": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/jest-preset": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/prettier-config": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-scripts": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-tests": "2.0.0-SNAPSHOT",
|
||||||
|
"flow-bin": "^0.109.0",
|
||||||
|
"flow-typed": "^2.6.1",
|
||||||
|
"jest": "^24.9.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,6 @@
|
|||||||
<extensions>true</extensions>
|
<extensions>true</extensions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<corePlugin>true</corePlugin>
|
<corePlugin>true</corePlugin>
|
||||||
<restartNotifier>false</restartNotifier>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// @flow
|
// @flow
|
||||||
|
import "@scm-manager/ui-tests/i18n";
|
||||||
import { gitPredicate } from "./index";
|
import { gitPredicate } from "./index";
|
||||||
|
|
||||||
describe("test git predicate", () => {
|
describe("test git predicate", () => {
|
||||||
|
|||||||
@@ -1,71 +0,0 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: {
|
|
||||||
"scm-git-plugin": "./src/main/js/index.js"
|
|
||||||
},
|
|
||||||
devtool: "source-map",
|
|
||||||
target: "web",
|
|
||||||
node: {
|
|
||||||
fs: "empty",
|
|
||||||
net: "empty",
|
|
||||||
tls: "empty"
|
|
||||||
},
|
|
||||||
externals: [
|
|
||||||
"react",
|
|
||||||
"react-dom",
|
|
||||||
"react-i18next",
|
|
||||||
"react-router-dom",
|
|
||||||
"styled-components",
|
|
||||||
"@scm-manager/ui-types",
|
|
||||||
"@scm-manager/ui-extensions",
|
|
||||||
"@scm-manager/ui-components"
|
|
||||||
],
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
parser: {
|
|
||||||
system: false,
|
|
||||||
systemjs: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(js|jsx)$/,
|
|
||||||
// exclude: /node_modules/,
|
|
||||||
use: {
|
|
||||||
loader: "babel-loader",
|
|
||||||
options: {
|
|
||||||
presets: ["@scm-manager/babel-preset"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(css|scss|sass)$/i,
|
|
||||||
use: [
|
|
||||||
// Creates `style` nodes from JS strings
|
|
||||||
"style-loader",
|
|
||||||
// Translates CSS into CommonJS
|
|
||||||
"css-loader",
|
|
||||||
// Compiles Sass to CSS
|
|
||||||
"sass-loader"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(png|svg|jpg|gif|woff2?|eot|ttf)$/,
|
|
||||||
use: ["file-loader"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
path: path.join(
|
|
||||||
__dirname,
|
|
||||||
"target",
|
|
||||||
"scm-git-plugin-2.0.0-SNAPSHOT",
|
|
||||||
"webapp",
|
|
||||||
"assets"
|
|
||||||
),
|
|
||||||
filename: "[name].bundle.js",
|
|
||||||
library: "scm-git-plugin",
|
|
||||||
libraryTarget: "amd"
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
[declarations]
|
[declarations]
|
||||||
../../scm-ui/ui-types/.*
|
../../scm-ui/ui-types/.*
|
||||||
../../scm-ui/ui-components/.*
|
../../scm-ui/ui-components/.*
|
||||||
|
../../scm-ui/ui-extensions/.*
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
./src/**
|
./src/**
|
||||||
../../scm-ui/ui-types/.*
|
../../scm-ui/ui-types/.*
|
||||||
../../scm-ui/ui-components/.*
|
../../scm-ui/ui-components/.*
|
||||||
|
../../scm-ui/ui-extensions/.*
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
module.system.node.resolve_dirname=../../node_modules
|
module.system.node.resolve_dirname=../../node_modules
|
||||||
|
|||||||
@@ -1,16 +1,38 @@
|
|||||||
{
|
{
|
||||||
"name": "@scm-manager/scm-hg-plugin",
|
"name": "@scm-manager/scm-hg-plugin",
|
||||||
|
"private": true,
|
||||||
"version": "2.0.0-SNAPSHOT",
|
"version": "2.0.0-SNAPSHOT",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"main": "src/main/js/index.js",
|
"main": "src/main/js/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --mode=production"
|
"build": "ui-scripts plugin",
|
||||||
|
"watch": "ui-scripts plugin-watch"
|
||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
"presets": ["@scm-manager/babel-preset"]
|
"presets": [
|
||||||
|
"@scm-manager/babel-preset"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "@scm-manager/jest-preset"
|
"preset": "@scm-manager/jest-preset"
|
||||||
},
|
},
|
||||||
"prettier": "@scm-manager/prettier-config"
|
"prettier": "@scm-manager/prettier-config",
|
||||||
|
"dependencies": {
|
||||||
|
"@scm-manager/ui-components": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-extensions": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-types": "2.0.0-SNAPSHOT",
|
||||||
|
"react": "^16.10.2",
|
||||||
|
"react-i18next": "^10.13.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@scm-manager/babel-preset": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/eslint-config": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/jest-preset": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/prettier-config": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-scripts": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-tests": "2.0.0-SNAPSHOT",
|
||||||
|
"flow-bin": "^0.109.0",
|
||||||
|
"flow-typed": "^2.6.1",
|
||||||
|
"jest": "^24.9.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,71 +0,0 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: {
|
|
||||||
"scm-hg-plugin": "./src/main/js/index.js"
|
|
||||||
},
|
|
||||||
devtool: "source-map",
|
|
||||||
target: "web",
|
|
||||||
node: {
|
|
||||||
fs: "empty",
|
|
||||||
net: "empty",
|
|
||||||
tls: "empty"
|
|
||||||
},
|
|
||||||
externals: [
|
|
||||||
"react",
|
|
||||||
"react-dom",
|
|
||||||
"react-i18next",
|
|
||||||
"react-router-dom",
|
|
||||||
"styled-components",
|
|
||||||
"@scm-manager/ui-types",
|
|
||||||
"@scm-manager/ui-extensions",
|
|
||||||
"@scm-manager/ui-components"
|
|
||||||
],
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
parser: {
|
|
||||||
system: false,
|
|
||||||
systemjs: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(js|jsx)$/,
|
|
||||||
// exclude: /node_modules/,
|
|
||||||
use: {
|
|
||||||
loader: "babel-loader",
|
|
||||||
options: {
|
|
||||||
presets: ["@scm-manager/babel-preset"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(css|scss|sass)$/i,
|
|
||||||
use: [
|
|
||||||
// Creates `style` nodes from JS strings
|
|
||||||
"style-loader",
|
|
||||||
// Translates CSS into CommonJS
|
|
||||||
"css-loader",
|
|
||||||
// Compiles Sass to CSS
|
|
||||||
"sass-loader"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(png|svg|jpg|gif|woff2?|eot|ttf)$/,
|
|
||||||
use: ["file-loader"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
path: path.join(
|
|
||||||
__dirname,
|
|
||||||
"target",
|
|
||||||
"scm-hg-plugin-2.0.0-SNAPSHOT",
|
|
||||||
"webapp",
|
|
||||||
"assets"
|
|
||||||
),
|
|
||||||
filename: "[name].bundle.js",
|
|
||||||
library: "scm-hg-plugin",
|
|
||||||
libraryTarget: "amd"
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
[declarations]
|
[declarations]
|
||||||
../../scm-ui/ui-types/.*
|
../../scm-ui/ui-types/.*
|
||||||
../../scm-ui/ui-components/.*
|
../../scm-ui/ui-components/.*
|
||||||
|
../../scm-ui/ui-extensions/.*
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
./src/**
|
./src/**
|
||||||
../../scm-ui/ui-types/.*
|
../../scm-ui/ui-types/.*
|
||||||
../../scm-ui/ui-components/.*
|
../../scm-ui/ui-components/.*
|
||||||
|
../../scm-ui/ui-extensions/.*
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
module.system.node.resolve_dirname=../../node_modules
|
module.system.node.resolve_dirname=../../node_modules
|
||||||
|
|||||||
@@ -1,16 +1,38 @@
|
|||||||
{
|
{
|
||||||
"name": "@scm-manager/legacy-plugin",
|
"name": "@scm-manager/legacy-plugin",
|
||||||
|
"private": true,
|
||||||
"version": "2.0.0-SNAPSHOT",
|
"version": "2.0.0-SNAPSHOT",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"main": "src/main/js/index.js",
|
"main": "src/main/js/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --mode=production"
|
"build": "ui-scripts plugin",
|
||||||
|
"watch": "ui-scripts plugin-watch"
|
||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
"presets": ["@scm-manager/babel-preset"]
|
"presets": [
|
||||||
|
"@scm-manager/babel-preset"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "@scm-manager/jest-preset"
|
"preset": "@scm-manager/jest-preset"
|
||||||
},
|
},
|
||||||
"prettier": "@scm-manager/prettier-config"
|
"prettier": "@scm-manager/prettier-config",
|
||||||
|
"dependencies": {
|
||||||
|
"@scm-manager/ui-components": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-extensions": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-types": "2.0.0-SNAPSHOT",
|
||||||
|
"react": "^16.10.2",
|
||||||
|
"react-router-dom": "^5.1.2"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@scm-manager/babel-preset": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/eslint-config": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/jest-preset": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/prettier-config": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-scripts": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-tests": "2.0.0-SNAPSHOT",
|
||||||
|
"flow-bin": "^0.109.0",
|
||||||
|
"flow-typed": "^2.6.1",
|
||||||
|
"jest": "^24.9.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: {
|
|
||||||
"scm-legacy-plugin": "./src/main/js/index.js"
|
|
||||||
},
|
|
||||||
devtool: "source-map",
|
|
||||||
target: "web",
|
|
||||||
node: {
|
|
||||||
fs: "empty",
|
|
||||||
net: "empty",
|
|
||||||
tls: "empty"
|
|
||||||
},
|
|
||||||
externals: [
|
|
||||||
"react",
|
|
||||||
"react-dom",
|
|
||||||
"react-i18next",
|
|
||||||
"react-router-dom",
|
|
||||||
"styled-components",
|
|
||||||
"@scm-manager/ui-types",
|
|
||||||
"@scm-manager/ui-extensions",
|
|
||||||
"@scm-manager/ui-components"
|
|
||||||
],
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
parser: {
|
|
||||||
system: false,
|
|
||||||
systemjs: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(js|jsx)$/,
|
|
||||||
// exclude: /node_modules/,
|
|
||||||
use: {
|
|
||||||
loader: "babel-loader",
|
|
||||||
options: {
|
|
||||||
presets: ["@scm-manager/babel-preset"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(css|scss|sass)$/i,
|
|
||||||
use: [
|
|
||||||
// Creates `style` nodes from JS strings
|
|
||||||
"style-loader",
|
|
||||||
// Translates CSS into CommonJS
|
|
||||||
"css-loader",
|
|
||||||
// Compiles Sass to CSS
|
|
||||||
"sass-loader"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(png|svg|jpg|gif|woff2?|eot|ttf)$/,
|
|
||||||
use: ["file-loader"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
path: path.join(__dirname, "target", "scm-legacy-plugin-2.0.0-SNAPSHOT", "webapp", "assets"),
|
|
||||||
filename: "[name].bundle.js",
|
|
||||||
library: "scm-legacy-plugin",
|
|
||||||
libraryTarget: "amd"
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
[declarations]
|
[declarations]
|
||||||
../../scm-ui/ui-types/.*
|
../../scm-ui/ui-types/.*
|
||||||
../../scm-ui/ui-components/.*
|
../../scm-ui/ui-components/.*
|
||||||
|
../../scm-ui/ui-extensions/.*
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
./src/**
|
./src/**
|
||||||
../../scm-ui/ui-types/.*
|
../../scm-ui/ui-types/.*
|
||||||
../../scm-ui/ui-components/.*
|
../../scm-ui/ui-components/.*
|
||||||
|
../../scm-ui/ui-extensions/.*
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
module.system.node.resolve_dirname=../../node_modules
|
module.system.node.resolve_dirname=../../node_modules
|
||||||
|
|||||||
@@ -1,16 +1,39 @@
|
|||||||
{
|
{
|
||||||
"name": "@scm-manager/scm-svn-plugin",
|
"name": "@scm-manager/scm-svn-plugin",
|
||||||
"main": "src/main/js/index.js",
|
"private": true,
|
||||||
"version": "2.0.0-SNAPSHOT",
|
"version": "2.0.0-SNAPSHOT",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
|
"main": "src/main/js/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --mode=production"
|
"build": "ui-scripts plugin",
|
||||||
|
"watch": "ui-scripts plugin-watch"
|
||||||
},
|
},
|
||||||
"babel": {
|
"babel": {
|
||||||
"presets": ["@scm-manager/babel-preset"]
|
"presets": [
|
||||||
|
"@scm-manager/babel-preset"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "@scm-manager/jest-preset"
|
"preset": "@scm-manager/jest-preset"
|
||||||
},
|
},
|
||||||
"prettier": "@scm-manager/prettier-config"
|
"prettier": "@scm-manager/prettier-config",
|
||||||
|
"dependencies": {
|
||||||
|
"@scm-manager/ui-components": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-extensions": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-types": "2.0.0-SNAPSHOT",
|
||||||
|
"react": "^16.10.2",
|
||||||
|
"react-i18next": "^10.13.1",
|
||||||
|
"styled-components": "^4.4.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@scm-manager/babel-preset": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/eslint-config": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/jest-preset": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/prettier-config": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-scripts": "2.0.0-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-tests": "2.0.0-SNAPSHOT",
|
||||||
|
"flow-bin": "^0.109.0",
|
||||||
|
"flow-typed": "^2.6.1",
|
||||||
|
"jest": "^24.9.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,65 +0,0 @@
|
|||||||
const path = require("path");
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: {
|
|
||||||
"scm-svn-plugin": "./src/main/js/index.js"
|
|
||||||
},
|
|
||||||
devtool: "source-map",
|
|
||||||
target: "web",
|
|
||||||
node: {
|
|
||||||
fs: "empty",
|
|
||||||
net: "empty",
|
|
||||||
tls: "empty"
|
|
||||||
},
|
|
||||||
externals: [
|
|
||||||
"react",
|
|
||||||
"react-dom",
|
|
||||||
"react-i18next",
|
|
||||||
"react-router-dom",
|
|
||||||
"styled-components",
|
|
||||||
"@scm-manager/ui-types",
|
|
||||||
"@scm-manager/ui-extensions",
|
|
||||||
"@scm-manager/ui-components"
|
|
||||||
],
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
parser: {
|
|
||||||
system: false,
|
|
||||||
systemjs: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(js|jsx)$/,
|
|
||||||
// exclude: /node_modules/,
|
|
||||||
use: {
|
|
||||||
loader: "babel-loader",
|
|
||||||
options: {
|
|
||||||
presets: ["@scm-manager/babel-preset"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(css|scss|sass)$/i,
|
|
||||||
use: [
|
|
||||||
// Creates `style` nodes from JS strings
|
|
||||||
"style-loader",
|
|
||||||
// Translates CSS into CommonJS
|
|
||||||
"css-loader",
|
|
||||||
// Compiles Sass to CSS
|
|
||||||
"sass-loader"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.(png|svg|jpg|gif|woff2?|eot|ttf)$/,
|
|
||||||
use: ["file-loader"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
path: path.join(__dirname, "target", "scm-svn-plugin-2.0.0-SNAPSHOT", "webapp", "assets"),
|
|
||||||
filename: "[name].bundle.js",
|
|
||||||
library: "scm-svn-plugin",
|
|
||||||
libraryTarget: "amd"
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user