create-pl1-omp 1.0.0 → 1.0.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/index.js +2 -9
- package/package.json +8 -4
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const fs = require('fs-extra');
|
|
@@ -11,13 +11,11 @@ async function run() {
|
|
|
11
11
|
message: 'Select the lab program to generate:',
|
|
12
12
|
choices: [
|
|
13
13
|
{ title: 'PL1 - Parallel Merge Sort (OpenMP)', value: 'PL1' }
|
|
14
|
-
// We will add PL2, PL3, etc. here one by one
|
|
15
14
|
],
|
|
16
15
|
initial: 0,
|
|
17
16
|
});
|
|
18
17
|
|
|
19
18
|
if (!response.program) {
|
|
20
|
-
console.log('Action cancelled.');
|
|
21
19
|
return;
|
|
22
20
|
}
|
|
23
21
|
|
|
@@ -29,13 +27,8 @@ async function run() {
|
|
|
29
27
|
|
|
30
28
|
try {
|
|
31
29
|
await fs.copy(srcFolder, destFolder, { overwrite: true });
|
|
32
|
-
console.log(
|
|
33
|
-
console.log(`\nTo run it:`);
|
|
34
|
-
console.log(` cd ${response.program}`);
|
|
35
|
-
console.log(` gcc -fopenmp ${response.program}.c -o ${response.program}`);
|
|
36
|
-
console.log(` ./${response.program}\n`);
|
|
30
|
+
console.log('done');
|
|
37
31
|
} catch (err) {
|
|
38
|
-
console.error('❌ Failed to copy template folder:', err);
|
|
39
32
|
process.exit(1);
|
|
40
33
|
}
|
|
41
34
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pl1-omp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Scaffolds OpenMP lab programs",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"create-pl1-omp": "
|
|
7
|
+
"create-pl1-omp": "index.js"
|
|
8
8
|
},
|
|
9
|
-
"keywords": [
|
|
9
|
+
"keywords": [
|
|
10
|
+
"create",
|
|
11
|
+
"openmp",
|
|
12
|
+
"lab"
|
|
13
|
+
],
|
|
10
14
|
"license": "MIT",
|
|
11
15
|
"dependencies": {
|
|
12
16
|
"fs-extra": "^11.2.0",
|
|
13
17
|
"prompts": "^2.4.2"
|
|
14
18
|
}
|
|
15
|
-
}
|
|
19
|
+
}
|