Skip to content

Commit

Permalink
chore: update copyright year
Browse files Browse the repository at this point in the history
  • Loading branch information
ecarriou committed Jun 17, 2023
1 parent 200809c commit 161f770
Show file tree
Hide file tree
Showing 15 changed files with 253 additions and 246 deletions.
98 changes: 47 additions & 51 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* https://designfirst.io/systemdesigner/
*
* Copyright 2022 Erwan Carriou
* Copyright 2023 Erwan Carriou
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,9 +19,8 @@
*/

module.exports = function (grunt) {

// load tasks
require('load-grunt-tasks')(grunt);
require('load-grunt-tasks')(grunt)

// load configuration
grunt.initConfig({
Expand All @@ -32,34 +31,41 @@ module.exports = function (grunt) {
connect: grunt.file.readJSON('tasks/connect.json'),
bgShell: grunt.file.readJSON('tasks/shell.json'),
concat: grunt.file.readJSON('tasks/concat.json'),
uglify: grunt.file.readJSON('tasks/uglify.json')
});
uglify: grunt.file.readJSON('tasks/uglify.json'),
})

// non trivial copy
grunt.config.merge({
'copy': {
copy: {
'minify-json': {
'expand': true,
'cwd': 'dist/systems',
'src': ['*.json'],
'dest': 'dist/systems',
'options': {
'process': content => JSON.stringify(JSON.parse(content))
}
expand: true,
cwd: 'dist/systems',
src: ['*.json'],
dest: 'dist/systems',
options: {
process: (content) => JSON.stringify(JSON.parse(content)),
},
},
'web-livereload': {
'expand': true,
'cwd': 'dist',
'src': ['*.html', 'app/index.html'],
'dest': 'dist',
'options': {
'process': content =>
content.replace('<script>if ("serviceWorker" in navigator) navigator.serviceWorker.register("./cache.js");</script>', '')
.replace('</body>', '\t<script src=\"//localhost:35729/livereload.js\"></script>\n</body>')
expand: true,
cwd: 'dist',
src: ['*.html', 'app/index.html'],
dest: 'dist',
options: {
process: (content) =>
content
.replace(
'<script>if ("serviceWorker" in navigator) navigator.serviceWorker.register("./cache.js");</script>',
''
)
.replace(
'</body>',
'\t<script src="//localhost:35729/livereload.js"></script>\n</body>'
),
},
}
}
});
},
},
})

// start the dev mode
grunt.registerTask('dev', [
Expand All @@ -74,11 +80,11 @@ module.exports = function (grunt) {
'json_merge:web-systems',
'copy:web-livereload',
'connect:watch',
'watch:web'
]);
'watch:web',
])

// start the dev mode
grunt.registerTask('dev-cordova', [
// start the dev mode
grunt.registerTask('dev-cordova', [
'clean:build',
'copy:web-folder',
'copy:libraries',
Expand All @@ -92,8 +98,8 @@ module.exports = function (grunt) {
'clean:systems',
'copy:web-livereload',
'connect:watch',
'watch:cordova'
]);
'watch:cordova',
])

// build for web
grunt.registerTask('web', [
Expand All @@ -106,8 +112,8 @@ module.exports = function (grunt) {
'concat:vendor-editor',
'copy:web-files',
'json_merge:web-systems',
'copy:minify-json'
]);
'copy:minify-json',
])

// build for electron
grunt.registerTask('electron', [
Expand All @@ -122,8 +128,8 @@ module.exports = function (grunt) {
'json_merge:electron-systems',
'copy:minify-json',
'concat:app',
'clean:systems'
]);
'clean:systems',
])

// build for cordova
grunt.registerTask('cordova', [
Expand All @@ -138,28 +144,18 @@ module.exports = function (grunt) {
'json_merge:cordova-systems',
'copy:minify-json',
'concat:app',
'clean:systems'
]);
'clean:systems',
])

// default build
grunt.registerTask('build', [
'web'
]);
grunt.registerTask('build', ['web'])

// start the server
grunt.registerTask('start',
'connect:web-server'
);
grunt.registerTask('start', 'connect:web-server')

// run tests locally
grunt.registerTask('test', [
'connect:dev-server',
'bgShell:cypress-dev'
]);
grunt.registerTask('test', ['connect:dev-server', 'bgShell:cypress-dev'])

// run tests in CI
grunt.registerTask('ci', [
'connect:dev-server',
'bgShell:cypress-ci'
]);
};
grunt.registerTask('ci', ['connect:dev-server', 'bgShell:cypress-ci'])
}
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ With System Designer you create in fact a **system** and not an application. But

A system:

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

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


## What can I do with System Designer ?

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

#### Run your system

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).
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).

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.

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

```sh
npm i
```
```

#### Build for web

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

## Documentation

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

## Community

* [Code of Conduct](CODE_OF_CONDUCT.md)
* [Contributing Guidelines](CONTRIBUTING.md)
- [Code of Conduct](CODE_OF_CONDUCT.md)
- [Contributing Guidelines](CONTRIBUTING.md)

## License

Copyright 漏 2022 Erwan Carriou
Copyright 漏 2023 Erwan Carriou

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

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

**System Designer is not for people of hate.**
**System Designer is not for people of hate.**
2 changes: 1 addition & 1 deletion cypress/e2e/common/system-designer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* https://designfirst.io/systemdesigner/
*
* Copyright 2022 Erwan Carriou
* Copyright 2023 Erwan Carriou
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* https://designfirst.io/systemdesigner/
*
* Copyright 2022 Erwan Carriou
* Copyright 2023 Erwan Carriou
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,7 @@
* limitations under the License.
*/

import "cypress-localstorage-commands"
import 'cypress-localstorage-commands'

beforeEach(() => {
cy.restoreLocalStorage()
Expand Down
Loading

0 comments on commit 161f770

Please sign in to comment.