mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
chore: cleanup
- move upgrade guide for serialport package - tweak generators
This commit is contained in:
parent
82142279a5
commit
160cf33bdb
7 changed files with 18 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright 2018 Francis Gulotta. All rights reserved.
|
||||
Copyright {{year}} Francis Gulotta. All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@serialport/{{dashCase name}}",
|
||||
"version": "1.0.0",
|
||||
"main": "{{dashCase name}}.js",
|
||||
"main": "lib/{{dashCase name}}.js",
|
||||
"dependencies": {
|
||||
"debug": "^3.1.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
*.test.js
|
||||
CHANGELOG.md
|
||||
examples/
|
||||
node_modules
|
||||
package-lock.json
|
||||
test-arduino
|
||||
test-config.json
|
||||
test-electron
|
||||
test-manual
|
||||
test/
|
||||
*.test.js
|
||||
CHANGELOG.md
|
||||
UPGRADE_GUIDE.md
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
Upgrading from 7.x to 8.x
|
||||
-------------
|
||||
- Serialport cli tools are now their own packages. See https://serialport.io/docs/guide-cli for more information on how to use them.
|
||||
|
||||
|
||||
Upgrading from 6.x to 7.x
|
||||
-------------
|
||||
We dropped support for Node.js 4, so you'll have to upgrade if you're running 4. We also split into many packages. See https://serialport.io/docs/api-overview for an overview of the new packages. Binaries have moved into `@serialport/bindings` so if you're distributing serialport in an electron app, you may have to make some changes.
|
||||
|
||||
Upgrading from 5.x to 6.x
|
||||
-------------
|
||||
TLDR: You probably don't have to change anything. You might need to enable `rtscts` in your open options.
|
||||
|
|
@ -16,7 +16,10 @@ module.exports = function(plop) {
|
|||
{
|
||||
type: 'addMany',
|
||||
destination: 'packages/{{dashCase name}}/',
|
||||
templateFiles: '.generators/*',
|
||||
templateFiles: '.generators/**/*',
|
||||
data: {
|
||||
year: new Date().getFullYear(),
|
||||
},
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue