зеркало из https://github.com/nextcloud/appstore.git
update webpack
This commit is contained in:
Родитель
7462854ab2
Коммит
491a16f39c
|
@ -21,8 +21,8 @@ nextcloudappstore/local_settings.py
|
|||
*.wp[ru]
|
||||
nextcloudappstore/settings/production.py
|
||||
nextcloudappstore/settings/development.py
|
||||
nextcloudappstore/core/static/public/*
|
||||
nextcloudappstore/core/static/vendor/*
|
||||
/nextcloudappstore/core/static/public/*
|
||||
/nextcloudappstore/core/static/vendor/*
|
||||
bin/
|
||||
*.swp
|
||||
*.log
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_9" default="false" project-jdk-name="Python 3.6 (appstore)" project-jdk-type="Python SDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
|
|
11
package.json
11
package.json
|
@ -20,22 +20,21 @@
|
|||
"@types/jasmine": "^2.8.2",
|
||||
"@types/markdown-it": "0.0.4",
|
||||
"@types/screenfull": "^3.3.1",
|
||||
"babili-webpack-plugin": "^0.1.2",
|
||||
"copy-webpack-plugin": "^4.2.3",
|
||||
"css-loader": "^0.28.7",
|
||||
"jasmine-core": "^3.0.0",
|
||||
"karma": "^2.0.0",
|
||||
"karma-firefox-launcher": "^1.0.1",
|
||||
"karma-jasmine": "^1.1.0",
|
||||
"karma-webpack": "^2.0.6",
|
||||
"ts-loader": "^3.1.1",
|
||||
"ts-loader": "^4.0.1",
|
||||
"typescript": "^2.6.2",
|
||||
"webpack": "^3.8.1"
|
||||
"webpack": "^4.0.1",
|
||||
"webpack-cli": "^2.0.10"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "./node_modules/karma/bin/karma start --single-run",
|
||||
"build": "NODE_ENV=production ./node_modules/.bin/webpack --progress --colors",
|
||||
"watch": "./node_modules/.bin/webpack --progress --colors --watch",
|
||||
"build": "NODE_ENV=production ./node_modules/.bin/webpack --progress --colors --mode production",
|
||||
"watch": "./node_modules/.bin/webpack --progress --colors --watch --mode development",
|
||||
"watch-test": "./node_modules/karma/bin/karma start"
|
||||
},
|
||||
"repository": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "es2015",
|
||||
"target": "es2017",
|
||||
"target": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"removeComments": true,
|
||||
"sourceMap": true,
|
||||
|
@ -15,8 +15,6 @@
|
|||
"noUnusedParameters": true,
|
||||
"lib": [
|
||||
"es2015",
|
||||
"es2016",
|
||||
"es2017",
|
||||
"dom"
|
||||
]
|
||||
},
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
const BabiliPlugin = require('babili-webpack-plugin');
|
||||
const webpack = require('webpack')
|
||||
const webpack = require('webpack');
|
||||
|
||||
const base = './nextcloudappstore/core/static/';
|
||||
|
||||
module.exports = {
|
||||
|
@ -10,9 +10,10 @@ module.exports = {
|
|||
'app/register': `${base}assets/app/app/views/Register.ts`,
|
||||
'app/upload': `${base}assets/app/app/views/Upload.ts`,
|
||||
'app/releases': `${base}assets/app/app/views/Releases.ts`,
|
||||
'user/token': `${base}assets/app/user/views/Token.ts`,
|
||||
'user/token': `${base}assets/app/user/views/Token.ts`
|
||||
},
|
||||
output: {
|
||||
path: __dirname,
|
||||
filename: `${base}public/[name].js`
|
||||
},
|
||||
resolve: {
|
||||
|
@ -24,10 +25,6 @@ module.exports = {
|
|||
{
|
||||
test: /\.tsx?$/,
|
||||
loader: 'ts-loader'
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: ['style-loader', 'css-loader']
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -36,7 +33,10 @@ module.exports = {
|
|||
// node_modules to the vendor directory for each page load to include
|
||||
new CopyWebpackPlugin([
|
||||
{from: 'node_modules/bootstrap/dist/fonts', to: `${base}vendor/bootstrap/dist/fonts`},
|
||||
{from: 'node_modules/bootstrap/dist/css/bootstrap.min.css', to: `${base}vendor/bootstrap/dist/css/bootstrap.min.css`},
|
||||
{
|
||||
from: 'node_modules/bootstrap/dist/css/bootstrap.min.css',
|
||||
to: `${base}vendor/bootstrap/dist/css/bootstrap.min.css`
|
||||
},
|
||||
{
|
||||
from: 'node_modules/bootstrap.native/dist/bootstrap-native.min.js',
|
||||
to: `${base}vendor/bootstrap.native.min.js`
|
||||
|
@ -50,9 +50,5 @@ module.exports = {
|
|||
/node_modules\/highlight\.js\/lib\/index\.js/,
|
||||
'../../../nextcloudappstore/core/static/assets/patches/hl.js'
|
||||
)
|
||||
]
|
||||
]
|
||||
};
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports.plugins.push(new BabiliPlugin);
|
||||
}
|
||||
|
|
3236
yarn.lock
3236
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче