Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update project configuration and add metadata #3

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module.exports = {
ignorePatterns: [
'docs/*',
'dist/*',
'src/lidy/*',
'src/assets/index.js',
'src/antlr/*',
],

// add your custom rules here
Expand Down
6 changes: 4 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## [Unreleased]
## [0.1.0]

### Added

- Setup project.
- Add yaml syntax highlighting
- Add Docker-Compose metadata.
- leto-modelizer-plugin-core version 0.21.0
32 changes: 22 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/

module.exports = {
globals: {
__DEV__: true,
},
// Jest assumes we are testing in node environment, specify jsdom environment instead
testEnvironment: 'node',
// Needed in JS codebases too because of feature flags
coveragePathIgnorePatterns: ['/node_modules/', '.d.ts$'],
testEnvironmentOptions: {
customExportConditions: ['node', 'node-addons'],
},
// noStackTrace: true,
// bail: true,
// cache: false,
// verbose: true,
// watch: true,
testMatch: [
'<rootDir>/tests/unit/**/*.spec.js',
],
moduleFileExtensions: ['js'],
moduleFileExtensions: ['js', 'json'],
moduleNameMapper: {
'^~/(.*)$': '<rootDir>/$1',
'^src/(.*)$': '<rootDir>/src/$1',
'^tests/(.*)$': '<rootDir>/tests/$1',
'package.json': '<rootDir>package.json',
Expand All @@ -24,9 +26,19 @@ module.exports = {
'node_modules',
],
transform: {
'^.+\\.(js|jsx)?$': 'babel-jest',
'^.+\\.js?$': 'babel-jest',
},
// Needed in JS codebases too because of feature flags
coveragePathIgnorePatterns: ['/node_modules/', '.d.ts$'],
coverageThreshold: {
global: {
// branches: 50,
// functions: 50,
// lines: 50,
// statements: 50
},
},
transformIgnorePatterns: ['<rootDir>/node_modules/(?!antlr)'],
transformIgnorePatterns: ['<rootDir>/node_modules/(?!lidy-js)'],
testResultsProcessor: 'jest-sonar-reporter',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.js'],
Expand Down
2 changes: 1 addition & 1 deletion jsdoc.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"navLinks": [
{
"label": "Github",
"href": "https://github.com/ditrit/terrator-plugin#README.md"
"href": "https://github.com/ditrit/dockercomposator-plugin#README.md"
}
]
}
Expand Down
43 changes: 24 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,31 @@
},
"homepage": "https://github.com/ditrit/dockercomposator-plugin#readme",
"dependencies": {
"leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.17.0"
"js-yaml": "^4.1.0",
"leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.21.0",
"lidy-js": "github:ditrit/lidy-js.git#main"
},
"devDependencies": {
"@babel/core": "=7.22.9",
"@babel/preset-env": "=7.22.9",
"babel-jest": "=29.6.1",
"babel-loader": "=9.1.3",
"better-docs": "=2.7.2",
"eslint": "=8.45.0",
"eslint-config-airbnb-base": "=15.0.0",
"eslint-formatter-json-relative": "=0.1.0",
"eslint-plugin-import": "=2.27.5",
"eslint-plugin-jest": "=27.2.3",
"eslint-plugin-jsdoc": "=46.4.4",
"eslint-webpack-plugin": "=4.0.1",
"jest": "=29.6.1",
"jest-environment-jsdom": "=29.6.1",
"jest-sonar-reporter": "=2.0.0",
"jsdoc": "=4.0.2",
"webpack": "=5.88.2",
"webpack-cli": "=5.1.4"
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"babel-jest": "^29.7.0",
"babel-loader": "^9.1.3",
"better-docs": "^2.7.2",
"eslint": "^8.51.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-formatter-json-relative": "^0.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.4.2",
"eslint-plugin-jsdoc": "^44.2.7",
"eslint-webpack-plugin": "^4.0.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-sonar-reporter": "^2.0.0",
"js-yaml": "^4.1.0",
"jsdoc": "^4.0.2",
"leto-modelizer-plugin-core": "github:ditrit/leto-modelizer-plugin-core#0.21.0",
"lidy-js": "github:ditrit/lidy-js#main",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
}
}
11 changes: 11 additions & 0 deletions public/icons/DefaultIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions public/icons/compose.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions public/icons/config.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion public/icons/dockercomposator-plugin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/icons/network.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/secret.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/service.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions public/icons/volume.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 7 additions & 9 deletions public/models/DefaultContainer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions public/models/DefaultModel.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading