Skip to content

Commit 161f770

Browse files
committed
chore: update copyright year
1 parent 200809c commit 161f770

File tree

15 files changed

+253
-246
lines changed

15 files changed

+253
-246
lines changed

Gruntfile.js

Lines changed: 47 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* https://designfirst.io/systemdesigner/
55
*
6-
* Copyright 2022 Erwan Carriou
6+
* Copyright 2023 Erwan Carriou
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
@@ -19,9 +19,8 @@
1919
*/
2020

2121
module.exports = function (grunt) {
22-
2322
// load tasks
24-
require('load-grunt-tasks')(grunt);
23+
require('load-grunt-tasks')(grunt)
2524

2625
// load configuration
2726
grunt.initConfig({
@@ -32,34 +31,41 @@ module.exports = function (grunt) {
3231
connect: grunt.file.readJSON('tasks/connect.json'),
3332
bgShell: grunt.file.readJSON('tasks/shell.json'),
3433
concat: grunt.file.readJSON('tasks/concat.json'),
35-
uglify: grunt.file.readJSON('tasks/uglify.json')
36-
});
34+
uglify: grunt.file.readJSON('tasks/uglify.json'),
35+
})
3736

3837
// non trivial copy
3938
grunt.config.merge({
40-
'copy': {
39+
copy: {
4140
'minify-json': {
42-
'expand': true,
43-
'cwd': 'dist/systems',
44-
'src': ['*.json'],
45-
'dest': 'dist/systems',
46-
'options': {
47-
'process': content => JSON.stringify(JSON.parse(content))
48-
}
41+
expand: true,
42+
cwd: 'dist/systems',
43+
src: ['*.json'],
44+
dest: 'dist/systems',
45+
options: {
46+
process: (content) => JSON.stringify(JSON.parse(content)),
47+
},
4948
},
5049
'web-livereload': {
51-
'expand': true,
52-
'cwd': 'dist',
53-
'src': ['*.html', 'app/index.html'],
54-
'dest': 'dist',
55-
'options': {
56-
'process': content =>
57-
content.replace('<script>if ("serviceWorker" in navigator) navigator.serviceWorker.register("./cache.js");</script>', '')
58-
.replace('</body>', '\t<script src=\"//localhost:35729/livereload.js\"></script>\n</body>')
50+
expand: true,
51+
cwd: 'dist',
52+
src: ['*.html', 'app/index.html'],
53+
dest: 'dist',
54+
options: {
55+
process: (content) =>
56+
content
57+
.replace(
58+
'<script>if ("serviceWorker" in navigator) navigator.serviceWorker.register("./cache.js");</script>',
59+
''
60+
)
61+
.replace(
62+
'</body>',
63+
'\t<script src="//localhost:35729/livereload.js"></script>\n</body>'
64+
),
5965
},
60-
}
61-
}
62-
});
66+
},
67+
},
68+
})
6369

6470
// start the dev mode
6571
grunt.registerTask('dev', [
@@ -74,11 +80,11 @@ module.exports = function (grunt) {
7480
'json_merge:web-systems',
7581
'copy:web-livereload',
7682
'connect:watch',
77-
'watch:web'
78-
]);
83+
'watch:web',
84+
])
7985

80-
// start the dev mode
81-
grunt.registerTask('dev-cordova', [
86+
// start the dev mode
87+
grunt.registerTask('dev-cordova', [
8288
'clean:build',
8389
'copy:web-folder',
8490
'copy:libraries',
@@ -92,8 +98,8 @@ module.exports = function (grunt) {
9298
'clean:systems',
9399
'copy:web-livereload',
94100
'connect:watch',
95-
'watch:cordova'
96-
]);
101+
'watch:cordova',
102+
])
97103

98104
// build for web
99105
grunt.registerTask('web', [
@@ -106,8 +112,8 @@ module.exports = function (grunt) {
106112
'concat:vendor-editor',
107113
'copy:web-files',
108114
'json_merge:web-systems',
109-
'copy:minify-json'
110-
]);
115+
'copy:minify-json',
116+
])
111117

112118
// build for electron
113119
grunt.registerTask('electron', [
@@ -122,8 +128,8 @@ module.exports = function (grunt) {
122128
'json_merge:electron-systems',
123129
'copy:minify-json',
124130
'concat:app',
125-
'clean:systems'
126-
]);
131+
'clean:systems',
132+
])
127133

128134
// build for cordova
129135
grunt.registerTask('cordova', [
@@ -138,28 +144,18 @@ module.exports = function (grunt) {
138144
'json_merge:cordova-systems',
139145
'copy:minify-json',
140146
'concat:app',
141-
'clean:systems'
142-
]);
147+
'clean:systems',
148+
])
143149

