forked from thi-ng/umbrella
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(examples): switch all examples to new snowpack setup
- Loading branch information
1 parent
fef1948
commit 9f1c5ed
Showing
692 changed files
with
11,026 additions
and
3,296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.cache | ||
out | ||
build | ||
dev | ||
node_modules | ||
yarn.lock | ||
*.js | ||
!snowpack.config.js | ||
!*.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,9 @@ | |
"author": "Karsten Schmidt <[email protected]>", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"clean": "rm -rf .cache build out", | ||
"build": "yarn clean && parcel build index.html -d out --public-url ./ --no-source-maps --no-cache --detailed-report --experimental-scope-hoisting", | ||
"build:webpack": "../../node_modules/.bin/webpack --mode production", | ||
"start": "parcel index.html -p 8080 --open --no-cache" | ||
}, | ||
"devDependencies": { | ||
"parcel-bundler": "^1.12.4", | ||
"terser": "^5.2.1", | ||
"typescript": "^4.1.2" | ||
"clean": "../../node_modules/.bin/rimraf build node_modules/.cache", | ||
"start": "../../node_modules/.bin/snowpack dev", | ||
"build": "../../node_modules/.bin/snowpack build" | ||
}, | ||
"dependencies": { | ||
"@thi.ng/api": "latest", | ||
|
@@ -39,5 +33,8 @@ | |
"transducers-hdom" | ||
], | ||
"screenshot": "examples/adaptive-threshold.png" | ||
}, | ||
"devDependencies": { | ||
"@types/snowpack-env": "^2.3.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** @type {import("snowpack").SnowpackUserConfig } */ | ||
module.exports = { | ||
mount: { | ||
public: "/", | ||
src: "/_dist_", | ||
}, | ||
plugins: [ | ||
"@snowpack/plugin-typescript", | ||
[ | ||
"@snowpack/plugin-webpack", | ||
{ | ||
extendConfig: (config) => { | ||
config.node = { | ||
process: false, | ||
setImmediate: false, | ||
util: "empty", | ||
}; | ||
return config; | ||
}, | ||
}, | ||
], | ||
], | ||
installOptions: { | ||
installTypes: true, | ||
}, | ||
buildOptions: { | ||
baseUrl: "/adaptive-threshold", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* Use this file to declare any custom file extensions for importing */ | ||
/* Use this folder to also add/extend a package d.ts file, if needed. */ | ||
|
||
/* CSS MODULES */ | ||
declare module "*.module.css" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module "*.module.scss" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module "*.module.sass" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module "*.module.less" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module "*.module.styl" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
|
||
/* CSS */ | ||
declare module "*.css"; | ||
declare module "*.scss"; | ||
declare module "*.sass"; | ||
declare module "*.less"; | ||
declare module "*.styl"; | ||
|
||
/* IMAGES */ | ||
declare module "*.svg" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.bmp" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.gif" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.jpg" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.jpeg" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.png" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
|
||
/* CUSTOM: ADD YOUR OWN HERE */ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"extends": "../tsconfig.json", | ||
"include": ["src"], | ||
"compilerOptions": { | ||
"outDir": ".", | ||
"target": "es2017", | ||
"sourceMap": true | ||
}, | ||
"include": ["./src/**/*.ts"] | ||
"baseUrl": "./", | ||
"paths": { "*": ["web_modules/.types/*"] } | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.cache | ||
out | ||
build | ||
dev | ||
node_modules | ||
yarn.lock | ||
*.js | ||
!snowpack.config.js | ||
!*.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,9 @@ | |
"author": "Karsten Schmidt <[email protected]>", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"clean": "rm -rf .cache build out", | ||
"prep": "yarn clean && mkdir -p out && cp foo.json out", | ||
"build": "yarn prep && parcel build index.html -d out --no-source-maps --no-cache --experimental-scope-hoisting --detailed-report --public-url ./", | ||
"start": "yarn prep && parcel index.html -p 8080 --open -d out" | ||
}, | ||
"devDependencies": { | ||
"parcel-bundler": "^1.12.4", | ||
"terser": "^5.2.1", | ||
"typescript": "^4.1.2" | ||
"clean": "../../node_modules/.bin/rimraf build node_modules/.cache", | ||
"start": "../../node_modules/.bin/snowpack dev", | ||
"build": "../../node_modules/.bin/snowpack build" | ||
}, | ||
"dependencies": { | ||
"@thi.ng/api": "latest", | ||
|
@@ -31,5 +25,8 @@ | |
"readme": [ | ||
"interceptors" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@types/snowpack-env": "^2.3.2" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** @type {import("snowpack").SnowpackUserConfig } */ | ||
module.exports = { | ||
mount: { | ||
public: "/", | ||
src: "/_dist_", | ||
}, | ||
plugins: [ | ||
"@snowpack/plugin-typescript", | ||
[ | ||
"@snowpack/plugin-webpack", | ||
{ | ||
extendConfig: (config) => { | ||
config.node = { | ||
process: false, | ||
setImmediate: false, | ||
util: "empty", | ||
}; | ||
return config; | ||
}, | ||
}, | ||
], | ||
], | ||
installOptions: { | ||
installTypes: true, | ||
}, | ||
buildOptions: { | ||
baseUrl: "/async-effect", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* Use this file to declare any custom file extensions for importing */ | ||
/* Use this folder to also add/extend a package d.ts file, if needed. */ | ||
|
||
/* CSS MODULES */ | ||
declare module "*.module.css" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module "*.module.scss" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module "*.module.sass" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module "*.module.less" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
declare module "*.module.styl" { | ||
const classes: { [key: string]: string }; | ||
export default classes; | ||
} | ||
|
||
/* CSS */ | ||
declare module "*.css"; | ||
declare module "*.scss"; | ||
declare module "*.sass"; | ||
declare module "*.less"; | ||
declare module "*.styl"; | ||
|
||
/* IMAGES */ | ||
declare module "*.svg" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.bmp" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.gif" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.jpg" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.jpeg" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
declare module "*.png" { | ||
const ref: string; | ||
export default ref; | ||
} | ||
|
||
/* CUSTOM: ADD YOUR OWN HERE */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"extends": "../tsconfig.json", | ||
"include": ["src"], | ||
"compilerOptions": { | ||
"outDir": ".", | ||
"module": "es2020", | ||
"target": "es2017", | ||
"sourceMap": true | ||
}, | ||
"include": ["./src/**/*.ts"] | ||
"baseUrl": "./", | ||
"paths": { "*": ["web_modules/.types/*"] } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.cache | ||
out | ||
build | ||
dev | ||
node_modules | ||
yarn.lock | ||
*.js | ||
!snowpack.config.js | ||
!*.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,9 @@ | |
"author": "Karsten Schmidt <[email protected]>", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"clean": "rm -rf .cache build out", | ||
"build": "yarn clean && parcel build index.html -d out --public-url ./ --no-source-maps --no-cache --detailed-report --experimental-scope-hoisting", | ||
"build:webpack": "../../node_modules/.bin/webpack --mode production", | ||
"start": "parcel index.html -p 8080 --open --no-cache" | ||
}, | ||
"devDependencies": { | ||
"parcel-bundler": "^1.12.4", | ||
"rimraf": "^2.6.3", | ||
"terser": "^5.2.1", | ||
"typescript": "^4.1.2" | ||
"clean": "../../node_modules/.bin/rimraf build node_modules/.cache", | ||
"start": "../../node_modules/.bin/snowpack dev", | ||
"build": "../../node_modules/.bin/snowpack build" | ||
}, | ||
"dependencies": { | ||
"@thi.ng/api": "latest", | ||
|
@@ -40,5 +33,8 @@ | |
"transducers-hdom" | ||
], | ||
"screenshot": "examples/bitmap-font.gif" | ||
}, | ||
"devDependencies": { | ||
"@types/snowpack-env": "^2.3.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.