Skip to content

Commit

Permalink
v0.0.6 (#7)
Browse files Browse the repository at this point in the history
* add ng-add save option to package.json (#2)

Set to false. Don't keep the schematic listed as a dependency.

* add author and bugs info (#3)

adds author and bugs info to package.json

* bump dependencies (#5)

* update tailwindcss and custom-webpack versions (minor) (#6)
  • Loading branch information
flakolefluk authored Dec 12, 2019
1 parent 9703207 commit 7a13672
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 91 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@


## 0.0.5
* added support for build-angular ~0.803.0
* added support for build-angular ~0.803.0

## 0.0.6
* update tailwindcss and custom-webpack versions.
* enable option to remove schematic from dependencies.
113 changes: 38 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 18 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flakolefluk/tailwind-schematics",
"version": "0.0.5",
"version": "0.0.6",
"description": "TailwindCSS schematics for angular",
"scripts": {
"build": "tsc -p tsconfig.json",
Expand All @@ -12,22 +12,29 @@
"tailwind",
"angular"
],
"author": "",
"ng-add": {
"save": false
},
"author": "Ignacio Falk",
"license": "MIT",
"schematics": "./src/collection.json",
"dependencies": {
"@angular-devkit/core": "^8.1.1",
"@angular-devkit/schematics": "^8.1.1",
"@types/jasmine": "^3.3.9",
"@types/node": "^8.0.31",
"jasmine": "^3.3.1",
"typescript": "~3.4.3"
"@angular-devkit/core": "^8.3.20",
"@angular-devkit/schematics": "^8.3.20",
"jasmine": "^3.5.0",
"typescript": "~3.7.3"
},
"devDependencies": {
"@schematics/angular": "^8.2.2"
"@schematics/angular": "^8.3.20",
"@types/jasmine": "^3.5.0",
"@types/node": "^12.12.17"
},
"repository" : {
"type" : "git",
"repository": {
"type": "git",
"url": "ssh://[email protected]:flakolefluk/tailwindcss-schematics.git"
},
"bugs": {
"url": "https://github.com/flakolefluk/tailwindcss-schematics/issues",
"email": "[email protected]"
}
}
8 changes: 4 additions & 4 deletions src/ng-add-setup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ function updatePackageJson(pkgJson: PackageJson): Rule {
builderVersion.lastIndexOf('.'),
);

if(parseInt(partialVersion, 10)>=802){
customBuilderVersion = '~8.2.0'
if(parseInt(partialVersion, 10)>=801){
customBuilderVersion = '~8.4.1'
} else
customBuilderVersion = `~${partialVersion[0]}.${partialVersion[2]}.0`;
}
Expand All @@ -98,10 +98,10 @@ function updatePackageJson(pkgJson: PackageJson): Rule {
builderVersion || '~0.800.0';

pkgJson.devDependencies['@fullhuman/postcss-purgecss'] =
pkgJson.devDependencies['@fullhuman/postcss-purgecss'] || '~1.2.0';
pkgJson.devDependencies['@fullhuman/postcss-purgecss'] || '~1.3.0';

pkgJson.devDependencies['tailwindcss'] =
pkgJson.devDependencies['tailwindcss'] || '~1.1.2';
pkgJson.devDependencies['tailwindcss'] || '~1.1.4';

tree.overwrite('package.json', JSON.stringify(pkgJson, null, 2));

Expand Down

0 comments on commit 7a13672

Please sign in to comment.