A Vue CLI preset to generate scaffolded CNAM front-end projects
vue create my-project --preset assurance-maladie-digital/vue-cli-preset
To contribute, you should read the Code of Conduct and the Contribution Guide.
🗃️ A Vue CLI preset to generate scaffolded CNAM front-end projects
Home Page: https://digital-design-system.netlify.app/demarrer/installation/
License: MIT License
A Vue CLI preset to generate scaffolded CNAM front-end projects
vue create my-project --preset assurance-maladie-digital/vue-cli-preset
To contribute, you should read the Code of Conduct and the Contribution Guide.
Hello, I encountered a problem when launching the create project command on windows.
I use :
npm -v : 6.14.4
node -v : v12.18.0
Here is the console log :
vue create my-project --preset assurance-maladie-digital/vue-cli-preset
@cnamts/vue-cli-plugin-vue-dash
? Description du projet My kickass project
? Utiliser Vue i18n (pour l'internationalisation) No
? Utiliser Vuex Persist No
? Utiliser cypress pour les tests d'interface No
? Installer Matomo (pour les analyses d'audience) No
? Installer le FormBuilder No
WARN conflicting versions for project dependency "@types/jest":
- ^24.0.19 injected by generator "@vue/cli-plugin-unit-jest"
- ^26.0.23 injected by generator "@cnamts/vue-cli-plugin-vue-dash"
Using newer version (^26.0.23), but this may cause build errors.
WARN conflicting versions for project dependency "@vue/eslint-config-standard":
- ^5.1.2 injected by generator "@vue/cli-plugin-eslint"
- ^6.0.0 injected by generator "@cnamts/vue-cli-plugin-vue-dash"
Using newer version (^6.0.0), but this may cause build errors.
WARN conflicting versions for project dependency "eslint":
- ^6.7.2 injected by generator "@vue/cli-plugin-eslint"
- ^7.74.0 injected by generator "@cnamts/vue-cli-plugin-vue-dash"
Using newer version (^7.74.0), but this may cause build errors.
WARN conflicting versions for project dependency "eslint-plugin-promise":
- ^4.2.1 injected by generator "@vue/cli-plugin-eslint"
- ^5.1.0 injected by generator "@cnamts/vue-cli-plugin-vue-dash"
Using newer version (^5.1.0), but this may cause build errors.
WARN conflicting versions for project dependency "eslint-plugin-vue":
- ^6.2.2 injected by generator "@vue/cli-plugin-eslint"
- ^7.9.0 injected by generator "@cnamts/vue-cli-plugin-vue-dash"
Using newer version (^7.9.0), but this may cause build errors.
WARN conflicting versions for project dependency "sass-loader":
- ^8.0.2 injected by generator "@vue/cli-service"
- ^10.1.1 injected by generator "@cnamts/vue-cli-plugin-vue-dash"
Using newer version (^10.1.1), but this may cause build errors.
WARN conflicting versions for project dependency "typescript":
- ~4.2.4 injected by generator "@cnamts/vue-cli-plugin-vue-dash"
- ~4.1.5 injected by generator "@vue/cli-plugin-typescript"
Using newer version (~4.2.4), but this may cause build errors.
� Installing additional dependencies...
npm ERR! code ETARGET
npm ERR! notarget No matching version found for eslint@^7.74.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'my-project'
npm ERR! notarget
Environnement :
windows 10
node -v : v14.18.3
npm -v : 6.14.15
Procedure d'instanciation :
npm cache clean --force
npm install -g @vue/cli
vue create testvuedot2 --preset assurance-maladie-digital/vue-cli-preset
Vue CLI v5.0.1
Failed to check for updates
✨ Creating project in C:\DEV\activites\SKVUX\testvuedot2.
⚙️ Installing CLI plugins. This might take a while...
yarn install v1.22.17
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 71.28s.
🚀 Invoking generators...
@cnamts/vue-cli-plugin-vue-dash
? Description du projet My amazing project
? Utiliser Vue i18n pour gérer les textes de l’application Yes
? Utiliser Vuex Persist pour persister le store Yes
? Utiliser Cypress pour les tests d’interface No
? Utiliser la configuration Jenkins par défaut Yes
? Utiliser Matomo pour l’analyse d’audience Yes
WARN conflicting versions for project dependency "@vue/cli-service":
- ~5.0.0 injected by generator "undefined"
- ~4.5.15 injected by generator "@cnamts/vue-cli-plugin-vue-dash"
Using newer version (~5.0.0), but this may cause build errors.
WARN conflicting versions for project dependency "sass-loader":
- ^12.0.0 injected by generator "@vue/cli-service"
- ^10.2.0 injected by generator "@cnamts/vue-cli-plugin-vue-dash"
Using newer version (^12.0.0), but this may cause build errors.
📦 Installing additional dependencies...
yarn install v1.22.17
[1/5] Validating package.json...
[2/5] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
success Saved lockfile.
Done in 232.91s.
⚓ Running completion hooks...
[4/4] ⠈ deasync
🎉 Successfully created project testvuedot2.
👉 Get started with the following commands:
$ cd testvuedot2
$ yarn serve
push sur git
pull depuis git
npm install
npm run build
[email protected] build C:\DEV\activites\SKVUX\testvuedot2
vue-cli-service build
ERROR Error: Compiling RuleSet failed: Unexpected property test in condition (at ruleSet[1].rules[1].resource.test: resource => {
currentResource = resource
return true
})
Error: Compiling RuleSet failed: Unexpected property test in condition (at ruleSet[1].rules[1].resource.test: resource => {
currentResource = resource
return true
})
at RuleSetCompiler.error (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\RuleSetCompiler.js:373:10)
at RuleSetCompiler.compileCondition (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\RuleSetCompiler.js:309:17)
at C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\BasicMatcherRulePlugin.js:29:40
at Hook.eval [as call] (eval at create (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\tapable\lib\HookCodeFactory.js:19:10), :19:1)
at RuleSetCompiler.compileRule (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\RuleSetCompiler.js:177:19)
at C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\RuleSetCompiler.js:154:9
at Array.map ()
at RuleSetCompiler.compileRules (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\RuleSetCompiler.js:153:16)
at RuleSetCompiler.compileRule (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\RuleSetCompiler.js:184:30)
at C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\RuleSetCompiler.js:154:9
at Array.map ()
at RuleSetCompiler.compileRules (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\RuleSetCompiler.js:153:16)
at RuleSetCompiler.compile (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\rules\RuleSetCompiler.js:68:22)
at new NormalModuleFactory (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\NormalModuleFactory.js:237:34)
at Compiler.createNormalModuleFactory (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:1115:31)
at Compiler.newCompilationParams (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\node_modules\webpack\lib\Compiler.js:1136:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:vue-cli-service build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\LABBE-30894\AppData\Roaming\npm-cache_logs\2022-03-07T15_00_08_496Z-debug.log
npm run serve
vue-cli-service serve
WARN Fix missing config.js file
Copied public/js/config.js.dist to public/js/config.js
INFO Starting development server...
ERROR ValidationError: Progress Plugin Invalid Options
options should NOT have additional properties
options should NOT have additional properties
options should NOT have additional properties
options should pass "instanceof" keyword validation
options should match exactly one schema in oneOf
ValidationError: Progress Plugin Invalid Options
options should NOT have additional properties
options should NOT have additional properties
options should NOT have additional properties
options should pass "instanceof" keyword validation
options should match exactly one schema in oneOf
at validateOptions (C:\DEV\activites\SKVUX\testvuedot2\node_modules\webpack\node_modules\schema-utils\src\validateOptions.js:32:11)
at new ProgressPlugin (C:\DEV\activites\SKVUX\testvuedot2\node_modules\webpack\lib\ProgressPlugin.js:62:3)
at new Progress (C:\DEV\activites\SKVUX\testvuedot2\node_modules\progress-webpack-plugin\index.js:25:21)
at new progressPlugin (C:\DEV\activites\SKVUX\testvuedot2\node_modules\progress-webpack-plugin\index.js:127:10)
at C:\DEV\activites\SKVUX\testvuedot2\node_modules\webpack-chain\src\Plugin.js:14:18
at Object.toConfig (C:\DEV\activites\SKVUX\testvuedot2\node_modules\webpack-chain\src\Plugin.js:78:22)
at C:\DEV\activites\SKVUX\testvuedot2\node_modules\webpack-chain\src\Config.js:129:63
at Array.map ()
at module.exports.toConfig (C:\DEV\activites\SKVUX\testvuedot2\node_modules\webpack-chain\src\Config.js:129:40)
at Service.resolveWebpackConfig (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\lib\Service.js:277:34)
at PluginAPI.resolveWebpackConfig (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\lib\PluginAPI.js:132:25)
at serve (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\lib\commands\serve.js:73:31)
at serve.fn (C:\DEV\activites\SKVUX\testvuedot2\node_modules@cnamts\vue-cli-plugin-vue-dash\index.js:16:10)
at Service.run (C:\DEV\activites\SKVUX\testvuedot2\node_modules@vue\cli-service\lib\Service.js:262:12)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] serve:vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\LABBE-30894\AppData\Roaming\npm-cache_logs\2022-03-07T15_05_42_231Z-debug.log
Merci d'avance.
Cdl
Hi,
On a new project created with :
vue create projet1 --preset assurance-maladie-digital/vue-cli-preset
when we launch "npm run build", we have the following error :
4:23 Could not find a declaration file for module 'deepmerge'. '/projet1/node_modules/deepmerge/dist/umd.js' implicitly has an 'any' type.
Try npm i --save-dev @types/deepmerge
if it exists or add a new declaration (.d.ts) file containing declare module 'deepmerge';
2 | import { ExtendedVue } from 'vue/types/vue';
3 |
4 | import deepMerge from 'deepmerge';
| ^
5 |
6 | import { IndexedObject } from '../../types';
7 |
Have you any idea of the problem please ?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.