Browse code

gitignore implemented

Louis authored on12/12/2022 18:39:44
Showing1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,100 +0,0 @@
1
-////////////////////////////////////////////////////////////////////////////////
2
-// Template vars injected by projess_js.py:
3
-
4
-// boolean
5
-const isSandbox = false;
6
-
7
-// Array with absolute file path strings
8
-const entryFilenames = ["_pkjs_shared_additions.js",
9
-"/home/louis/pebble-dev/repos/Pebble-Watchface-Day-and-Night-Earth-Connection-master/src/pkjs/app.js"];
10
-
11
-// folder path string
12
-const outputPath = "build";
13
-
14
-// file name string
15
-const outputFilename = "pebble-js-app.js";
16
-
17
-// Array with absolute folder path strings
18
-const resolveRoots = ["/home/louis/.pebble-sdk/SDKs/current/sdk-core/pebble/common/include",
19
-"/home/louis/.pebble-sdk/SDKs/current/sdk-core/pebble/common/tools/webpack",
20
-"/home/louis/.pebble-sdk/SDKs/current/node_modules",
21
-"/home/louis/pebble-dev/repos/Pebble-Watchface-Day-and-Night-Earth-Connection-master/build/js"];
22
-
23
-// Object, { alias1: 'path1', ... }
24
-const resolveAliases = {"app_package.json": "/home/louis/pebble-dev/repos/Pebble-Watchface-Day-and-Night-Earth-Connection-master/package.json"};
25
-
26
-// null or Object with key 'sourceMapFilename'
27
-const sourceMapConfig = {"sourceMapFilename": "pebble-js-app.js.map"};
28
-
29
-////////////////////////////////////////////////////////////////////////////////
30
-// NOTE: Must escape dollar-signs, because this is a Python template!
31
-
32
-const webpack = require('webpack');
33
-
34
-module.exports = (() => {
35
-  // The basic config:
36
-  const config = {
37
-    entry: entryFilenames,
38
-    output: {
39
-        path: outputPath,
40
-        filename: outputFilename
41
-    },
42
-    target: 'node',
43
-    resolve: {
44
-        root: resolveRoots,
45
-        extensions: ['', '.js', '.json'],
46
-        alias: resolveAliases
47
-    },
48
-    resolveLoader: {
49
-        root: resolveRoots
50
-    }
51
-  };
52
-
53
-  if (sourceMapConfig) {
54
-    // Enable webpack's source map output:
55
-    config.devtool = 'source-map';
56
-    config.output.sourceMapFilename = sourceMapConfig.sourceMapFilename;
57
-    config.output.devtoolModuleFilenameTemplate = '[resource-path]';
58
-    config.output.devtoolFallbackModuleFilenameTemplate = '[resourcePath]?[hash]';
59
-  }
60
-
61
-  return config;
62
-})();
63
-
64
-module.exports.plugins = (() => {
65
-  const plugins = [
66
-    // Returns a non-zero exit code when webpack reports an error:
67
-    require('webpack-fail-plugin'),
68
-
69
-    // Includes _message_keys_wrapper in every build to mimic old loader.js:
70
-    new webpack.ProvidePlugin({ require: '_message_key_wrapper' })
71
-  ];
72
-
73
-  if (isSandbox) {
74
-    // Prevents using `require('evil_loader!mymodule')` to execute custom
75
-    // loader code during the webpack build.
76
-    const RestrictResourcePlugin = require('restrict-resource-webpack-plugin');
77
-    const plugin = new RestrictResourcePlugin(/!+/,
78
-      'Custom inline loaders are not permitted.');
79
-    plugins.push(plugin);
80
-  }
81
-
82
-  return plugins;
83
-})();
84
-
85
-module.exports.module = {
86
-  loaders: (() => {
87
-    const loaders = [{'test': /\.json$/, 'loader': 'json-loader'}];
88
-
89
-    if (isSandbox) {
90
-      // See restricted-resource-loader.js, prevents loading files outside
91
-      // of the project folder, i.e. `require(../../not_your_business)`:
92
-      const restrictLoader = {
93
-        'test': /^.*/, 'loader': 'restricted-resource-loader'
94
-      };
95
-      loaders.push(restrictLoader);
96
-    }
97
-
98
-    return loaders;
99
-  })()
100
-};
Browse code

add aplite as pebble hardware

Louis authored on17/10/2021 20:57:00
Showing1 changed files
... ...
@@ -6,7 +6,7 @@ const isSandbox = false;
6 6
 
7 7
 // Array with absolute file path strings
8 8
 const entryFilenames = ["_pkjs_shared_additions.js",
9
-"/home/louis/pebble-dev/projects/Pebble-Watchface-Day-and-Night-Earth-Connection-master/src/pkjs/app.js"];
9
+"/home/louis/pebble-dev/repos/Pebble-Watchface-Day-and-Night-Earth-Connection-master/src/pkjs/app.js"];
10 10
 
11 11
 // folder path string
12 12
 const outputPath = "build";