144150
// default build
145-
grunt.registerTask('build', [
146-
'web'
147-
]);
151+
grunt.registerTask('build', ['web'])
148152

149153
// start the server
150-
grunt.registerTask('start',
151-
'connect:web-server'
152-
);
154+
grunt.registerTask('start', 'connect:web-server')
153155

154156
// run tests locally
155-
grunt.registerTask('test', [
156-
'connect:dev-server',
157-
'bgShell:cypress-dev'
158-
]);
157+
grunt.registerTask('test', ['connect:dev-server', 'bgShell:cypress-dev'])
159158

160159
// run tests in CI
161-
grunt.registerTask('ci', [
162-
'connect:dev-server',
163-
'bgShell:cypress-ci'
164-
]);
165-
};
160+
grunt.registerTask('ci', ['connect:dev-server', 'bgShell:cypress-ci'])
161+
}

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ With System Designer you create in fact a **system** and not an application. But
1414

1515
A system:
1616

17-
* is defined by a model,
18-
* is composed by components and
19-
* reacts to events with actions that we call behaviors.
17+
- is defined by a model,
18+
- is composed by components and
19+
- reacts to events with actions that we call behaviors.
2020

2121
![Image Alt](https://designfirst.io/img/system.png)
2222

23-
2423
## What can I do with System Designer ?
2524

2625
#### Design your system with ease
@@ -45,7 +44,7 @@ In fact, System Designer acts as an ODM (Object-Document Mapper) to manage your
4544

4645
#### Run your system
4746

48-
You can run your system directly from System Designer and then export it to HTML, JSON, JavaScript, a Node.js module or a [Graphviz](http://graphviz.org) file (* macOS, Windows, Linux and PWA version only).
47+
You can run your system directly from System Designer and then export it to HTML, JSON, JavaScript, a Node.js module or a [Graphviz](http://graphviz.org) file (\* macOS, Windows, Linux and PWA version only).
4948

5049
Because you have defined a model for your application, a [Dynamic Type Check](https://en.wikipedia.org/wiki/Type_system#DYNAMIC) is done on every action of your system. All warnings are send and shown in System Designer.
5150

@@ -75,7 +74,7 @@ Once you have cloned the repository, install the dependencies:
7574

7675
```sh
7776
npm i
78-
```
77+
```
7978

8079
#### Build for web
8180

@@ -160,17 +159,17 @@ Once server started, go to [http://localhost:9001/](http://localhost:9001/). All
160159

161160
## Documentation
162161

163-
* [Quick Start](https://designfirst.io/systemdesigner/documentation/docs/quick-start.html)
164-
* [Documentation](https://designfirst.io/systemdesigner/documentation/docs/what-is-system-designer.html)
162+
- [Quick Start](https://designfirst.io/systemdesigner/documentation/docs/quick-start.html)
163+
- [Documentation](https://designfirst.io/systemdesigner/documentation/docs/what-is-system-designer.html)
165164

166165
## Community
167166

168-
* [Code of Conduct](CODE_OF_CONDUCT.md)
169-
* [Contributing Guidelines](CONTRIBUTING.md)
167+
- [Code of Conduct](CODE_OF_CONDUCT.md)
168+
- [Contributing Guidelines](CONTRIBUTING.md)
170169

171170
## License
172171

173-
Copyright © 2022 Erwan Carriou
172+
Copyright © 2023 Erwan Carriou
174173

175174
Licensed under the Apache License, Version 2.0 (the "License");
176175
you may not use this file except in compliance with the License.
@@ -182,8 +181,8 @@ Unless required by applicable law or agreed to in writing, software
182181
distributed under the License is distributed on an "AS IS" BASIS,
183182
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
184183
See the License for the specific language governing permissions and
185-
limitations under the License.
184+
limitations under the License.
186185

187186
**Do not use System Designer if you do not believe in Equality and Diversity.**
188187

189-
**System Designer is not for people of hate.**
188+
**System Designer is not for people of hate.**

cypress/e2e/common/system-designer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* https://designfirst.io/systemdesigner/
55
*
6-
* Copyright 2022 Erwan Carriou
6+
* Copyright 2023 Erwan Carriou
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.

cypress/support/e2e.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* https://designfirst.io/systemdesigner/
55
*
6-
* Copyright 2022 Erwan Carriou
6+
* Copyright 2023 Erwan Carriou
77
*
88
* Licensed under the Apache License, Version 2.0 (the "License");
99
* you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818
* limitations under the License.
1919
*/
2020

21-
import "cypress-localstorage-commands"
21+
import 'cypress-localstorage-commands'
2222

2323
beforeEach(() => {
2424
cy.restoreLocalStorage()

0 commit comments

Comments
 (0)