{"id":22069932,"url":"https://github.com/romagny13/es6-starter","last_synced_at":"2026-04-13T15:31:29.084Z","repository":{"id":117104952,"uuid":"80383052","full_name":"romagny13/es6-starter","owner":"romagny13","description":"Es6 starter kit","archived":false,"fork":false,"pushed_at":"2017-07-06T17:18:00.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T18:52:45.003Z","etag":null,"topics":["es6","eslint","karma","mocha","rollup","starter-kit","travis","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/romagny13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-30T00:30:52.000Z","updated_at":"2021-10-23T20:14:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"9921048d-2f64-436f-a7ae-d9a7e525c820","html_url":"https://github.com/romagny13/es6-starter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/romagny13/es6-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romagny13%2Fes6-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romagny13%2Fes6-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romagny13%2Fes6-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romagny13%2Fes6-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romagny13","download_url":"https://codeload.github.com/romagny13/es6-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romagny13%2Fes6-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31759230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["es6","eslint","karma","mocha","rollup","starter-kit","travis","webpack"],"created_at":"2024-11-30T20:14:08.878Z","updated_at":"2026-04-13T15:31:29.066Z","avatar_url":"https://github.com/romagny13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# es6 Starter\n\n\u003e Ultra Light version\n\n## Usage\n\nInstall dependencies\n\n```\nnpm i\n```\n\n* Dev (run example)\n\n```\nnpm run dev\n```\nGo http://localhost:8080/\n\n* Build\n\n```\nnpm run build\n```\n\n* Test (Karma + PhantomJS)\n```\nnpm run test\n```\n\n* eslint\n```\nnpm run lint\n```\n\n## Memento\n\n### Before\n\nInstall globally\n\n```\nnpm i karma cross-env eslint -g\n```\nVS Code Extensions:\n* eslint for Visual Studio Code\n\n### package.json\n```\nnpm init -f\n```\n\n### Webpack + Babel\n\n```\nnpm i webpack -D\n```\n\nBabel\n\n```\nnpm i babel-cli babel-loader babel-preset-latest -D\n```\n\n.babelrc\n\n```json\n{\n  \"presets\": [\"latest\"]\n}\n```\n\n### Build\n\nSimple\n\n```js\nvar path = require('path'),\n    webpack = require('webpack');\n\nmodule.exports = {\n    entry: './src/index.js',\n    output: {\n        path: path.resolve(__dirname, \"./dist\"),\n        publicPath: \"/dist/\",\n        filename: 'mylib.js',\n        libraryTarget: 'umd',\n        library: 'MyLib'\n    },\n    module: {\n        rules: [\n            { test: /\\.js$/, exclude: [/node_modules/], use: \"babel-loader\" }\n        ]\n    }\n};\n```\n\nPlugins (minification, etc.)\n\n```js\nvar path = require('path'),\n    webpack = require('webpack');\n\nmodule.exports = {\n    entry: './src/index.js',\n    output: {\n        path: path.resolve(__dirname, \"./dist\"),\n        publicPath: \"/dist/\",\n        filename: 'mylib.min.js',\n        libraryTarget: 'umd',\n        library: 'MyLib'\n    },\n    module: {\n        rules: [\n            { test: /\\.js$/, exclude: [/node_modules/], use: \"babel-loader\" }\n        ]\n    },\n    plugins: [\n        new webpack.LoaderOptionsPlugin({\n            minimize: true,\n            debug: false\n        }),\n        new webpack.optimize.UglifyJsPlugin({\n            beautify: false,\n            mangle: {\n                screw_ie8: true,\n                keep_fnames: true\n            },\n            compress: {\n                screw_ie8: true\n            },\n            comments: false\n        })\n    ]\n};\n```\n\nNPM Script\n\n```json\n\"scripts\": {\n    \"build\": \"webpack --progress --hide-modules\"\n}\n```\n\nor if config file is not \"webpack.config.js\"\n\n```json\n\"scripts\": {\n    \"build\": \"webpack --config webpack.prod --progress --hide-modules\"\n}\n```\n\n```\nnpm run build\n```\n\n### Dev Server\n\n```\nnpm i webpack-dev-server -D\n```\n\n```js\nvar path = require('path'),\n    webpack = require('webpack');\n\nmodule.exports = {\n    entry: './example/es6/index.js',\n    output: {\n        path: path.resolve(__dirname, \"./dist\"),\n        publicPath: \"/dist/\",\n        filename: 'build.js'\n    },\n    module: {\n        rules: [\n            { test: /\\.js$/, exclude: [/node_modules/], use: \"babel-loader\" }\n        ]\n    },\n    devServer: {\n        contentBase: './example/es6',\n        historyApiFallback: true,\n        noInfo: true\n    },\n    devtool: \"#eval-source-map\"\n};\n```\n\nNPM Script\n```json\n\"scripts\": {\n    \"dev\": \"webpack-dev-server --config webpack.dev --open --inline --hot\"\n},\n```\n\n```\nnpm run dev\n```\n\n### Test\n\nMocha\n\n```\nnpm i chai mocha @types/chai @types/mocha -D\n```\n\nKarma\n\n```\nnpm i karma -D\n```\n\n```\nnpm i karma karma-mocha karma-phantomjs-launcher karma-webpack -D\n```\n\nkarma.conf.js\n```\nkarma init\n```\n\nMocha + PhantomJS + patterns ('test/index.js' and 'src/**/*.spec.ts')\n\nfiles \n```js\nfiles: [\n      'node_modules/babel-polyfill/browser.js',\n      './test/index.js',\n      './src/**/*.spec.js'\n    ],\n```\n\npreprocessors\n```js\n preprocessors: {\n            'test/index.js': ['webpack'],\n            'src/**/*.spec.js': ['webpack']\n        },\n```\n\nwebpack\n```js\nwebpack: {\n      module: {\n        rules: [\n          { test: /\\.js$/, exclude: [/node_modules/], use: \"babel-loader\" }\n        ]\n      }\n    },\n\n    webpackMiddleware: {\n      stats: {\n        colors: true,\n        chunks: false\n      }\n    },\n```\n\nplugins\n```js\n plugins: [\n            require('karma-webpack'),\n            require('karma-mocha'),\n            require('karma-phantomjs-launcher')\n        ],\n```\n\nNPM Script\n```json\n\"scripts\": {\n    \"test\": \"karma start\"\n  },\n```\n\n```\nnpm test\n```\n\n### Editor config\n\nCreate file \".editorconfig\"\n\nhttp://editorconfig.org/ \n\nEditor : Visual Studio Code\n\n```\n# http://editorconfig.org\n\nroot = true\n\n[*]\ncharset = utf-8\nindent_style = space\nindent_size = 4\nend_of_line = lf\ninsert_final_newline = true\ntrim_trailing_whitespace = true\n\n[*.md]\ntrim_trailing_whitespace = false\n```\n\n### eslint\n```\nnpm i eslint eslint-plugin-import eslint-watch -D\n```\n\nCreate eslint configuration file\n```\neslint --init\n```\n\n+ extension: eslint for Visual Studio Code\n\n### Travis\n\n.travis.yml\n```js\nlanguage: node_js\nnode_js:\n  - \"6\"\n```\n\n### LICENSE \nMIT\n\n### .gitignore\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromagny13%2Fes6-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromagny13%2Fes6-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromagny13%2Fes6-starter/lists"}