@mchp-mcc/scf-pic8-pwm-v2 4.2.3 → 4.2.4

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/Changelog.md ADDED
@@ -0,0 +1,7 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ ## [4.2.4] - 2022-03-23
5
+
6
+ ### New Features
7
+ - **CC8SCRIP-7662** :- Added Analytics support
package/Readme.md CHANGED
@@ -1,4 +1,54 @@
1
+ # SCF Auto-Module Workflow
2
+ ## Prerequisites:
3
+ - Download & Install [nodejs](https://nodejs.org/en/download/)
4
+ - Download & Install [yarn](https://yarnpkg.com/) (Depends on Node.js)
5
+ - Download & Install [JRE 8u201](https://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html) (We have tested with 8u201, but it will probably work with others if you have a newer version.)
6
+ - Setup node, yarn, & java in enviroment path
7
+ - Download & Install a Code Editor. We are using [VSCode](https://code.visualstudio.com/download)
8
+
9
+ - Run the following commands to set your registry to our internal artifactory server. This only needs to be done once per machine:
10
+ - `yarn config set registry https://artifacts.microchip.com/artifactory/api/npm/npm/`
11
+ - `npm config set registry https://artifacts.microchip.com/artifactory/api/npm/npm/`
12
+
13
+
14
+ ## Setup
15
+ - cd to the project root
16
+ - run the following commands:
17
+ - `yarn install`
18
+ - this downloads all of the project dependencies to your machine
19
+ - `yarn build-run-dir`
20
+ - this builds a run directory in your project
21
+ - if download fails, checkout and build [Scripted Content Framework](https://bitbucket.microchip.com/projects/MCC/repos/scripts/browse)
22
+ and copy the generated run folder to your project's root directory
23
+
24
+ ### Hardware Module
25
+ - A hardware file should already be created in the next step as long as you followed the prompts when running create scf-module, but in case you need to add a peripheral later follow the next step:
26
+ - create a file called `peripheral.json` in the src directory. Place a JSON object copied from the device and peripheral you wish to use for this project
27
+
28
+
29
+ ### Compile & Build
30
+ - `yarn create-auto-module`
31
+ - Generates a `moduleConfig.json` file and creates a set of files in the generated_module directory specific to the data in `src/peripheral.json`.
32
+ -`moduleConfig.json` can now be modified to customize your project.
33
+ - `yarn build`
34
+ - Builds the project and distributes the output files to the run directory. This also runs `create-auto-module` as part of the build process
35
+ - `yarn start`
36
+ - Creates a watcher on the project that detects changes in the source files. When a change is detected, a short compilation is performed and the new files are distributed. It is intended to speed up the design process.
37
+ - In a different terminal open MCC by running `./launch` on unix / linux or .`/launch.bat` on windows. Update the default device indicated in the launch file to your desired device.
38
+ Under Device Resources you should see your module.
39
+
40
+ ### Unit Tests
41
+
42
+ - `yarn test`
43
+ - Triggers all the unit test cases specified by any file ending in .test.ts
44
+ - Unit test report is available at coverage/lcov-report/index.html
45
+
46
+
47
+
1
48
  # Changelog
49
+ All notable changes to this project will be documented in this file.
50
+
51
+ ## [4.2.4] - 2022-03-23
2
52
 
3
- ## [4.2.3]
4
- - Initial release version.
53
+ ### New Features
54
+ - **CC8SCRIP-7662** :- Added Analytics support
@@ -3,14 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hooks = void 0;
4
4
  var processor_1 = require("./processor");
5
5
  var creator_1 = require("./creator");
6
- // eslint-disable-next-line @typescript-eslint/no-var-requires
7
- var packageJson = require("../../../package.json");
8
6
  exports.hooks = {
9
7
  process: processor_1.process,
10
8
  create: creator_1.create,
11
9
  reducer: "auto",
12
- displayName: packageJson.scf.displayName,
13
- category: packageJson.scf.category,
14
- views: packageJson.scf.views,
15
10
  };
16
11
  //# sourceMappingURL=index.js.map