create-routify 1.5.1 → 1.5.2
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/package.json +1 -1
- package/src/utils/patcher/test/index.js +3 -0
- package/src/versions/three/skeleton/index.html +0 -31
- package/src/versions/three/skeleton/package.json +0 -16
- package/src/versions/three/skeleton/src/App.svelte +0 -6
- package/src/versions/three/skeleton/src/main.js +0 -5
- package/src/versions/three/skeleton/src/routes/index.md +0 -1
- package/src/versions/three/skeleton/vite.config.js +0 -24
- package/src/versions/two.js +0 -18
- package/src/versions404/three/index.js +0 -29
- package/src/versions404/three/utils.js +0 -24
- package/src/versions404/two.js +0 -18
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
6
|
-
|
|
7
|
-
<title>Svelte app</title>
|
|
8
|
-
|
|
9
|
-
<!-- Google Fonts -->
|
|
10
|
-
<link
|
|
11
|
-
rel="stylesheet"
|
|
12
|
-
href="https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic"
|
|
13
|
-
/>
|
|
14
|
-
|
|
15
|
-
<!-- CSS Reset -->
|
|
16
|
-
<link
|
|
17
|
-
rel="stylesheet"
|
|
18
|
-
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css"
|
|
19
|
-
/>
|
|
20
|
-
|
|
21
|
-
<!-- Milligram CSS -->
|
|
22
|
-
<link
|
|
23
|
-
rel="stylesheet"
|
|
24
|
-
href="https://cdnjs.cloudflare.com/ajax/libs/milligram/1.4.1/milligram.css"
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<script type="module" src="/src/main.js"></script>
|
|
28
|
-
</head>
|
|
29
|
-
|
|
30
|
-
<body></body>
|
|
31
|
-
</html>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "starter",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"scripts": {
|
|
5
|
-
"build": "vite build",
|
|
6
|
-
"preview": "vite preview",
|
|
7
|
-
"dev": "vite"
|
|
8
|
-
},
|
|
9
|
-
"devDependencies": {
|
|
10
|
-
"@roxi/routify": "^3.0.0-next.1",
|
|
11
|
-
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.13",
|
|
12
|
-
"mdsvex": "^0.9.3",
|
|
13
|
-
"svelte": "^3.39.0",
|
|
14
|
-
"vite": "^2.2.3"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Routify 3 App
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
2
|
-
import routify from '@roxi/routify/vite-plugin'
|
|
3
|
-
import { defineConfig } from 'vite'
|
|
4
|
-
import { mdsvex } from 'mdsvex'
|
|
5
|
-
|
|
6
|
-
const production = process.env.NODE_ENV === 'production'
|
|
7
|
-
|
|
8
|
-
export default defineConfig({
|
|
9
|
-
clearScreen: false,
|
|
10
|
-
|
|
11
|
-
plugins: [
|
|
12
|
-
routify(),
|
|
13
|
-
svelte({
|
|
14
|
-
emitCss: true,
|
|
15
|
-
compilerOptions: {
|
|
16
|
-
dev: !production,
|
|
17
|
-
},
|
|
18
|
-
extensions: ['.md', '.svelte'],
|
|
19
|
-
preprocess: [mdsvex({ extension: 'md' })],
|
|
20
|
-
}),
|
|
21
|
-
],
|
|
22
|
-
|
|
23
|
-
server: { port: 1337 },
|
|
24
|
-
})
|
package/src/versions/two.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import logSymbols from 'log-symbols';
|
|
2
|
-
import simpleGit from 'simple-git';
|
|
3
|
-
import { rmSync } from 'fs';
|
|
4
|
-
import { join } from 'path';
|
|
5
|
-
import k from 'kleur';
|
|
6
|
-
|
|
7
|
-
export const run = async ({ projectDir, args }) => {
|
|
8
|
-
const git = simpleGit(projectDir);
|
|
9
|
-
|
|
10
|
-
console.log(k.blue(`\n${logSymbols.info} Cloning template...`));
|
|
11
|
-
|
|
12
|
-
await git.clone('https://github.com/roxiness/routify-starter', projectDir);
|
|
13
|
-
|
|
14
|
-
rmSync(join(projectDir, '.git'), {
|
|
15
|
-
recursive: true,
|
|
16
|
-
force: true,
|
|
17
|
-
});
|
|
18
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { getTemplate, onCancel } from '../../utils/prompts.js';
|
|
2
|
-
import { readdir, cp, rm } from 'fs/promises';
|
|
3
|
-
import { join, dirname } from 'path';
|
|
4
|
-
import { fileURLToPath, pathToFileURL } from 'url';
|
|
5
|
-
import prompts from 'prompts';
|
|
6
|
-
import k from 'kleur';
|
|
7
|
-
import { getRoutifyExamplesDir, routifyIntro } from './utils.js';
|
|
8
|
-
import { existsSync } from 'fs';
|
|
9
|
-
import { addTests } from '../../utils/patcher/test/index.js';
|
|
10
|
-
|
|
11
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
12
|
-
|
|
13
|
-
export const run = async (options) => {
|
|
14
|
-
const { dir, force, version, starter } = options;
|
|
15
|
-
console.log('options', options);
|
|
16
|
-
routifyIntro();
|
|
17
|
-
|
|
18
|
-
const routifyExamplesDir = getRoutifyExamplesDir();
|
|
19
|
-
const project = await getTemplate(routifyExamplesDir, starter);
|
|
20
|
-
console.log('project', project);
|
|
21
|
-
if (project.test) {
|
|
22
|
-
const { tests } = project.test;
|
|
23
|
-
console.log(tests);
|
|
24
|
-
addTests(projectDir, project.test);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// await cp(exampleDir, projectDir, { recursive: true });
|
|
28
|
-
// await rm(join(projectDir, 'manifest.js'));
|
|
29
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module';
|
|
2
|
-
import { resolve } from 'path';
|
|
3
|
-
import k from 'kleur';
|
|
4
|
-
const require = createRequire(import.meta.url);
|
|
5
|
-
|
|
6
|
-
export function routifyIntro() {
|
|
7
|
-
console.log();
|
|
8
|
-
console.log(
|
|
9
|
-
` ${k.underline(
|
|
10
|
-
`${k.bold().magenta('Routify')} ${k.bold('3')} beta`,
|
|
11
|
-
)}`,
|
|
12
|
-
);
|
|
13
|
-
console.log(
|
|
14
|
-
` - Follow our twitter to get updates: ${k.blue(
|
|
15
|
-
'https://twitter.com/routifyjs',
|
|
16
|
-
)}`,
|
|
17
|
-
);
|
|
18
|
-
console.log(
|
|
19
|
-
` - Or join our discord: ${k.blue(
|
|
20
|
-
'https://discord.com/invite/ntKJD5B',
|
|
21
|
-
)}`,
|
|
22
|
-
);
|
|
23
|
-
console.log();
|
|
24
|
-
}
|
package/src/versions404/two.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import logSymbols from 'log-symbols';
|
|
2
|
-
import simpleGit from 'simple-git';
|
|
3
|
-
import { rmSync } from 'fs';
|
|
4
|
-
import { join } from 'path';
|
|
5
|
-
import k from 'kleur';
|
|
6
|
-
|
|
7
|
-
export const run = async ({ projectDir, args }) => {
|
|
8
|
-
const git = simpleGit(projectDir);
|
|
9
|
-
|
|
10
|
-
console.log(k.blue(`\n${logSymbols.info} Cloning template...`));
|
|
11
|
-
|
|
12
|
-
await git.clone('https://github.com/roxiness/routify-starter', projectDir);
|
|
13
|
-
|
|
14
|
-
rmSync(join(projectDir, '.git'), {
|
|
15
|
-
recursive: true,
|
|
16
|
-
force: true,
|
|
17
|
-
});
|
|
18
|
-
};
|