-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsamples.js
More file actions
126 lines (121 loc) · 5.35 KB
/
samples.js
File metadata and controls
126 lines (121 loc) · 5.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
import getParentPath from 'cpp.js/src/utils/getParentPath.js';
import sampleLibCmake from '@cpp.js/sample-lib-cmake/cppjs.config.js';
import sampleLibCmakeMultithread from '@cpp.js/sample-lib-cmake-multithread/cppjs.config.js';
import sampleLibMatrix from '@cpp.js/sample-lib-prebuilt-matrix/cppjs.config.js';
import sampleLibMatrixMultithread from '@cpp.js/sample-lib-prebuilt-matrix-multithread/cppjs.config.js';
import sampleLibSource from '@cpp.js/sample-lib-source/cppjs.config.js';
import sampleLibSourceMultithread from '@cpp.js/sample-lib-source-multithread/cppjs.config.js';
import sampleMobileReactNativeCLI from '@cpp.js/sample-mobile-reactnative-cli/cppjs.config.mjs';
import sampleMobileReactNativeCLIMultithread from '@cpp.js/sample-mobile-reactnative-cli-multithread/cppjs.config.mjs';
import sampleMobileReactNativeExpo from '@cpp.js/sample-mobile-reactnative-expo/cppjs.config.mjs';
import sampleMobileReactNativeExpoMultithread from '@cpp.js/sample-mobile-reactnative-expo-multithread/cppjs.config.mjs';
import sampleWebVanilla from '@cpp.js/sample-web-vanilla/cppjs.config.mjs';
import sampleWebReactRspack from '@cpp.js/sample-web-react-rspack/cppjs.config.mjs';
import sampleWebReactVite from '@cpp.js/sample-web-react-vite/cppjs.config.js';
import sampleWebReactViteMultithread from '@cpp.js/sample-web-react-vite-multithread/cppjs.config.js';
import sampleWebSvelteVite from '@cpp.js/sample-web-svelte-vite/cppjs.config.js';
import sampleWebSvelteViteMultithread from '@cpp.js/sample-web-svelte-vite-multithread/cppjs.config.js';
import sampleWebVueVite from '@cpp.js/sample-web-vue-vite/cppjs.config.js';
import sampleWebNextWebpack from '@cpp.js/sample-web-next-webpack/cppjs.config.js';
import sampleWebNextWebpackMultithread from '@cpp.js/sample-web-next-webpack-multithread/cppjs.config.js';
import sampleWebNuxtVite from '@cpp.js/sample-web-nuxt-vite/cppjs.config.js';
import sampleWebNuxtViteMultithread from '@cpp.js/sample-web-nuxt-vite-multithread/cppjs.config.js';
import sampleBackendNodeJsWasm from '@cpp.js/sample-backend-nodejs-wasm/cppjs.config.mjs';
import sampleBackendNodeJsWasmMultithread from '@cpp.js/sample-backend-nodejs-wasm-multithread/cppjs.config.mjs';
import sampleCloudCloudflareWorker from '@cpp.js/sample-cloud-cloudflare-worker/cppjs.config.mjs';
export default {
Web: {
Questions: [
'Select a framework:',
'Select a bundler:',
],
Vanilla: {
path: getParentPath(sampleWebVanilla.paths.config),
},
React: {
Rspack: {
path: getParentPath(sampleWebReactRspack.paths.config),
},
Vite: {
path: getParentPath(sampleWebReactVite.paths.config),
multithreadPath: getParentPath(sampleWebReactViteMultithread.paths.config),
},
},
Vue: {
Vite: {
path: getParentPath(sampleWebVueVite.paths.config),
},
},
Svelte: {
Vite: {
path: getParentPath(sampleWebSvelteVite.paths.config),
multithreadPath: getParentPath(sampleWebSvelteViteMultithread.paths.config),
},
},
'Next.js': {
Webpack: {
path: getParentPath(sampleWebNextWebpack.paths.config),
multithreadPath: getParentPath(sampleWebNextWebpackMultithread.paths.config),
},
},
Nuxt: {
Vite: {
path: getParentPath(sampleWebNuxtVite.paths.config),
multithreadPath: getParentPath(sampleWebNuxtViteMultithread.paths.config),
},
},
},
Mobile: {
Questions: [
'Select a framework:',
'Select a ecosystem:',
],
'React Native': {
'Native CLI': {
path: getParentPath(sampleMobileReactNativeCLI.paths.config),
multithreadPath: getParentPath(sampleMobileReactNativeCLIMultithread.paths.config),
},
Expo: {
path: getParentPath(sampleMobileReactNativeExpo.paths.config),
multithreadPath: getParentPath(sampleMobileReactNativeExpoMultithread.paths.config),
},
},
},
Backend: {
Questions: [
'Select a runtime:',
'Select a ecosystem:',
],
'Node.js': {
WebAssembly: {
path: getParentPath(sampleBackendNodeJsWasm.paths.config),
multithreadPath: getParentPath(sampleBackendNodeJsWasmMultithread.paths.config),
},
},
},
Cloud: {
Questions: [
'Select a service:',
],
'Cloudflare Worker': {
path: getParentPath(sampleCloudCloudflareWorker.paths.config),
},
},
Library: {
Questions: [
'Select a library type:',
],
Prebuilt: {
path: getParentPath(sampleLibMatrix.paths.config),
multithreadPath: getParentPath(sampleLibMatrixMultithread.paths.config),
},
Source: {
path: getParentPath(sampleLibSource.paths.config),
multithreadPath: getParentPath(sampleLibSourceMultithread.paths.config),
},
CMake: {
path: getParentPath(sampleLibCmake.paths.config),
multithreadPath: getParentPath(sampleLibCmakeMultithread.paths.config),
},
},
};