wip: move components to node_modules folder for easier importing

This commit is contained in:
kevmodrome 2020-03-31 11:50:13 +02:00
parent 29850039ac
commit 87cd19bd92
145 changed files with 549 additions and 5 deletions

2
.gitignore vendored
View File

@ -38,7 +38,7 @@ bower_components
build/Release
# Dependency directories
node_modules/
/node_modules/
jspm_packages/
# TypeScript v1 declaration files

View File

@ -5,10 +5,11 @@
"private": true,
"scripts": {
"build": "rollup -c",
"start": "rollup -c -w",
"start": "routify -c rollup",
"test": "jest",
"test:watch": "jest --watchAll",
"dev:builder": "rollup -c -w"
"dev:builder": "routify -c rollup",
"rollup": "rollup -c -w"
},
"jest": {
"globals": {
@ -54,6 +55,7 @@
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/runtime": "^7.5.5",
"@sveltech/routify": "1.5.0-beta.16",
"babel-jest": "^24.8.0",
"browser-sync": "^2.26.7",
"http-proxy-middleware": "^0.19.1",

View File

@ -153,7 +153,7 @@ export default {
plugins: [
copy({
targets: [
{ src: "src/index.html", dest: outputpath },
{ src: "src/index.html", dest: outputpath, rename: "__app.html" },
{ src: "src/favicon.png", dest: outputpath },
{ src: "src/assets", dest: outputpath },
{
@ -214,6 +214,7 @@ export default {
// Watch the `dist` directory and refresh the
// browser on changes when not in production
!production && serve(),
!production && livereload(outputpath),
!production &&
browsersync({
@ -229,3 +230,20 @@ export default {
clearScreen: false,
},
}
function serve() {
let started = false
return {
writeBundle() {
if (!started) {
started = true
require("child_process").spawn("npm", ["run", "start"], {
stdio: ["ignore", "inherit", "inherit"],
shell: true,
})
}
},
}
}

View File

Before

Width:  |  Height:  |  Size: 213 B

After

Width:  |  Height:  |  Size: 213 B

View File

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 254 B

View File

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 254 B

View File

Before

Width:  |  Height:  |  Size: 250 B

After

Width:  |  Height:  |  Size: 250 B

View File

Before

Width:  |  Height:  |  Size: 251 B

After

Width:  |  Height:  |  Size: 251 B

View File

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View File

Before

Width:  |  Height:  |  Size: 379 B

After

Width:  |  Height:  |  Size: 379 B

View File

Before

Width:  |  Height:  |  Size: 228 B

After

Width:  |  Height:  |  Size: 228 B

View File

Before

Width:  |  Height:  |  Size: 388 B

After

Width:  |  Height:  |  Size: 388 B

View File

Before

Width:  |  Height:  |  Size: 430 B

After

Width:  |  Height:  |  Size: 430 B

View File

Before

Width:  |  Height:  |  Size: 365 B

After

Width:  |  Height:  |  Size: 365 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 305 B

View File

Before

Width:  |  Height:  |  Size: 448 B

After

Width:  |  Height:  |  Size: 448 B

View File

Before

Width:  |  Height:  |  Size: 447 B

After

Width:  |  Height:  |  Size: 447 B

View File

Before

Width:  |  Height:  |  Size: 362 B

After

Width:  |  Height:  |  Size: 362 B

View File

Before

Width:  |  Height:  |  Size: 263 B

After

Width:  |  Height:  |  Size: 263 B

View File

Before

Width:  |  Height:  |  Size: 387 B

After

Width:  |  Height:  |  Size: 387 B

View File

Before

Width:  |  Height:  |  Size: 372 B

After

Width:  |  Height:  |  Size: 372 B

View File

Before

Width:  |  Height:  |  Size: 320 B

After

Width:  |  Height:  |  Size: 320 B

Some files were not shown because too many files have changed in this diff Show More