Skip to content

Commit 15c441c

Browse files
author
Daniel Sogl
committed
chore(repo): move files to new repo name
1 parent 3ae573b commit 15c441c

File tree

246 files changed

+484
-523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+484
-523
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ scripts/ionic-native-bower
77
scripts/docs-json/*.json
88
scripts/docs-json/typedoc-docs
99
dist/
10-
src/@ionic-native/plugins/**/ngx
10+
src/@awesome-cordova-plugins/plugins/**/ngx
1111
*.d.ts
1212
injectable-classes.json
1313

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ gulp.task('plugin:create', () => {
4444
.pipe(replace('{{ pluginName }}', _.lowerFirst(pluginName)))
4545
.pipe(replace('{{ plugin-name }}', kebabCase))
4646
.pipe(rename('index.ts'))
47-
.pipe(gulp.dest('./src/@ionic-native/plugins/' + kebabCase));
47+
.pipe(gulp.dest('./src/@awesome-cordova-plugins/plugins/' + kebabCase));
4848
} else {
4949
console.log('Usage is: gulp plugin:create -n PluginName');
5050
}

ignore-circle.yml

-51
This file was deleted.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "ionic-native",
2+
"name": "awesome-cordova-plugins",
33
"version": "5.36.0",
44
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
5-
"homepage": "https://ionicframework.com/",
6-
"author": "Ionic Team <[email protected]> (https://ionic.io)",
5+
"homepage": "https://awesome-cordova-plugins.com",
6+
"author": "Daniel Sogl <[email protected]> (https://danielsogl.com)",
77
"license": "MIT",
88
"scripts": {
99
"prepare": "is-ci || husky install",
@@ -21,7 +21,7 @@
2121
"docs-json": "ts-node -P scripts/tsconfig.json scripts/docs-json",
2222
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
2323
"shipit": "npm run build && npm run readmes && npm run npmpub",
24-
"prettier": "prettier src/**/* --write"
24+
"prettier": "prettier src/**/* --write --ignore-unknown"
2525
},
2626
"dependencies": {
2727
"tslib": "^2.3.1"
@@ -89,10 +89,10 @@
8989
},
9090
"repository": {
9191
"type": "git",
92-
"url": "git+https://github.com/ionic-team/ionic-native.git"
92+
"url": "git+https://github.com/danielsogl/awesome-cordova-plugins.git"
9393
},
9494
"bugs": {
95-
"url": "https://github.com/ionic-team/ionic-native/issues"
95+
"url": "https://github.com/danielsogl/awesome-cordova-plugins/issues"
9696
},
9797
"config": {
9898
"commitizen": {
@@ -101,7 +101,7 @@
101101
},
102102
"lint-staged": {
103103
"*": [
104-
"prettier src/**/* --write"
104+
"prettier src/**/* --write --ignore-unknown"
105105
]
106106
}
107107
}

scripts/build/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const ROOT = path.resolve(__dirname, '../../');
88
// tslint:disable-next-line:no-var-requires
99
export const TS_CONFIG = clone(require(path.resolve(ROOT, 'tsconfig.json')));
1010
export const COMPILER_OPTIONS = TS_CONFIG.compilerOptions;
11-
export const PLUGINS_ROOT = path.join(ROOT, 'src/@ionic-native/plugins/');
11+
export const PLUGINS_ROOT = path.join(ROOT, 'src/@awesome-cordova-plugins/plugins/');
1212
export const PLUGIN_PATHS = fs.readdirSync(PLUGINS_ROOT).map(d => path.join(PLUGINS_ROOT, d, 'index.ts'));
1313

1414
export function getDecorator(node: ts.Node, index = 0): ts.Decorator {

scripts/build/ngx.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function getProgram(rootNames: string[] = createSourceFiles()) {
3434

3535
// hacky way to export metadata only for core package
3636
export function transpileNgxCore() {
37-
getProgram([path.resolve(ROOT, 'src/@ionic-native/core/index.ts')]).emit({
37+
getProgram([path.resolve(ROOT, 'src/@awesome-cordova-plugins/core/index.ts')]).emit({
3838
emitFlags: EmitFlags.Metadata,
3939
emitCallback: ({ program, writeFile, customTransformers, cancellationToken, targetSourceFile }) => {
4040
return program.emit(targetSourceFile, writeFile, cancellationToken, true, customTransformers);
@@ -57,7 +57,7 @@ export function generateDeclarationFiles() {
5757

5858
export function generateLegacyBundles() {
5959
[
60-
path.resolve(ROOT, 'dist/@ionic-native/core/index.js'),
60+
path.resolve(ROOT, 'dist/@awesome-cordova-plugins/core/index.js'),
6161
...PLUGIN_PATHS.map(p =>
6262
p.replace(path.join(ROOT, 'src'), path.join(ROOT, 'dist')).replace('index.ts', 'ngx/index.js')
6363
),
@@ -69,7 +69,7 @@ export function generateLegacyBundles() {
6969
if (warning.code === 'UNUSED_EXTERNAL_IMPORT') return;
7070
warn(warning);
7171
},
72-
external: ['@angular/core', '@ionic-native/core', 'rxjs', 'tslib'],
72+
external: ['@angular/core', '@awesome-cordova-plugins/core', 'rxjs', 'tslib'],
7373
})
7474
.then(bundle =>
7575
bundle.write({
@@ -80,7 +80,7 @@ export function generateLegacyBundles() {
8080
);
8181
}
8282

83-
// remove reference to @ionic-native/core decorators
83+
// remove reference to @awesome-cordova-plugins/core decorators
8484
export function modifyMetadata() {
8585
debugger;
8686
PLUGIN_PATHS.map(p =>
@@ -106,7 +106,7 @@ export function modifyMetadata() {
106106
function removeIonicNativeDecorators(node: any) {
107107
if (node.decorators && node.decorators.length) {
108108
node.decorators = node.decorators.filter(
109-
(d: { expression: { module: string } }) => d.expression.module !== '@ionic-native/core'
109+
(d: { expression: { module: string } }) => d.expression.module !== '@awesome-cordova-plugins/core'
110110
);
111111
}
112112

scripts/build/transformers/extract-injectables.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const EMIT_PATH = path.resolve(ROOT, 'injectable-classes.json');
2424
export function extractInjectables() {
2525
return (ctx: ts.TransformationContext) => {
2626
return tsSourceFile => {
27-
if (tsSourceFile.fileName.indexOf('src/@ionic-native/plugins') > -1) {
27+
if (tsSourceFile.fileName.indexOf('src/@awesome-cordova-plugins/plugins') > -1) {
2828
ts.visitEachChild(
2929
tsSourceFile,
3030
node => {

scripts/build/transformers/imports.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ function transformImports(file: ts.SourceFile, ctx: ts.TransformationContext, ng
1010
);
1111
}
1212

13-
// find the @ionic-native/core import statement
13+
// find the @awesome-cordova-plugins/core import statement
1414
const importStatement = (file.statements as any).find((s: any) => {
15-
return s.kind === ts.SyntaxKind.ImportDeclaration && s.moduleSpecifier.text === '@ionic-native/core';
15+
return s.kind === ts.SyntaxKind.ImportDeclaration && s.moduleSpecifier.text === '@awesome-cordova-plugins/core';
1616
});
1717

18-
// we're only interested in files containing @ionic-native/core import statement
18+
// we're only interested in files containing @awesome-cordova-plugins/core import statement
1919
if (!importStatement) return file;
2020

2121
const decorators: string[] = [];

scripts/build/transformers/plugin-class.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function transformClasses(file: ts.SourceFile, ctx: ts.TransformationContext, ng
6363
export function pluginClassTransformer(ngcBuild?: boolean): ts.TransformerFactory<ts.SourceFile> {
6464
return (ctx: ts.TransformationContext) => {
6565
return tsSourceFile => {
66-
if (tsSourceFile.fileName.indexOf('src/@ionic-native/plugins') > -1)
66+
if (tsSourceFile.fileName.indexOf('src/@awesome-cordova-plugins/plugins') > -1)
6767
return transformClasses(tsSourceFile, ctx, ngcBuild);
6868
return tsSourceFile;
6969
};

scripts/docs-json/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface Plugin {
2222
const rootDir = resolve(__dirname, '../..');
2323
const typedocDocsTmp = resolve(__dirname, 'typedoc-docs');
2424
const typedocTmp = resolve(__dirname, 'typedoc.tmp.json');
25-
const pluginsDir = resolve(rootDir, 'src/@ionic-native/plugins');
25+
const pluginsDir = resolve(rootDir, 'src/@awesome-cordova-plugins/plugins');
2626
const typedoc = new Application();
2727

2828
typedoc.options.addReader(new TypeDoc.TSConfigReader());
@@ -66,7 +66,7 @@ function processPlugin(pluginModule): Plugin {
6666
const pluginClass = pluginModule.children.find(isPlugin);
6767
console.log(pluginClass);
6868
const decorator = getPluginDecorator(pluginClass);
69-
const packageName = `@ionic-native/${basename(dirname(pluginModule.originalName))}`;
69+
const packageName = `@awesome-cordova-plugins/${basename(dirname(pluginModule.originalName))}`;
7070
const displayName = getTag(pluginClass, 'name');
7171
const usage = getTag(pluginClass, 'usage');
7272
const description = getTag(pluginClass, 'description');

scripts/docs/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"sitePath": "../ionic-site",
33
"v2DocsDir": "docs/native",
44
"docsDest": "../ionic-site/content/docs/native",
5-
"pluginDir": "dist/@ionic-native/plugins"
5+
"pluginDir": "dist/@awesome-cordova-plugins/plugins"
66
}

scripts/docs/dgeni/dgeni-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = currentVersion => {
5252
readFilesProcessor.basePath = path.resolve(__dirname, '../../..');
5353

5454
readTypeScriptModules.basePath = path.resolve(__dirname, '../../..');
55-
readTypeScriptModules.sourceFiles = ['./src/@ionic-native/plugins/**/*.ts'];
55+
readTypeScriptModules.sourceFiles = ['./src/@awesome-cordova-plugins/plugins/**/*.ts'];
5656
})
5757

5858
// Configure file writing

scripts/docs/dgeni/dgeni-readmes-config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ module.exports = currentVersion => {
5151
readFilesProcessor.basePath = path.resolve(__dirname, '../../..');
5252

5353
readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../..'));
54-
readTypeScriptModules.sourceFiles = ['./src/@ionic-native/plugins/**/*.ts'];
54+
readTypeScriptModules.sourceFiles = ['./src/@awesome-cordova-plugins/plugins/**/*.ts'];
5555
})
5656

5757
// Configure file writing
5858
.config(function (writeFilesProcessor) {
59-
writeFilesProcessor.outputFolder = './dist/@ionic-native/';
59+
writeFilesProcessor.outputFolder = './dist/@awesome-cordova-plugins/';
6060
})
6161

6262
// Configure rendering

scripts/docs/dgeni/processors/readmes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function readmes(renderDocsProcessor) {
1010
docs = docs.filter(doc => (!!doc.name && !!doc.outputPath) || doc.docType === 'index-page');
1111

1212
docs.forEach(doc => {
13-
doc.outputPath = doc.outputPath.replace('src/@ionic-native/', '');
13+
doc.outputPath = doc.outputPath.replace('src/@awesome-cordova-plugins/', '');
1414
});
1515

1616
return docs;

scripts/docs/dgeni/templates/readme.template.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a style="float:right;font-size:12px;" href="http://github.com/ionic-team/ionic-native/edit/master/<$ doc.fileInfo.relativePath|replace('/home/ubuntu/ionic-native/', '')|replace('//','/') $>#L<$ doc.location.start.line $>">
1+
<a style="float:right;font-size:12px;" href="http://github.com/danielsogl/awesome-cordova-plugins/edit/master/<$ doc.fileInfo.relativePath|replace('/home/ubuntu/ionic-native/', '')|replace('//','/') $>#L<$ doc.location.start.line $>">
22
Improve this doc
33
</a>
44

@@ -20,7 +20,7 @@ $ <@ if prop.install @><$ prop.install $><@ else @>ionic cordova plugin add <$ p
2020
$ npm install @ionic-native/<$ doc.npmId $>
2121
```
2222

23-
## [Usage Documentation](https://ionicframework.com/docs/native/<$ doc.fileInfo.relativePath|replace('/home/ubuntu/ionic-native/', '')|replace('//','/')|replace('index.ts','')|replace('src/@ionic-native/plugins/','') $>)
23+
## [Usage Documentation](https://ionicframework.com/docs/native/<$ doc.fileInfo.relativePath|replace('/home/ubuntu/ionic-native/', '')|replace('//','/')|replace('index.ts','')|replace('src/@awesome-cordova-plugins/plugins/','') $>)
2424

2525
Plugin Repo: [<$ prop.repo $>](<$ prop.repo $>)
2626

scripts/tasks/build-es5.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const webpackConfig: webpack.Configuration = {
3333
modules: ['node_modules'],
3434
extensions: ['.js'],
3535
alias: {
36-
'@ionic-native/core': path.resolve(DIST, '@ionic-native/core/index.js'),
36+
'@awesome-cordova-plugins/core': path.resolve(DIST, '@awesome-cordova-plugins/core/index.js'),
3737
},
3838
},
3939
module: {
@@ -68,8 +68,8 @@ function createIndexFile() {
6868
fileContent += `\nwindow.IonicNative = {\n`;
6969
fileContent += INJECTABLE_CLASSES.map(e => e.className).join(',\n');
7070
fileContent += '\n};\n';
71-
fileContent += `require('./@ionic-native/core/bootstrap').checkReady();\n`;
72-
fileContent += `require('./@ionic-native/core/ng1').initAngular1(window.IonicNative);`;
71+
fileContent += `require('./@awesome-cordova-plugins/core/bootstrap').checkReady();\n`;
72+
fileContent += `require('./@awesome-cordova-plugins/core/ng1').initAngular1(window.IonicNative);`;
7373

7474
fs.writeFileSync(INDEX_PATH, fileContent, { encoding: 'utf-8' });
7575
}

scripts/tasks/publish.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,33 @@ const VERSION = MAIN_PACKAGE_JSON.version;
1414
const FLAGS = '--access public';
1515

1616
const PACKAGE_JSON_BASE = {
17-
description: 'Ionic Native - Native plugins for ionic apps',
17+
description: 'Awesome Cordova Plugins - Native plugins for ionic apps',
1818
main: 'bundle.js',
1919
module: 'index.js',
2020
typings: 'index.d.ts',
2121
author: 'ionic',
2222
license: 'MIT',
2323
repository: {
2424
type: 'git',
25-
url: 'https://github.com/ionic-team/ionic-native.git',
25+
url: 'https://github.com/danielsogl/awesome-cordova-plugins.git',
2626
},
2727
};
2828

29-
const DIST = path.resolve(ROOT, 'dist/@ionic-native');
29+
const DIST = path.resolve(ROOT, 'dist/@awesome-cordova-plugins');
3030

3131
const PACKAGES = [];
3232

3333
const MIN_CORE_VERSION = '^5.1.0';
3434
const RXJS_VERSION = '^5.5.0 || ^6.5.0';
3535

3636
const PLUGIN_PEER_DEPENDENCIES = {
37-
'@ionic-native/core': MIN_CORE_VERSION,
37+
'@awesome-cordova-plugins/core': MIN_CORE_VERSION,
3838
rxjs: RXJS_VERSION,
3939
};
4040

4141
function getPackageJsonContent(name: string, peerDependencies = {}, dependencies = {}) {
4242
return merge(PACKAGE_JSON_BASE, {
43-
name: '@ionic-native/' + name,
43+
name: '@awesome-cordova-plugins/' + name,
4444
dependencies,
4545
peerDependencies,
4646
version: VERSION,
@@ -57,7 +57,7 @@ function writeNGXPackageJson(data: any, dir: string) {
5757
fs.writeJSONSync(filePath, data);
5858
}
5959
function prepare() {
60-
// write @ionic-native/core package.json
60+
// write @awesome-cordova-plugins/core package.json
6161
writePackageJson(
6262
getPackageJsonContent('core', { rxjs: RXJS_VERSION }, { '@types/cordova': 'latest' }),
6363
path.resolve(DIST, 'core')

scripts/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"noImplicitAny": false,
77
"lib": ["es6"],
88
"paths": {
9-
"@ionic-native/core": ["../src/@ionic-native/core"]
9+
"@awesome-cordova-plugins/core": ["../src/@awesome-cordova-plugins/core"]
1010
}
1111
},
1212
"exclude": ["node_modules"]

src/@ionic-native/plugins/abbyy-rtr/index.ts renamed to src/@awesome-cordova-plugins/plugins/abbyy-rtr/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable } from '@angular/core';
2-
import { CordovaCheck, IonicNativePlugin, Plugin } from '@ionic-native/core';
2+
import { CordovaCheck, IonicNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
33

44
declare const AbbyyRtrSdk: any;
55

@@ -274,7 +274,7 @@ export interface DataCaptureResult {
274274
*
275275
* @usage
276276
* ```typescript
277-
* import { AbbyyRTR } from '@ionic-native/abbyy-rtr/ngx';
277+
* import { AbbyyRTR } from '@awesome-cordova-plugins/abbyy-rtr/ngx';
278278
*
279279
*
280280
* constructor(private abbyyRTR: AbbyyRTR) { }

src/@ionic-native/plugins/action-sheet/index.ts renamed to src/@awesome-cordova-plugins/plugins/action-sheet/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable } from '@angular/core';
2-
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
2+
import { Cordova, IonicNativePlugin, Plugin } from '@awesome-cordova-plugins/core';
33

44
export interface ActionSheetOptions {
55
/**
@@ -62,7 +62,7 @@ export interface ActionSheetOptions {
6262
*
6363
* @usage
6464
* ```typescript
65-
* import { ActionSheet, ActionSheetOptions } from '@ionic-native/action-sheet/ngx';
65+
* import { ActionSheet, ActionSheetOptions } from '@awesome-cordova-plugins/action-sheet/ngx';
6666
*
6767
* constructor(private actionSheet: ActionSheet) { }
6868
*

0 commit comments

Comments
 (0)