File tree Expand file tree Collapse file tree 4 files changed +58
-13
lines changed Expand file tree Collapse file tree 4 files changed +58
-13
lines changed Original file line number Diff line number Diff line change 1
- # pyscript
1
+ # pyscript
2
+
3
+ To demonstrate pyscript, see [ the pyscript folder] ( pyscriptjs/README.md ) .
Original file line number Diff line number Diff line change 1
- # Svelte TypeScript Tailwindcss Setup
1
+ # PyScript Demonstrator
2
2
3
- svelte template based on the default svelte/template with enabled typescript and tailwindcss support .
3
+ A simple webapp to demonstrate the capabilities of PyScript .
4
4
5
- Related blogpost (on Svelte+TS+Tailwind): https://www.liip.ch/en/blog/svelte-typescript-tailwind-setup
5
+ ## Getting started
6
6
7
- ``` bash
8
- npx degit munxar/svelte-template my-svelte-project
9
- cd my-svelte-project
10
- npm i
11
- npm run dev
12
- ```
7
+ 1 . If you don't already have Node.js, install it. The official installer for the
8
+ LTS version of Node is available from [ nodejs.org] ( https://nodejs.org/ ) .
9
+
10
+ 2 . If you don't already have Rollup, install it. Rollup can be installed as a
11
+ global resource using:
12
+
13
+ $ npm install --global rollup
14
+
15
+ 3 . Install the demo apps requirements:
16
+
17
+ $ npm install
18
+
19
+ 4 . Start the server:
20
+
21
+ $ npm run dev
22
+
23
+ This will compile the resources for the app, and start the development server.
24
+
25
+ 5 . When the compilation completes, it will display something like:
26
+
27
+ Your application is ready~! 🚀
28
+
29
+ - Local: http://localhost:8080
30
+ - Network: Add `--host` to expose
31
+
32
+ ────────────────── LOGS ──────────────────
33
+
34
+ Once this is visible, open a browser at
35
+ [ http://localhost:8080 ] ( http://localhost:8080 ) . This will provide a list of
36
+ demos that you can run.
Original file line number Diff line number Diff line change 4
4
< meta charset ="utf-8 " />
5
5
< meta name ="viewport " content ="width=device-width,initial-scale=1 " />
6
6
7
- < title > Svelte app </ title >
7
+ < title > PyScript demo </ title >
8
8
9
9
< link rel ="icon " type ="image/png " href ="favicon.png " />
10
10
< link rel ="stylesheet " href ="build/bundle.css " />
11
-
11
+
12
12
< script defer src ="build/bundle.js "> </ script >
13
13
</ head >
14
14
15
- < body > </ body >
15
+ < body class ="container ">
16
+
17
+ < h1 class ="text-3xl font-bold "> PyScript demos</ h1 >
18
+ < hr />
19
+
20
+ < h2 class ="text-2xl font-bold text-blue-600 "> < a href ="./simple_script.html "> Simple script</ a > </ h2 >
21
+ < p > A static demo of the < code > <py-script></ code > tag</ p >
22
+
23
+ < h2 class ="text-2xl font-bold text-blue-600 "> < a href ="./simple_script2.html "> Simple script 2</ a > </ h2 >
24
+ < p > A dynamic demo of the < code > <py-script></ code > tag</ p >
25
+
26
+ < h2 class ="text-2xl font-bold text-blue-600 "> < a href ="./repl.html "> REPL</ a > </ h2 >
27
+ < p > A Python REPL (Read Eval Print Loop). </ p >
28
+
29
+ < h2 class ="text-2xl font-bold text-blue-600 "> < a href ="./repl2.html "> REPL2</ a > </ h2 >
30
+ < p > A Python REPL (Read Eval Print Loop) with slightly better formatting.</ p >
31
+ </ body >
16
32
</ html >
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ module.exports = {
16
16
darkMode : false , // or 'media' or 'class'
17
17
theme : {
18
18
extend : { } ,
19
+ container : {
20
+ center : true
21
+ }
19
22
} ,
20
23
variants : {
21
24
extend : { } ,
You can’t perform that action at this time.
0 commit comments