Sha256: f0fbe49dd63b6b4c9eb29244f46133d0b470803ebd48919d839b94ebcbedfd7e
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
scripts = <<-eos "scripts": { "test": "jest", "assets:precompile": "yarn install; rails assets:precompile", "webpack-dev-server": "./bin/webpack-dev-server", "rails server": "rails server", "yarn install": "yarn install" }, "jest": { "moduleFileExtensions": [ "js", "vue" ], "moduleNameMapper": { "^@/(.*)$": "<rootDir>/app/javascript/parts/$1" }, "transform": { "^.+\\\\\\.js$": "<rootDir>/node_modules/babel-jest", ".*\\\\\\.(vue)$": "<rootDir>/node_modules/vue-jest" }, "snapshotSerializers": [ "<rootDir>/node_modules/jest-serializer-vue" ] }, eos insert_into_file Rails.root.join("package.json").to_s, "#{scripts}", after: "\"private\": true,\n" babelrc = <<-eos "test": { "presets": [ ["env", { "targets": { "node": "current" }}] ] }, eos insert_into_file Rails.root.join(".babelrc").to_s, "#{babelrc}", before: " \"presets\": [" run "yarn add jest-serializer-vue vue-jest babel-jest --no-progress --silent"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vueonrails-1.0.0.beta3 | lib/installs/test.rb |
vueonrails-1.0.0.beta1 | lib/installs/test.rb |
vueonrails-0.3.0 | lib/installs/test.rb |
vueonrails-0.2.0 | lib/install/test.rb |