vanilla-jet 1.0.22 → 1.0.24

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.
@@ -31,7 +31,7 @@ nunjucks.configure(nunjucksPath, {
31
31
  });
32
32
 
33
33
  // -- Template directory
34
- const templatesDirectoryPath = '../assets/templates/';
34
+ const templatesDirectoryPath = '/assets/templates/';
35
35
 
36
36
  // -- Call main function
37
37
  main();
@@ -126,7 +126,7 @@ function getTemplates(directory) {
126
126
  }
127
127
 
128
128
  // -- Main code
129
- const templatesPath = path.join(__dirname, directory);
129
+ const templatesPath = path.join(processCwd(), directory);
130
130
  exploreDirectory(templatesPath);
131
131
  return results;
132
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jet",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "VannilaJet framework",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "scripts": {
10
10
  "setup": "node ./.scripts/generate_packages_json.js",
11
- "dev": "grunt --env=development & nodemon index.js --ignore '**/public/**'",
11
+ "dev": "concurrently \"grunt --env=development\" \"nodemon index.js --ignore '**/public/**'\"",
12
12
  "build:qa": "grunt build --env=qa",
13
13
  "build:prod": "grunt build --env=production",
14
14
  "start": "pm2 start index.js -- --p production",
@@ -40,6 +40,7 @@
40
40
  "zlib": "1.0.5"
41
41
  },
42
42
  "devDependencies": {
43
+ "concurrently": "^8.2.2",
43
44
  "grunt": "1.6.1",
44
45
  "grunt-cli": "1.4.3",
45
46
  "grunt-contrib-clean": "2.0.1",