Skip to content
Permalink
Browse files

Add lerna

  • Loading branch information...
abraham committed Sep 8, 2018
1 parent 2a19a51 commit 7b12f262a7ccc99f7c9ff0b03b36cc144f99366f
Showing with 123 additions and 104 deletions.
  1. +3 −4 .appveyor.yml
  2. +2 −4 .circleci/config.yml
  3. +1 −1 .travis.yml
  4. +2 −0 DEVELOPER.md
  5. +6 −0 lerna.json
  6. +6 −95 package.json
  7. 0 { → packages/cli}/bin/nutmeg
  8. 0 { → packages/cli}/bin/nutmeg-build
  9. 0 { → packages/cli}/bin/nutmeg-clean
  10. 0 { → packages/cli}/bin/nutmeg-new
  11. 0 { → packages/cli}/bin/nutmeg-serve
  12. 0 { → packages/cli}/bin/nutmeg-test
  13. 0 { → packages/cli}/bin/nutmeg-watch
  14. 0 { → packages/cli}/element-template/.circleci/config.yml
  15. 0 { → packages/cli}/element-template/LICENSE.md
  16. 0 { → packages/cli}/element-template/README.md
  17. 0 { → packages/cli}/element-template/appveyor.yml
  18. 0 { → packages/cli}/element-template/gitignore
  19. 0 { → packages/cli}/element-template/index.html
  20. 0 { → packages/cli}/element-template/package.json
  21. 0 { → packages/cli}/element-template/partial/fixture.ts
  22. 0 { → packages/cli}/element-template/partial/it.ts
  23. 0 { → packages/cli}/element-template/partial/property.ts
  24. 0 { → packages/cli}/element-template/renovate.json
  25. 0 { → packages/cli}/element-template/src/element-template.ts
  26. 0 { → packages/cli}/element-template/test/element-template.test.ts
  27. 0 { → packages/cli}/element-template/travis.yml
  28. 0 { → packages/cli}/element-template/tsconfig.json
  29. 0 { → packages/cli}/element-template/tsconfig.production.json
  30. 0 { → packages/cli}/karma.component.config.js
  31. +103 −0 packages/cli/package.json
  32. 0 { → packages/cli}/scripts/rename-pack.js
  33. 0 { → packages/cli}/src/build.ts
  34. 0 { → packages/cli}/src/clean.ts
  35. 0 { → packages/cli}/src/component.ts
  36. 0 { → packages/cli}/src/generator.ts
  37. 0 { → packages/cli}/src/index.d.ts
  38. 0 { → packages/cli}/src/main.ts
  39. 0 { → packages/cli}/src/new.ts
  40. 0 { → packages/cli}/src/properties.ts
  41. 0 { → packages/cli}/src/serve.ts
  42. 0 { → packages/cli}/src/test.ts
  43. 0 { → packages/cli}/src/utils.ts
  44. 0 { → packages/cli}/src/watch.ts
  45. 0 { → packages/cli}/tsconfig.json
  46. 0 { → packages/cli}/webpack.component.config.js
@@ -1,13 +1,12 @@
environment:
matrix:
- nodejs_version: "10"
- nodejs_version: "8"
- nodejs_version: 10
- nodejs_version: 8

install:
- ps: Install-Product node $env:nodejs_version
- npm install
- npm run build
- npm install --global . --no-optional
- npm install --global packages/cli

test_script:
- node --version
@@ -16,8 +16,7 @@ jobs:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run: npm build
- run: npm install --global .
- run: npm install --global packages/cli
- run: npm test
node10:
macos:
@@ -35,8 +34,7 @@ jobs:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run: npm build
- run: npm install --global .
- run: npm install --global packages/cli
- run: npm test

workflows:
@@ -8,7 +8,7 @@ before_script:
- node --version
- npm --version
- npm install
- npm install --global . --no-optional
- npm install --global packages/cli
script:
- npm test
os:
@@ -1,3 +1,5 @@
_Warning: this document is not yet updated for the current code organization._

Contributing to the CLI
====

