Updating to CCNA3
This commit is contained in:
parent
ef8880b240
commit
18beebda7a
1440
ccna2.json
Normal file
1440
ccna2.json
Normal file
File diff suppressed because it is too large
Load Diff
4559
package-lock.json
generated
4559
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
25
package.json
25
package.json
@ -9,30 +9,23 @@
|
||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@hibas123/theme": "^1.2.6",
|
||||
"@hibas123/theme": "^1.2.14",
|
||||
"@hibas123/utils": "^2.1.1",
|
||||
"feather-icons": "^4.24.1",
|
||||
"navigo": "^7.1.2",
|
||||
"rollup-plugin-json": "^4.0.0",
|
||||
"svelte": "^3.12.1",
|
||||
"ts-node": "^8.3.0",
|
||||
"svelte": "^3.15.0",
|
||||
"ts-node": "^8.5.2",
|
||||
"uuid": "^3.3.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/navigo": "^7.0.1",
|
||||
"@types/node": "^12.7.5",
|
||||
"@types/uuid": "^3.4.5",
|
||||
"node-sass": "^4.12.0",
|
||||
"parcel-bundler": "^1.12.3",
|
||||
"parcel-plugin-svelte": "^3.0.1",
|
||||
"rollup": "^1.21.2",
|
||||
"rollup-plugin-commonjs": "^10.1.0",
|
||||
"rollup-plugin-node-resolve": "^5.2.0",
|
||||
"rollup-plugin-svelte": "^5.1.0",
|
||||
"rollup-plugin-terser": "^5.1.1",
|
||||
"rollup-plugin-typescript2": "^0.24.1",
|
||||
"@types/node": "^12.12.12",
|
||||
"@types/uuid": "^3.4.6",
|
||||
"node-sass": "^4.13.0",
|
||||
"parcel-bundler": "^1.12.4",
|
||||
"parcel-plugin-svelte": "^4.0.5",
|
||||
"svelte-preprocess-sass": "^0.2.0",
|
||||
"typescript": "^3.6.3"
|
||||
"typescript": "^3.7.2"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 2 Chrome versions"
|
||||
|
@ -1,95 +0,0 @@
|
||||
// import * as rollup from "rollup";
|
||||
import svelteplg from 'rollup-plugin-svelte';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import typescript from "rollup-plugin-typescript2";
|
||||
import rjson from "rollup-plugin-json";
|
||||
import * as fs from "fs";
|
||||
import {
|
||||
terser
|
||||
} from 'rollup-plugin-terser';
|
||||
|
||||
const production = process.argv.indexOf("-d") < 0;
|
||||
console.log(`Runnig in ${production ? "production" : "development"} mode!`);
|
||||
|
||||
let plg = [];
|
||||
|
||||
if (production) {
|
||||
plg.push(terser())
|
||||
}
|
||||
|
||||
if (!fs.existsSync("build"))
|
||||
fs.mkdirSync("build");
|
||||
|
||||
fs.copyFileSync("src/index.html", "build/index.html");
|
||||
|
||||
export default {
|
||||
input: `./src/main.ts`,
|
||||
output: {
|
||||
sourcemap: true,
|
||||
format: 'iife',
|
||||
name: 'app',
|
||||
file: `build/bundle.js`
|
||||
},
|
||||
watch: {
|
||||
clearScreen: false
|
||||
},
|
||||
plugins: [
|
||||
cssStringPlugin({
|
||||
include: [
|
||||
"@hibas123/theme/out/base.css",
|
||||
"@hibas123/theme/out/light.css",
|
||||
"@hibas123/theme/out/dark.css"
|
||||
]
|
||||
}),
|
||||
// svgSveltePlugin(),
|
||||
resolve({
|
||||
browser: true
|
||||
}),
|
||||
typescript({
|
||||
tsconfig: "./src/tsconfig.json"
|
||||
}),
|
||||
svelteplg({
|
||||
// enable run-time checks when not in production
|
||||
dev: !production,
|
||||
extensions: [".svg", ".svelte"],
|
||||
css: css => {
|
||||
css.write(`build/bundle.css`);
|
||||
}
|
||||
}),
|
||||
commonjs({
|
||||
namedExports: {
|
||||
"node_modules/js-sha256/src/sha256.js": ["sha256"],
|
||||
"node_modules/aes-js/index.js": ["ModeOfOperation"]
|
||||
}
|
||||
}),
|
||||
rjson(),
|
||||
...plg
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
import * as path from "path";
|
||||
|
||||
|
||||
function cssStringPlugin({
|
||||
include
|
||||
}) {
|
||||
return {
|
||||
name: 'css-to-string', // this name will show up in warnings and errors
|
||||
resolveId(source) {
|
||||
if (include.indexOf(source) >= 0)
|
||||
return source;
|
||||
return null; // other ids should be handled as usually
|
||||
},
|
||||
load(id) {
|
||||
if (include.indexOf(id) >= 0) {
|
||||
const p = "./node_modules/" + id;
|
||||
let r = `export default ${JSON.stringify(fs.readFileSync(p).toString("utf-8")).replace("'", "\'")}`;
|
||||
return r;
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user