popoll_web 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lifecycle.py DELETED
@@ -1,29 +0,0 @@
1
- #!/bin/python
2
- try:
3
- import fire
4
- except ModuleNotFoundError:
5
- import pip
6
- pip.main(['install', 'fire'])
7
- import fire
8
- import os
9
-
10
- class Lifecycle(object):
11
-
12
- def _run(self, cmd):
13
- print(f'>>>>> {cmd}')
14
- os.system(cmd)
15
-
16
- def _run_python(self, cmd):
17
- return self._run(f'python -m {cmd}')
18
-
19
- def install(self):
20
- self._run('npm install')
21
-
22
- def build(self):
23
- self._run('npm build')
24
-
25
- def run(self, open=False):
26
- self._run(f'npm run dev -- --host {"--open" if open else ""}')
27
-
28
- if __name__ == '__main__':
29
- fire.Fire(Lifecycle)
package/next_version.py DELETED
@@ -1,26 +0,0 @@
1
- import argparse
2
- import requests
3
-
4
- def get_options():
5
- parser = argparse.ArgumentParser()
6
- parser.add_argument('--index', '-i', default='https://registry.npmjs.org')
7
- parser.add_argument('--scope', default='')
8
- parser.add_argument('--url', default='{index}/{scope}/{module}/latest')
9
- parser.add_argument('module')
10
- return parser
11
-
12
- def get_latest(args):
13
- content = requests.get(args.url.format(index=args.index, scope=args.scope, module=args.module))
14
- return content.json()['version']
15
-
16
- def run(args):
17
- try:
18
- version = get_latest(args).split('.')
19
- version[-1] = str(int(version[-1]) + 1)
20
- print('.'.join(version))
21
- except:
22
- print('0.0.1')
23
-
24
- if __name__ == '__main__':
25
- args = get_options().parse_args()
26
- run(args)
@@ -1,12 +0,0 @@
1
- import type { PlaywrightTestConfig } from '@playwright/test';
2
-
3
- const config: PlaywrightTestConfig = {
4
- webServer: {
5
- command: 'npm run build && npm run preview',
6
- port: 4173
7
- },
8
- testDir: 'tests',
9
- testMatch: /(.+\.)?(test|spec)\.[jt]s/
10
- };
11
-
12
- export default config;
Binary file
package/static/robots.txt DELETED
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
package/tests/test.ts DELETED
@@ -1,6 +0,0 @@
1
- import { expect, test } from '@playwright/test';
2
-
3
- test('about page has expected h1', async ({ page }) => {
4
- await page.goto('/about');
5
- await expect(page.getByRole('heading', { name: 'About this app' })).toBeVisible();
6
- });
package/vite.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import { sveltekit } from '@sveltejs/kit/vite';
2
- import { defineConfig } from 'vitest/config';
3
-
4
- export default defineConfig({
5
- plugins: [
6
- sveltekit()
7
- ],
8
- test: {
9
- include: ['src/**/*.{test,spec}.{js,ts}']
10
- }
11
- });