https://github.com/nikolaymakhonin/nodejs-templates-old
See branches for choose template type
https://github.com/nikolaymakhonin/nodejs-templates-old
babel7 browserstack coverage deploy eslint esm esmodules intern karma mocha-chai nodejs npm-package template travis webstorm-settings
Last synced: 2 months ago
JSON representation
See branches for choose template type
- Host: GitHub
- URL: https://github.com/nikolaymakhonin/nodejs-templates-old
- Owner: NikolayMakhonin
- License: cc0-1.0
- Created: 2019-02-06T13:53:42.000Z (over 7 years ago)
- Default Branch: sapper
- Last Pushed: 2019-03-01T16:27:27.000Z (over 7 years ago)
- Last Synced: 2025-05-31T11:36:30.905Z (about 1 year ago)
- Topics: babel7, browserstack, coverage, deploy, eslint, esm, esmodules, intern, karma, mocha-chai, nodejs, npm-package, template, travis, webstorm-settings
- Language: JavaScript
- Homepage:
- Size: 1.01 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
# Description
For quickly create NodeJs module with svelte components using these commands (just copy/paste it to the console):
(Create new clear empty repository before)
Config:
```cmd
(
SET TEMPLATE_BRANCH=sapper
SET TEMPLATE_REPO=https://github.com/NikolayMakhonin/nodejs-templates.git
SET /p DIR_NAME=Enter project directory name:
SET /p YOUR_REPO_URL=Enter your new clear repository url:
)
```
Install:
```cmd
git clone --origin template --branch %TEMPLATE_BRANCH% %TEMPLATE_REPO% %DIR_NAME%
cd %DIR_NAME%
git branch -m %TEMPLATE_BRANCH% master
git tag -a -m "New project from template \"%TEMPLATE_BRANCH%\"" v0.0.0
git remote set-url --push template no_push
git remote add origin %YOUR_REPO_URL%
git checkout -b develop
git push --all origin
git push --tags origin
git branch -u origin/develop develop
git branch -u origin/master master
```
Or you can just clone repository without history using this command:
```bash
npx degit NikolayMakhonin/nodejs-templates#sapper && cd && npm i && npm run test
```
# Testing
Module has been tested on Travis and BrowserStack
## BrowserStack
You can see your user name / access key here:
https://www.browserstack.com/accounts/settings
### Local
For use BrowserStack locally you can set these environment variables:
For Windows users:
```bash
setx BROWSERSTACK_USERNAME "your user name"
setx BROWSERSTACK_ACCESS_KEY "your access key"
```
**Attention! BrowserStack tests does not work in WebStorm (and this is an unsolvable problem). You should run tests from console.**
### Travis
And you should set your user name and encrypted access key to the .travis.yml
You shoud generate encrypted access key for each repository.
See: https://docs.travis-ci.com/user/encryption-keys
```bash
travis encrypt SOMEVAR="secretvalue" > key.txt
```
```yml
addons:
browserstack:
username: "your user name"
access_key:
secure: "your encrypted access key"
```
---
[](https://www.browserstack.com/)
---
# License
[CC0-1.0](LICENSE)
[npm-image]: https://img.shields.io/npm/v/templates.svg
[npm-url]: https://npmjs.org/package/templates
[node-version-image]: https://img.shields.io/node/v/templates.svg
[node-version-url]: https://nodejs.org/en/download/
[travis-image]: https://travis-ci.org/NikolayMakhonin/nodejs-templates.svg?branch=sapper
[travis-url]: https://travis-ci.org/NikolayMakhonin/nodejs-templates?branch=sapper
[coveralls-image]: https://coveralls.io/repos/github/NikolayMakhonin/nodejs-templates/badge.svg?branch=sapper
[coveralls-url]: https://coveralls.io/github/NikolayMakhonin/nodejs-templates?branch=sapper
[downloads-image]: https://img.shields.io/npm/dm/templates.svg
[downloads-url]: https://npmjs.org/package/templates
[npm-url]: https://npmjs.org/package/templates