... ...
@@ -18,10 +18,10 @@ const outputFilename = "pebble-js-app.js";
18 18
 const resolveRoots = ["/home/louis/.pebble-sdk/SDKs/current/sdk-core/pebble/common/include",
19 19
 "/home/louis/.pebble-sdk/SDKs/current/sdk-core/pebble/common/tools/webpack",
20 20
 "/home/louis/.pebble-sdk/SDKs/current/node_modules",
21
-"/home/louis/pebble-dev/projects/Pebble-Watchface-Day-and-Night-Earth-Connection-master/build/js"];
21
+"/home/louis/pebble-dev/repos/Pebble-Watchface-Day-and-Night-Earth-Connection-master/build/js"];
22 22
 
23 23
 // Object, { alias1: 'path1', ... }
24
-const resolveAliases = {"app_package.json": "/home/louis/pebble-dev/projects/Pebble-Watchface-Day-and-Night-Earth-Connection-master/package.json"};
24
+const resolveAliases = {"app_package.json": "/home/louis/pebble-dev/repos/Pebble-Watchface-Day-and-Night-Earth-Connection-master/package.json"};
25 25
 
26 26
 // null or Object with key 'sourceMapFilename'
27 27
 const sourceMapConfig = {"sourceMapFilename": "pebble-js-app.js.map"};
Louis authored on17/10/2018 20:31:52
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,100 @@
1
+////////////////////////////////////////////////////////////////////////////////
2
+// Template vars injected by projess_js.py:
3
+
4
+// boolean
5
+const isSandbox = false;
6
+
7
+// Array with absolute file path strings
8
+const entryFilenames = ["_pkjs_shared_additions.js",
9
+"/home/louis/pebble-dev/projects/Pebble-Watchface-Day-and-Night-Earth-Connection-master/src/pkjs/app.js"];
10
+
11
+// folder path string
12
+const outputPath = "build";
13
+
14
+// file name string
15
+const outputFilename = "pebble-js-app.js";
16
+
17
+// Array with absolute folder path strings
18
+const resolveRoots = ["/home/louis/.pebble-sdk/SDKs/current/sdk-core/pebble/common/include",
19
+"/home/louis/.pebble-sdk/SDKs/current/sdk-core/pebble/common/tools/webpack",
20
+"/home/louis/.pebble-sdk/SDKs/current/node_modules",
21
+"/home/louis/pebble-dev/projects/Pebble-Watchface-Day-and-Night-Earth-Connection-master/build/js"];
22
+
23
+// Object, { alias1: 'path1', ... }
24
+const resolveAliases = {"app_package.json": "/home/louis/pebble-dev/projects/Pebble-Watchface-Day-and-Night-Earth-Connection-master/package.json"};
25
+
26
+// null or Object with key 'sourceMapFilename'
27
+const sourceMapConfig = {"sourceMapFilename": "pebble-js-app.js.map"};
28
+
29
+////////////////////////////////////////////////////////////////////////////////
30
+// NOTE: Must escape dollar-signs, because this is a Python template!
31
+
32
+const webpack = require('webpack');
33
+
34
+module.exports = (() => {
35
+  // The basic config:
36
+  const config = {
37
+    entry: entryFilenames,
38
+    output: {
39
+        path: outputPath,
40
+        filename: outputFilename
41
+    },
42
+    target: 'node',
43
+    resolve: {
44
+        root: resolveRoots,
45
+        extensions: ['', '.js', '.json'],
46
+        alias: resolveAliases
47
+    },
48
+    resolveLoader: {
49
+        root: resolveRoots
50
+    }
51
+  };
52
+
53
+  if (sourceMapConfig) {
54
+    // Enable webpack's source map output:
55
+    config.devtool = 'source-map';
56
+    config.output.sourceMapFilename = sourceMapConfig.sourceMapFilename;
57
+    config.output.devtoolModuleFilenameTemplate = '[resource-path]';
58
+    config.output.devtoolFallbackModuleFilenameTemplate = '[resourcePath]?[hash]';
59
+  }
60
+
61
+  return config;
62
+})();
63
+
64
+module.exports.plugins = (() => {
65
+  const plugins = [
66
+    // Returns a non-zero exit code when webpack reports an error:
67
+    require('webpack-fail-plugin'),
68
+
69
+    // Includes _message_keys_wrapper in every build to mimic old loader.js:
70
+    new webpack.ProvidePlugin({ require: '_message_key_wrapper' })
71
+  ];
72
+
73
+  if (isSandbox) {
74
+    // Prevents using `require('evil_loader!mymodule')` to execute custom
75
+    // loader code during the webpack build.
76
+    const RestrictResourcePlugin = require('restrict-resource-webpack-plugin');
77
+    const plugin = new RestrictResourcePlugin(/!+/,
78
+      'Custom inline loaders are not permitted.');
79
+    plugins.push(plugin);
80
+  }
81
+
82
+  return plugins;
83
+})();
84
+
85
+module.exports.module = {
86
+  loaders: (() => {
87
+    const loaders = [{'test': /\.json$/, 'loader': 'json-loader'}];
88
+
89
+    if (isSandbox) {
90
+      // See restricted-resource-loader.js, prevents loading files outside
91
+      // of the project folder, i.e. `require(../../not_your_business)`:
92
+      const restrictLoader = {
93
+        'test': /^.*/, 'loader': 'restricted-resource-loader'
94
+      };
95
+      loaders.push(restrictLoader);
96
+    }
97
+
98
+    return loaders;
99
+  })()
100
+};