{"_id":"n-add-content","_rev":"6-5f87d37af1a25ee3fa70de868e0143a6","name":"n-add-content","description":"Angular 1.x component which adds content by ex. click on a button","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"n-add-content","version":"1.0.0","description":"Angular 1.x component which adds content by ex. click on a button","main":"index.js","scripts":{"install":"npm install jspm -g && jspm install","commit":"git-cz","test":"./node_modules/karma/bin/karma start karma.conf.js --single-run","coveralls":"npm run test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","karma":"./node_modules/karma/bin/karma start karma.conf.js","semantic-release":"semantic-release pre && npm publish && semantic-release post","serve:dev":"node ./node_modules/gulp/bin/gulp build && lite-server -c browsersync.dev.config.js | node ./node_modules/gulp/bin/gulp watch","serve:build":"node ./node_modules/gulp/bin/gulp build && lite-server -c browsersync.build.config.js | node ./node_modules/gulp/bin/gulp watch","serve":"npm run serve:dev","jscs":"npm run jscs src/*"},"repository":{"type":"git","url":"git+https://github.com/nodes-frontend/nAddContent.git"},"keywords":["angular","component","boilerplate"],"author":{"name":"Alexander Hafstad","email":"alexander@hafstad.dk","url":"http://www.nodesagency.com/"},"license":"MIT","bugs":{"url":"https://github.com/nodes-frontend/nAddContent/issues"},"homepage":"https://github.com/nodes-frontend/nAddContent#readme","dependencies":{"angular":"1.4.8"},"devDependencies":{"angular-mocks":"1.4.8","autoprefixer":"6.3.6","babel-preset-es2015":"6.6.0","commitizen":"2.5.0","coveralls":"2.11.9","cssnano":"3.5.2","cz-conventional-changelog":"1.1.5","ghooks":"1.0.3","gulp":"3.9.1","gulp-angular-templatecache":"1.8.0","gulp-clean":"0.3.2","gulp-inject-string":"1.1.0","gulp-postcss":"6.1.0","gulp-sass":"2.2.0","gulp-sourcemaps":"1.6.0","gulp-tslint":"5.0.0","jasmine-core":"2.4.1","jscs":"^3.0.3","jspm":"0.16.34","karma":"0.13.19","karma-babel-preprocessor":"6.0.1","karma-chrome-launcher":"0.2.2","karma-coverage":"0.5.3","karma-jasmine":"0.3.6","karma-ng-html2js-preprocessor":"^0.2.2","karma-phantomjs-launcher":"0.2.3","karma-typescript-preprocessor":"0.2.0","lite-server":"^2.2.0","phantomjs":"1.9.19","run-sequence":"1.1.5","semantic-release":"^4.3.5","systemjs-builder":"0.15.15","tslint":"3.10.2","typescript":"1.8.10","validate-commit-msg":"2.4.1"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"ghooks":{"pre-commit":"npm run test","commit-msg":"./node_modules/.bin/validate-commit-msg"},"validate-commit-msg":{"types":["feat","fix","docs","style","refactor","perf","test","chore","revert","custom"],"warnOnFail":false,"maxSubjectLength":100}},"jspm":{"configFile":"jspm.config.js","dependencies":{"ts":"github:frankwallis/plugin-typescript@^4.0.16"},"devDependencies":{"typescript":"npm:typescript@^1.6.2"}},"gitHead":"05d7768070c2b1424f680d591d071b9e59ae1a47","_id":"n-add-content@1.0.0","_shasum":"58578874ad5ce791049ed2e61ce535cfca778931","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.5.0","_npmUser":{"name":"hafstad","email":"alexander@hafstad.dk"},"dist":{"shasum":"58578874ad5ce791049ed2e61ce535cfca778931","tarball":"https://registry.npmjs.org/n-add-content/-/n-add-content-1.0.0.tgz","integrity":"sha512-HokMDtUk8Az1iCGkJ3YfKNdC3ASjtLbvQ+/TKAFh0HEW7F8yWu2lkmIwX3jCAyD+Udpb2rWviomlXzPAu/p9dA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5O1rkoGf68GV1Tn+w2rzMsZ4YYGZrZuAJehTM5z/eyAiEA1elT58gxncSros9hj5HU72DX6yyo/Y+M91KRq+kliqs="}]},"maintainers":[{"name":"hafstad","email":"alexander@hafstad.dk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/n-add-content-1.0.0.tgz_1467636774270_0.5376515875104815"}},"1.0.1":{"name":"n-add-content","version":"1.0.1","description":"Angular 1.x component which adds content by ex. click on a button","main":"index.js","scripts":{"commit":"git-cz","test":"./node_modules/karma/bin/karma start karma.conf.js --single-run","coveralls":"npm run test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","karma":"./node_modules/karma/bin/karma start karma.conf.js","semantic-release":"semantic-release pre && npm publish && semantic-release post","serve:dev":"node ./node_modules/gulp/bin/gulp build && lite-server -c browsersync.dev.config.js | node ./node_modules/gulp/bin/gulp watch","serve:build":"node ./node_modules/gulp/bin/gulp build && lite-server -c browsersync.build.config.js | node ./node_modules/gulp/bin/gulp watch","serve":"npm run serve:dev","jscs":"npm run jscs src/*"},"repository":{"type":"git","url":"git+https://github.com/nodes-frontend/nAddContent.git"},"keywords":["angular","component","boilerplate"],"author":{"name":"Alexander Hafstad","email":"alexander@hafstad.dk","url":"http://www.nodesagency.com/"},"license":"MIT","bugs":{"url":"https://github.com/nodes-frontend/nAddContent/issues"},"homepage":"https://github.com/nodes-frontend/nAddContent#readme","dependencies":{"angular":"1.4.8"},"devDependencies":{"angular-mocks":"1.4.8","autoprefixer":"6.3.6","babel-preset-es2015":"6.6.0","commitizen":"2.5.0","coveralls":"2.11.9","cssnano":"3.5.2","cz-conventional-changelog":"1.1.5","ghooks":"1.0.3","gulp":"3.9.1","gulp-angular-templatecache":"1.8.0","gulp-clean":"0.3.2","gulp-inject-string":"1.1.0","gulp-postcss":"6.1.0","gulp-sass":"2.2.0","gulp-sourcemaps":"1.6.0","gulp-tslint":"5.0.0","jasmine-core":"2.4.1","jscs":"^3.0.3","jspm":"0.16.34","karma":"0.13.19","karma-babel-preprocessor":"6.0.1","karma-chrome-launcher":"0.2.2","karma-coverage":"0.5.3","karma-jasmine":"0.3.6","karma-ng-html2js-preprocessor":"^0.2.2","karma-phantomjs-launcher":"0.2.3","karma-typescript-preprocessor":"0.2.0","lite-server":"^2.2.0","phantomjs":"1.9.19","run-sequence":"1.1.5","semantic-release":"^4.3.5","systemjs-builder":"0.15.15","tslint":"3.10.2","typescript":"1.8.10","validate-commit-msg":"2.4.1"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"ghooks":{"pre-commit":"npm run test","commit-msg":"./node_modules/.bin/validate-commit-msg"},"validate-commit-msg":{"types":["feat","fix","docs","style","refactor","perf","test","chore","revert","custom"],"warnOnFail":false,"maxSubjectLength":100}},"jspm":{"configFile":"jspm.config.js","dependencies":{"ts":"github:frankwallis/plugin-typescript@^4.0.16"},"devDependencies":{"typescript":"npm:typescript@^1.6.2"}},"gitHead":"4a85d7a71309a75331e928c2b890d13d30d5d067","_id":"n-add-content@1.0.1","_shasum":"23ca078cdd4beae263f0ee9bf813d3e42b254d71","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.7","_npmUser":{"name":"hafstad","email":"alexander@hafstad.dk"},"dist":{"shasum":"23ca078cdd4beae263f0ee9bf813d3e42b254d71","tarball":"https://registry.npmjs.org/n-add-content/-/n-add-content-1.0.1.tgz","integrity":"sha512-83aoWGl5Q34LRTfx4gD0Q5YP95mSCqCnCcyWaCvMlvZgSIkE9hLpvIfjjMSYi5TmAeVN9/OgjzmO9LbfKWuVKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEerIefuGrUNvsDSj3LujDgMeP7yauPMLlWY0cH7SOW6AiAcylSmmpuxCKOGaZxfC+JDdP2K0dl3T60oSnHLZ5P1EQ=="}]},"maintainers":[{"name":"hafstad","email":"alexander@hafstad.dk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/n-add-content-1.0.1.tgz_1467898294598_0.5041765093337744"}},"1.0.2":{"name":"n-add-content","version":"1.0.2","description":"Angular 1.x component which adds content by ex. click on a button","main":"index.js","scripts":{"commit":"git-cz","test":"./node_modules/karma/bin/karma start karma.conf.js --single-run","coveralls":"npm run test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","karma":"./node_modules/karma/bin/karma start karma.conf.js","semantic-release":"semantic-release pre && npm publish && semantic-release post","serve:dev":"node ./node_modules/gulp/bin/gulp build && lite-server -c browsersync.dev.config.js | node ./node_modules/gulp/bin/gulp watch","serve:build":"node ./node_modules/gulp/bin/gulp build && lite-server -c browsersync.build.config.js | node ./node_modules/gulp/bin/gulp watch","serve":"npm run serve:dev","jscs":"npm run jscs src/*"},"repository":{"type":"git","url":"git+https://github.com/nodes-frontend/nAddContent.git"},"keywords":["angular","component","boilerplate"],"author":{"name":"Alexander Hafstad","email":"alexander@hafstad.dk","url":"http://www.nodesagency.com/"},"license":"MIT","bugs":{"url":"https://github.com/nodes-frontend/nAddContent/issues"},"homepage":"https://github.com/nodes-frontend/nAddContent#readme","dependencies":{"angular":"1.4.8"},"devDependencies":{"angular-mocks":"1.4.8","autoprefixer":"6.3.6","babel-preset-es2015":"6.6.0","commitizen":"2.5.0","coveralls":"2.11.9","cssnano":"3.5.2","cz-conventional-changelog":"1.1.5","ghooks":"1.0.3","gulp":"3.9.1","gulp-angular-templatecache":"1.8.0","gulp-clean":"0.3.2","gulp-inject-string":"1.1.0","gulp-postcss":"6.1.0","gulp-sass":"2.2.0","gulp-sourcemaps":"1.6.0","gulp-tslint":"5.0.0","jasmine-core":"2.4.1","jscs":"^3.0.3","jspm":"0.16.34","karma":"0.13.19","karma-babel-preprocessor":"6.0.1","karma-chrome-launcher":"0.2.2","karma-coverage":"0.5.3","karma-jasmine":"0.3.6","karma-ng-html2js-preprocessor":"^0.2.2","karma-phantomjs-launcher":"0.2.3","karma-typescript-preprocessor":"0.2.0","lite-server":"^2.2.0","phantomjs":"1.9.19","run-sequence":"1.1.5","semantic-release":"^4.3.5","systemjs-builder":"0.15.15","tslint":"3.10.2","typescript":"1.8.10","validate-commit-msg":"2.4.1"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"ghooks":{"pre-commit":"npm run test","commit-msg":"./node_modules/.bin/validate-commit-msg"},"validate-commit-msg":{"types":["feat","fix","docs","style","refactor","perf","test","chore","revert","custom"],"warnOnFail":false,"maxSubjectLength":100}},"jspm":{"configFile":"jspm.config.js","dependencies":{"ts":"github:frankwallis/plugin-typescript@^4.0.16"},"devDependencies":{"typescript":"npm:typescript@^1.6.2"}},"gitHead":"ede3b264a002f6daa5df8215193d82fadb4d5d44","_id":"n-add-content@1.0.2","_shasum":"52b29e3fffcdb84ea4b535fe90a0aa30450b188a","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.7","_npmUser":{"name":"hafstad","email":"alexander@hafstad.dk"},"dist":{"shasum":"52b29e3fffcdb84ea4b535fe90a0aa30450b188a","tarball":"https://registry.npmjs.org/n-add-content/-/n-add-content-1.0.2.tgz","integrity":"sha512-Ok/uQZ1F9EkUgiZUqIJycC4Oga5Qy9PmKWCJbMdzRK4BbMQmiqr3JtF20j4643Cu1N1I8WO+DIeP6g2uHBOzug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCULW7Dp8Bqh3Mxd/+xiryWYTFBl/mGDQdzkbGB5ekPpQIgMH9TeWhemsRvxYQoV8qM8m831nhflphX8iQxYvjSIL4="}]},"maintainers":[{"name":"hafstad","email":"alexander@hafstad.dk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/n-add-content-1.0.2.tgz_1467902485027_0.14363638660870492"}},"1.0.3":{"name":"n-add-content","version":"1.0.3","description":"Angular 1.x component which adds content by ex. click on a button","main":"index.js","scripts":{"commit":"git-cz","test":"./node_modules/karma/bin/karma start karma.conf.js --single-run","coveralls":"npm run test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage","karma":"./node_modules/karma/bin/karma start karma.conf.js","semantic-release":"semantic-release pre && npm publish && semantic-release post","serve:dev":"node ./node_modules/gulp/bin/gulp build && lite-server -c browsersync.dev.config.js | node ./node_modules/gulp/bin/gulp watch","serve:build":"node ./node_modules/gulp/bin/gulp build && lite-server -c browsersync.build.config.js | node ./node_modules/gulp/bin/gulp watch","serve":"npm run serve:dev","jscs":"npm run jscs src/*"},"repository":{"type":"git","url":"git+https://github.com/nodes-frontend/nAddContent.git"},"keywords":["angular","component","boilerplate"],"author":{"name":"Alexander Hafstad","email":"alexander@hafstad.dk","url":"http://www.nodesagency.com/"},"license":"MIT","bugs":{"url":"https://github.com/nodes-frontend/nAddContent/issues"},"homepage":"https://github.com/nodes-frontend/nAddContent#readme","dependencies":{"angular":"1.4.8"},"devDependencies":{"angular-mocks":"1.4.8","autoprefixer":"6.3.6","babel-preset-es2015":"6.6.0","commitizen":"2.5.0","coveralls":"2.11.9","cssnano":"3.5.2","cz-conventional-changelog":"1.1.5","ghooks":"1.0.3","gulp":"3.9.1","gulp-angular-templatecache":"1.8.0","gulp-clean":"0.3.2","gulp-inject-string":"1.1.0","gulp-postcss":"6.1.0","gulp-sass":"2.2.0","gulp-sourcemaps":"1.6.0","gulp-tslint":"5.0.0","jasmine-core":"2.4.1","jscs":"^3.0.3","jspm":"0.16.34","karma":"0.13.19","karma-babel-preprocessor":"6.0.1","karma-chrome-launcher":"0.2.2","karma-coverage":"0.5.3","karma-jasmine":"0.3.6","karma-ng-html2js-preprocessor":"^0.2.2","karma-phantomjs-launcher":"0.2.3","karma-typescript-preprocessor":"0.2.0","lite-server":"^2.2.0","phantomjs":"1.9.19","run-sequence":"1.1.5","semantic-release":"^4.3.5","systemjs-builder":"0.15.15","tslint":"3.10.2","typescript":"1.8.10","validate-commit-msg":"2.4.1"},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"},"ghooks":{"pre-commit":"npm run test","commit-msg":"./node_modules/.bin/validate-commit-msg"},"validate-commit-msg":{"types":["feat","fix","docs","style","refactor","perf","test","chore","revert","custom"],"warnOnFail":false,"maxSubjectLength":100}},"jspm":{"configFile":"jspm.config.js","dependencies":{"ts":"github:frankwallis/plugin-typescript@^4.0.16"},"devDependencies":{"typescript":"npm:typescript@^1.6.2"}},"gitHead":"16eefba17227d2cf0804c9cf3cf92b0f284e8881","_id":"n-add-content@1.0.3","_shasum":"2130edf02f3919da83c9973b4bdc681303bdf7f7","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.4.7","_npmUser":{"name":"hafstad","email":"alexander@hafstad.dk"},"dist":{"shasum":"2130edf02f3919da83c9973b4bdc681303bdf7f7","tarball":"https://registry.npmjs.org/n-add-content/-/n-add-content-1.0.3.tgz","integrity":"sha512-is+/etD7bRO0l6rSIXJ4iFSwuUoxj/zz4rugJsKTinOU66TBVst5N2ZlZ079ijuBicRyBK4M4Ilyx64pFcDRhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxyCJoY0TvPr5mnyzcfaecccHbTiTeyaH7ClBe92clrwIgSHccKE7sDw048tZlQ3BpxZSZtVwqctETNJpDGix0Qag="}]},"maintainers":[{"name":"hafstad","email":"alexander@hafstad.dk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/n-add-content-1.0.3.tgz_1468501809204_0.2632837991695851"}}},"readme":"# nAddContent\n[![Build Status](https://travis-ci.org/nodes-frontend/nAddContent.svg?branch=master)](https://travis-ci.org/nodes-frontend/nAddContent) [![Coverage Status](https://coveralls.io/repos/github/nodes-frontend/nAddContent/badge.svg?branch=master)](https://coveralls.io/github/nodes-frontend/nAddContent?branch=master)\n\nAdd's content based on specified template\n\n![Screencapture GIF](https://raw.githubusercontent.com/nodes-frontend/nAddContent/master/demo.gif)\n\n# Getting started\n```bash\nnpm install n-add-content --save\n```\nInject module dependency\n\n```js\nangular.module('app', ['nAddContent']);\n```\n\n# Usage\nThe component comes with several directives: n-add-content-create, n-add-content-reset, n-add-content-remove and n-add-content-container \n\nSpecify the container which the content should be added to\n```html\n<div n-add-content-container></div>\n```\n\nAdd control to add the content ex. button\n\n```html\n<button type=\"button\" class=\"button\" n-add-content-create template=\"template.html\">+ Add</button>\n```\n\nTo reset the container content \n```html\n<button type=\"button\" class=\"button\" n-add-content-reset>Clear all</button>\n```\n\nTo remove a specific item, following can be used inside the items template\n```html\n<button type=\"button\" class=\"button\" n-add-content-remove uuid=\"{{nAddContentItem.uuid}}\">Remove</button>\n```\n\n# Development\n\n### Installation\nThis will install all you need to get started. Besides the dependencies in package.json, it will automatically install [jspm](http://jspm.io/) for you globally and install jspm dependencies too.  \n```bash\nnpm install\n```\n\n### What does this include\n  * Semantic-relase\n  * Travis CI\n  * Typescript\n  * Commitizen\n  * ng-annotate (adds and removes AngularJS dependency injection annotations)\n  * Inline Angular templates\n  * [validate-commit-msg](https://github.com/Frikki/validate-commit-message)\n  * Karma / Jasmine testing environment\n  * Lite-server (live-reload)\n  * SCSS environment with autoprefixer\n  * [SystemJS (SFX)](https://github.com/systemjs/builder#self-executing-sfx-bundles)\n  * Gulp\n  * Source maps\n\n### Lite-server\nLite-server is configured to serve, index.html placed in the root of your component with live-reload for specified environment.\n### Serve dev-environment\nTo serve up the un-minified code run following command. This command starts up lite-server and gulp watch task which gives you live-reload when ./dist/component.css, ./dist/component.js or ./index.html is changed:\n\n```bash\nnpm run serve:dev\n```\n### Serve production-environment\nTo serve minified & bundled code run the following command. This command starts up lite-server and gulp watch task which gives you live-reload when ./dist/component.css, ./dist/component.min.js or ./index.html is changed.\n\n```bash\nnpm run serve:build\n```\n## SystemJS (SFX)\nSystemJS is configured to build a self-executing bundle. **Consumers of your components are therefore NOT required to use SystenJS.** [Read more](https://github.com/systemjs/builder#self-executing-sfx-bundles)\n## Commitizen (optional)\nTo use commitizen use following command. **Commitizen is optional** and if you don't wanna use commitizen you can just commit as you're used to. You will just need to follow [the AngularJS commit message guidelines.](https://docs.google.com/document/d/1rk04jEuGfk9kYzfqCuOlPTSJw3hEDZJTBN5E5f1SALo)\nYou can read more about commitizen [here](https://commitizen.github.io/cz-cli/)\n\n```bash\nnpm run commit\n```\n## validate-commit-msg\nValidates commit messages on each commit according to [the AngularJS commit message guidelines](https://docs.google.com/document/d/1rk04jEuGfk9kYzfqCuOlPTSJw3hEDZJTBN5E5f1SALo)\n## Build\nTo build your component run following command. This command will minify your css, compile (es2015), ensures to annotate your angular dependencies, inline all your templates, bundle and minify your javascript.\n\n```bash\ngulp build\n```\n## Testing\n\n### Single run\n```bash\nnpm run test\n```\n### Watch\n```bash\nnpm run karma\n```","maintainers":[{"name":"hafstad","email":"alexander@hafstad.dk"}],"time":{"modified":"2022-06-20T18:48:40.207Z","created":"2016-07-04T12:52:56.428Z","1.0.0":"2016-07-04T12:52:56.428Z","1.0.1":"2016-07-07T13:31:35.035Z","1.0.2":"2016-07-07T14:41:27.668Z","1.0.3":"2016-07-14T13:10:11.329Z"},"homepage":"https://github.com/nodes-frontend/nAddContent#readme","keywords":["angular","component","boilerplate"],"repository":{"type":"git","url":"git+https://github.com/nodes-frontend/nAddContent.git"},"author":{"name":"Alexander Hafstad","email":"alexander@hafstad.dk","url":"http://www.nodesagency.com/"},"bugs":{"url":"https://github.com/nodes-frontend/nAddContent/issues"},"license":"MIT","readmeFilename":"README.md"}