@@ -0,0 +1,6 @@
{
"packages": [
"packages/*"
],
"version": "0.16.0"
}
@@ -1,101 +1,12 @@
{
"name": "@nutmeg/cli",
"version": "0.15.1",
"description": "Build, test, and publish vanilla Web Components with a little spice",
"main": "dist/cli.js",
"types": "dist/cli.d.ts",
"bin": {
"nutmeg-build": "bin/nutmeg-build",
"nutmeg-clean": "bin/nutmeg-clean",
"nutmeg-new": "bin/nutmeg-new",
"nutmeg-serve": "bin/nutmeg-serve",
"nutmeg-test": "bin/nutmeg-test",
"nutmeg-watch": "bin/nutmeg-watch",
"nutmeg": "bin/nutmeg"
},
"directories": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/abraham/nutmeg-cli.git"
},
"keywords": [
"web-components",
"webcomponents",
"shadow-dom",
"shadowdom",
"lit-html",
"nutmeg",
"typescript"
],
"author": {
"name": "Abraham Williams",
"email": "abraham@abrah.am",
"url": "https://abrah.am"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/abraham/nutmeg-cli/issues"
},
"homepage": "https://github.com/abraham/nutmeg-cli",
"name": "root",
"private": true,
"scripts": {
"build": "tsc",
"prepare": "npm run build",
"pretest": "mkdir tmp && npm pack . && node ./scripts/rename-pack.js",
"test": "cd tmp && nutmeg new ci-test first:number second:string third:boolean --cli-source file:../../nutmeg-cli-latest.tgz && cd ci-test && npm test",
"watch": "tsc --watch"
},
"engines": {
"node": ">=8"
},
"dependencies": {
"@nutmeg/seed": "0.13.0",
"@types/chai": "4.1.4",
"@types/mocha": "5.2.5",
"@types/sinon": "5.0.2",
"@webcomponents/webcomponentsjs": "2.1.1",
"babel-preset-env": "1.7.0",
"chai": "4.1.2",
"commander": "2.18.0",
"html-webpack-plugin": "3.2.0",
"karma": "3.0.0",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "2.2.0",
"karma-firefox-launcher": "1.1.0",
"karma-mocha": "1.3.0",
"karma-opera-launcher": "1.0.0",
"karma-safari-launcher": "1.0.0",
"karma-sinon": "1.0.5",
"karma-typescript": "3.0.13",
"karma-typescript-es6-transform": "1.0.4",
"karma-webpack": "3.0.4",
"lodash.template": "4.4.0",
"mocha": "5.2.0",
"pascal-case": "2.0.1",
"recursive-copy": "2.0.9",
"shelljs": "0.8.2",
"sinon": "6.2.0",
"through2": "2.0.3",
"ts-loader": "5.1.0",
"typescript": "3.0.3",
"uglifyjs-webpack-plugin": "1.3.0",
"update-notifier": "2.5.0",
"webpack": "4.18.1",
"webpack-bundle-analyzer": "3.0.1",
"webpack-cli": "3.1.0",
"webpack-dev-server": "3.1.8",
"webpack-stylish": "0.1.8"
"postinstall": "lerna bootstrap --no-ci",
"test": "lerna run test"
},
"devDependencies": {
"@types/lodash.template": "4.4.4",
"@types/node": "9.6.32",
"@types/shelljs": "0.8.0",
"@types/through2": "2.0.34",
"@types/update-notifier": "2.2.0"
},
"browser": {
"fs": false,
"child_process": false
"lerna": "3.3.0",
"rimraf": "2.6.2"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,103 @@
{
"name": "@nutmeg/cli",
"version": "0.15.1",
"description": "Build, test, and publish vanilla Web Components with a little spice",
"main": "dist/cli.js",
"types": "dist/cli.d.ts",
"bin": {
"nutmeg-build": "bin/nutmeg-build",
"nutmeg-clean": "bin/nutmeg-clean",
"nutmeg-new": "bin/nutmeg-new",
"nutmeg-serve": "bin/nutmeg-serve",
"nutmeg-test": "bin/nutmeg-test",
"nutmeg-watch": "bin/nutmeg-watch",
"nutmeg": "bin/nutmeg"
},
"directories": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/abraham/nutmeg-cli.git"
},
"keywords": [
"web-components",
"webcomponents",
"shadow-dom",
"shadowdom",
"lit-html",
"nutmeg",
"typescript"
],
"author": {
"name": "Abraham Williams",
"email": "abraham@abrah.am",
"url": "https://abrah.am"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/abraham/nutmeg-cli/issues"
},
"homepage": "https://github.com/abraham/nutmeg-cli",
"scripts": {
"build": "tsc",
"prepare": "npm run build",
"pretest": "npm run clean:test && mkdir tmp && npm pack . && node ./scripts/rename-pack.js",
"test": "cd tmp && nutmeg new ci-test first:number second:string third:boolean --cli-source file:../../nutmeg-cli-latest.tgz && cd ci-test && npm test",
"posttest": "npm run clean:test",
"clean:test": "rimraf tmp nutmeg-cli-latest.tgz",
"watch": "tsc --watch"
},
"engines": {
"node": ">=8"
},
"dependencies": {
"@nutmeg/seed": "0.13.0",
"@types/chai": "4.1.4",
"@types/mocha": "5.2.5",
"@types/sinon": "5.0.2",
"@webcomponents/webcomponentsjs": "2.1.1",
"babel-preset-env": "1.7.0",
"chai": "4.1.2",
"commander": "2.18.0",
"html-webpack-plugin": "3.2.0",
"karma": "3.0.0",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "2.2.0",
"karma-firefox-launcher": "1.1.0",
"karma-mocha": "1.3.0",
"karma-opera-launcher": "1.0.0",
"karma-safari-launcher": "1.0.0",
"karma-sinon": "1.0.5",
"karma-typescript": "3.0.13",
"karma-typescript-es6-transform": "1.0.4",
"karma-webpack": "3.0.4",
"lodash.template": "4.4.0",
"mocha": "5.2.0",
"pascal-case": "2.0.1",
"recursive-copy": "2.0.9",
"shelljs": "0.8.2",
"sinon": "6.2.0",
"through2": "2.0.3",
"ts-loader": "5.1.0",
"typescript": "3.0.3",
"uglifyjs-webpack-plugin": "1.3.0",
"update-notifier": "2.5.0",
"webpack": "4.18.0",
"webpack-bundle-analyzer": "3.0.1",
"webpack-cli": "3.1.0",
"webpack-dev-server": "3.1.8",
"webpack-stylish": "0.1.8"
},
"devDependencies": {
"@types/lodash.template": "4.4.4",
"@types/node": "9.6.31",
"@types/shelljs": "0.8.0",
"@types/through2": "2.0.34",
"@types/update-notifier": "2.2.0"
},
"browser": {
"fs": false,
"child_process": false
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7b12f26

Please sign in to comment.
You can’t perform that action at this time.